[Python-modules-commits] r26937 - in packages/python-twitter/tags (16 files)

vbkaisetsu-guest at users.alioth.debian.org vbkaisetsu-guest at users.alioth.debian.org
Tue Dec 31 13:02:36 UTC 2013


    Date: Tuesday, December 31, 2013 @ 13:02:34
  Author: vbkaisetsu-guest
Revision: 26937

release python-twitter 1.1+git20131227-1

Added:
  packages/python-twitter/tags/1.1+git20131227-1/
  packages/python-twitter/tags/1.1+git20131227-1/debian/changelog
    (from rev 26924, packages/python-twitter/trunk/debian/changelog)
  packages/python-twitter/tags/1.1+git20131227-1/debian/control
    (from rev 26924, packages/python-twitter/trunk/debian/control)
  packages/python-twitter/tags/1.1+git20131227-1/debian/patches/10_fix_shebang.patch
    (from rev 26924, packages/python-twitter/trunk/debian/patches/10_fix_shebang.patch)
  packages/python-twitter/tags/1.1+git20131227-1/debian/patches/20_remove_simplejson.patch
    (from rev 26924, packages/python-twitter/trunk/debian/patches/20_remove_simplejson.patch)
  packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter-doc.doc-base
    (from rev 26924, packages/python-twitter/trunk/debian/python-twitter-doc.doc-base)
  packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter-doc.docs
    (from rev 26924, packages/python-twitter/trunk/debian/python-twitter-doc.docs)
  packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter.dirs
    (from rev 26924, packages/python-twitter/trunk/debian/python-twitter.dirs)
  packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter.install
    (from rev 26924, packages/python-twitter/trunk/debian/python-twitter.install)
  packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter.manpages
    (from rev 26924, packages/python-twitter/trunk/debian/python-twitter.manpages)
  packages/python-twitter/tags/1.1+git20131227-1/debian/rules
    (from rev 26924, packages/python-twitter/trunk/debian/rules)
Deleted:
  packages/python-twitter/tags/1.1+git20131227-1/debian/changelog
  packages/python-twitter/tags/1.1+git20131227-1/debian/control
  packages/python-twitter/tags/1.1+git20131227-1/debian/patches/10_fix_shebang.patch
  packages/python-twitter/tags/1.1+git20131227-1/debian/patches/20_remove_simplejson.patch
  packages/python-twitter/tags/1.1+git20131227-1/debian/rules

Deleted: packages/python-twitter/tags/1.1+git20131227-1/debian/changelog
===================================================================
--- packages/python-twitter/trunk/debian/changelog	2013-12-30 12:27:14 UTC (rev 26923)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/changelog	2013-12-31 13:02:34 UTC (rev 26937)
@@ -1,98 +0,0 @@
-python-twitter (1.0-1) unstable; urgency=low
-
-  * New upstream release (Closes: #712416)
-   - support Twitter API 1.1 (old API is not supported)
-   - remove GetPublicTimeline that is not supported
-
- -- Koichi Akabe <vbkaisetsu at gmail.com>  Thu, 20 Jun 2013 18:41:26 +0900
-
-python-twitter (0.8.5-1) unstable; urgency=low
-
-  * New upstream release
-  * debian/control
-   - change Homepage
-   - remove old style DMUA flag
-  * debian/tweet.1, debian/twitter-to-xhtml.1
-   - update documentations
-
- -- Koichi Akabe <vbkaisetsu at gmail.com>  Sat, 16 Feb 2013 15:34:03 +0900
-
-python-twitter (0.8.2-2) unstable; urgency=low
-
-  * debian/patches/20_remove_simplejson.patch
-  * debian/control
-    - remove simplejson from dependencies because it's merged with python 2.6
-      and later (Closes: #568875)
-    - remove python-httplib2 from dependencies because python-oauth depends
-      on it
-
- -- Koichi Akabe <vbkaisetsu at gmail.com>  Tue, 25 Sep 2012 21:21:54 +0900
-
-python-twitter (0.8.2-1) unstable; urgency=low
-
-  * New maintainer (Closes: #688463)
-  * New upstream release (Closes: #587749)
-  * debian/compat
-    - up to 9
-  * debian/control
-    - update debhelper (>= 9.0.0)
-    - update Standards-Version to 3.9.4
-    - add dependencies: python-httplib2, python-oauth2
-  * debian/copyright
-    - change to machine readable format
-  * debian/doc-base
-    - add to support doc-base
-  * debian/rules
-    - use dh9
-  * debian/patches
-    - remove old style patches and use 3.0 quilt (Closes: #664376)
-    - add 10_fix_shebang.patch to remove version numbers on shebang from
-      executable scripts and remove shebangs on non-executable scripts
-  * debian/tweet.1
-    - fix spelling error: enviroment environment
-  * debian/watch
-    - fix the match pattern
-  
- -- Koichi Akabe <vbkaisetsu at gmail.com>  Sun, 23 Sep 2012 17:10:25 +0900
-
-python-twitter (0.6-1) unstable; urgency=low
-
-  * New upstream release (Closes: #527055)
-  * debian/patches:
-    - dropped: 10_correct-05-doc.dpatch since it was corrected by upstream.
-    - modified: 20_removes-hashbang.dpatch to work with this new release.
-    - added: 30_removes_hardcoded_interpreter.dpatch which removes a 
-	     hardcoded version of the Python interpreter.
-  * Now Suggests www-browser to read the (HTML) documentation correctly.
-  * Bumped Standard-Version to 3.8.2
-
- -- Mauro Lizaur <mauro at cacavoladora.org>  Sat, 11 Jul 2009 18:45:16 -0300
-
-python-twitter (0.5-3) unstable; urgency=low
-
-  * Now build-depends on dpatch.
-  * Added a patch to replace the old (0.4) doc file, 
-    for the correct one (0.5) (Closes: #519266)
-  * Added a 2nd patch to fix the Lintian error
-    'file-in-usr-lib-site-python' and removed the sed line in 
-    debian/rules with a hardcoded path which will made FTBFS 
-    with the upcoming version of python-support (Closes: #517216)
-  * Also I changed my email-address in debian/control. 
-    Gmail eat my shorts :-)
-  * Bumped Standard-Version to 3.8.1
-
- -- Mauro Lizaur <mauro at cacavoladora.org>  Wed, 18 Mar 2009 03:41:02 -0300
-
-python-twitter (0.5-2) unstable; urgency=low
-
-  * Fixed lintian error 'copyright-file-contains-full-apache-2-license'
-  * Standards-Version updated to 3.8.0
-
- -- Mauro Lizaur <lavaramano at gmail.com>  Fri, 1 Jul 2008 17:20:33 -0300
-
-python-twitter (0.5-1) unstable; urgency=low
-
-  * Initial release (Closes: #463724)
-
- -- Mauro Lizaur <lavaramano at gmail.com>  Sat, 02 Feb 2008 17:55:12 -0300
-

Copied: packages/python-twitter/tags/1.1+git20131227-1/debian/changelog (from rev 26924, packages/python-twitter/trunk/debian/changelog)
===================================================================
--- packages/python-twitter/tags/1.1+git20131227-1/debian/changelog	                        (rev 0)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/changelog	2013-12-31 13:02:34 UTC (rev 26937)
@@ -0,0 +1,115 @@
+python-twitter (1.1+git20131227-1) unstable; urgency=medium
+
+  * New upstream release
+   - with the newest revision
+  * debian/control
+   - split the documentation to python-twitter-doc package
+   - dependencies:
+    - remove: python-oauth2
+    - add: python-requests-oauthlib, python-sphinx
+  * debian/patches/*.patch
+   - update for new release
+  * debian/rules
+   - build sphinx documents on build time
+   - add get-orig-source target
+
+ -- Koichi Akabe <vbkaisetsu at gmail.com>  Mon, 30 Dec 2013 11:14:50 +0900
+
+python-twitter (1.0-1) unstable; urgency=low
+
+  * New upstream release (Closes: #712416)
+   - support Twitter API 1.1 (old API is not supported)
+   - remove GetPublicTimeline that is not supported
+
+ -- Koichi Akabe <vbkaisetsu at gmail.com>  Thu, 20 Jun 2013 18:41:26 +0900
+
+python-twitter (0.8.5-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control
+   - change Homepage
+   - remove old style DMUA flag
+  * debian/tweet.1, debian/twitter-to-xhtml.1
+   - update documentations
+
+ -- Koichi Akabe <vbkaisetsu at gmail.com>  Sat, 16 Feb 2013 15:34:03 +0900
+
+python-twitter (0.8.2-2) unstable; urgency=low
+
+  * debian/patches/20_remove_simplejson.patch
+  * debian/control
+    - remove simplejson from dependencies because it's merged with python 2.6
+      and later (Closes: #568875)
+    - remove python-httplib2 from dependencies because python-oauth depends
+      on it
+
+ -- Koichi Akabe <vbkaisetsu at gmail.com>  Tue, 25 Sep 2012 21:21:54 +0900
+
+python-twitter (0.8.2-1) unstable; urgency=low
+
+  * New maintainer (Closes: #688463)
+  * New upstream release (Closes: #587749)
+  * debian/compat
+    - up to 9
+  * debian/control
+    - update debhelper (>= 9.0.0)
+    - update Standards-Version to 3.9.4
+    - add dependencies: python-httplib2, python-oauth2
+  * debian/copyright
+    - change to machine readable format
+  * debian/doc-base
+    - add to support doc-base
+  * debian/rules
+    - use dh9
+  * debian/patches
+    - remove old style patches and use 3.0 quilt (Closes: #664376)
+    - add 10_fix_shebang.patch to remove version numbers on shebang from
+      executable scripts and remove shebangs on non-executable scripts
+  * debian/tweet.1
+    - fix spelling error: enviroment environment
+  * debian/watch
+    - fix the match pattern
+  
+ -- Koichi Akabe <vbkaisetsu at gmail.com>  Sun, 23 Sep 2012 17:10:25 +0900
+
+python-twitter (0.6-1) unstable; urgency=low
+
+  * New upstream release (Closes: #527055)
+  * debian/patches:
+    - dropped: 10_correct-05-doc.dpatch since it was corrected by upstream.
+    - modified: 20_removes-hashbang.dpatch to work with this new release.
+    - added: 30_removes_hardcoded_interpreter.dpatch which removes a 
+	     hardcoded version of the Python interpreter.
+  * Now Suggests www-browser to read the (HTML) documentation correctly.
+  * Bumped Standard-Version to 3.8.2
+
+ -- Mauro Lizaur <mauro at cacavoladora.org>  Sat, 11 Jul 2009 18:45:16 -0300
+
+python-twitter (0.5-3) unstable; urgency=low
+
+  * Now build-depends on dpatch.
+  * Added a patch to replace the old (0.4) doc file, 
+    for the correct one (0.5) (Closes: #519266)
+  * Added a 2nd patch to fix the Lintian error
+    'file-in-usr-lib-site-python' and removed the sed line in 
+    debian/rules with a hardcoded path which will made FTBFS 
+    with the upcoming version of python-support (Closes: #517216)
+  * Also I changed my email-address in debian/control. 
+    Gmail eat my shorts :-)
+  * Bumped Standard-Version to 3.8.1
+
+ -- Mauro Lizaur <mauro at cacavoladora.org>  Wed, 18 Mar 2009 03:41:02 -0300
+
+python-twitter (0.5-2) unstable; urgency=low
+
+  * Fixed lintian error 'copyright-file-contains-full-apache-2-license'
+  * Standards-Version updated to 3.8.0
+
+ -- Mauro Lizaur <lavaramano at gmail.com>  Fri, 1 Jul 2008 17:20:33 -0300
+
+python-twitter (0.5-1) unstable; urgency=low
+
+  * Initial release (Closes: #463724)
+
+ -- Mauro Lizaur <lavaramano at gmail.com>  Sat, 02 Feb 2008 17:55:12 -0300
+

Deleted: packages/python-twitter/tags/1.1+git20131227-1/debian/control
===================================================================
--- packages/python-twitter/trunk/debian/control	2013-12-30 12:27:14 UTC (rev 26923)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/control	2013-12-31 13:02:34 UTC (rev 26937)
@@ -1,22 +0,0 @@
-Source: python-twitter
-Section: python
-Priority: optional
-Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Uploaders: Koichi Akabe <vbkaisetsu at gmail.com>
-Build-Depends: debhelper (>= 9.0.0), python (>= 2.6.6-3), python-setuptools, python-oauth2
-Standards-Version: 3.9.4
-Homepage: https://github.com/bear/python-twitter
-Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-twitter/trunk/
-Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-twitter/trunk/
-X-Python-Version: >= 2.6
-
-Package: python-twitter
-Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}
-Suggests: www-browser
-Description: Twitter API wrapper for Python
- This library provides a pure Python interface for the Twitter API.
- .
- Twitter provides a service that allows people to connect via the web, IM, and
- SMS. Twitter exposes a web services API (http://twitter.com/help/api) and this
- library is intended to make it even easier for Python programmers to use.

Copied: packages/python-twitter/tags/1.1+git20131227-1/debian/control (from rev 26924, packages/python-twitter/trunk/debian/control)
===================================================================
--- packages/python-twitter/tags/1.1+git20131227-1/debian/control	                        (rev 0)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/control	2013-12-31 13:02:34 UTC (rev 26937)
@@ -0,0 +1,37 @@
+Source: python-twitter
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Koichi Akabe <vbkaisetsu at gmail.com>
+Build-Depends: debhelper (>= 9.0.0), python (>= 2.7), python-setuptools, python-requests-oauthlib, python-sphinx
+Standards-Version: 3.9.5
+Homepage: https://github.com/bear/python-twitter
+Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-twitter/trunk/
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-twitter/trunk/
+X-Python-Version: >= 2.7
+
+Package: python-twitter
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Suggests: www-browser, python-twitter-doc
+Description: Twitter API wrapper for Python
+ This library provides a pure Python interface for the Twitter API.
+ .
+ Twitter provides a service that allows people to connect via the web, IM, and
+ SMS. Twitter exposes a web services API (http://twitter.com/help/api) and this
+ library is intended to make it even easier for Python programmers to use.
+
+Package: python-twitter-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Replaces: python-twitter (<< 1.1+git20131227-1)
+Breaks: python-twitter (<< 1.1+git20131227-1)
+Description: Twitter API wrapper for Python: documentation files
+ This library provides a pure Python interface for the Twitter API.
+ .
+ Twitter provides a service that allows people to connect via the web, IM, and
+ SMS. Twitter exposes a web services API (http://twitter.com/help/api) and this
+ library is intended to make it even easier for Python programmers to use.
+ .
+ This package contains documentation files.

Deleted: packages/python-twitter/tags/1.1+git20131227-1/debian/patches/10_fix_shebang.patch
===================================================================
--- packages/python-twitter/trunk/debian/patches/10_fix_shebang.patch	2013-12-30 12:27:14 UTC (rev 26923)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/patches/10_fix_shebang.patch	2013-12-31 13:02:34 UTC (rev 26937)
@@ -1,37 +0,0 @@
-Description: fix shebang of python scripts
- Scripts specify python2.4 as a shebang. This patch remove version
- numbers from executable scripts and remove shebangs from non-executable
- scripts.
-Last-Update: 2013-06-20
-
---- python-twitter-1.0.orig/twitter.py
-+++ python-twitter-1.0/twitter.py
-@@ -1,4 +1,3 @@
--#!/usr/bin/env python
- #
- # vim: sw=2 ts=2 sts=2
- #
---- python-twitter-1.0.orig/setup.py
-+++ python-twitter-1.0/setup.py
-@@ -1,4 +1,4 @@
--#!/usr/bin/python2.4
-+#!/usr/bin/python
- #
- # Copyright 2007-2013 The Python-Twitter Developers
- #
---- python-twitter-1.0.orig/examples/tweet.py
-+++ python-twitter-1.0/examples/tweet.py
-@@ -1,4 +1,4 @@
--#!/usr/bin/python2.4
-+#!/usr/bin/python
- 
- '''Post a message to twitter'''
- 
---- python-twitter-1.0.orig/examples/twitter-to-xhtml.py
-+++ python-twitter-1.0/examples/twitter-to-xhtml.py
-@@ -1,4 +1,4 @@
--#!/usr/bin/python2.4
-+#!/usr/bin/python
- 
- '''Load the latest update for a Twitter user and leave it in an XHTML fragment'''
- 

Copied: packages/python-twitter/tags/1.1+git20131227-1/debian/patches/10_fix_shebang.patch (from rev 26924, packages/python-twitter/trunk/debian/patches/10_fix_shebang.patch)
===================================================================
--- packages/python-twitter/tags/1.1+git20131227-1/debian/patches/10_fix_shebang.patch	                        (rev 0)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/patches/10_fix_shebang.patch	2013-12-31 13:02:34 UTC (rev 26937)
@@ -0,0 +1,11 @@
+Description: fix shebang of python scripts
+ This patch removes shebangs from non-executable scripts.
+Last-Update: 2013-12-30
+
+--- python-twitter-1.0.orig/twitter.py
++++ python-twitter-1.0/twitter.py
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ #
+ # vim: sw=2 ts=2 sts=2
+ #

Deleted: packages/python-twitter/tags/1.1+git20131227-1/debian/patches/20_remove_simplejson.patch
===================================================================
--- packages/python-twitter/trunk/debian/patches/20_remove_simplejson.patch	2013-12-30 12:27:14 UTC (rev 26923)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/patches/20_remove_simplejson.patch	2013-12-31 13:02:34 UTC (rev 26937)
@@ -1,16 +0,0 @@
-Description: remove simplejson from dependencies
- setup.py specifies simplejson for dependencies, but it's merged to Python 2.6 and
- later versions. This patch remove that dependency.
-Last-Update: 2013-06-20
-
---- python-twitter-1.0.orig/setup.py
-+++ python-twitter-1.0/setup.py
-@@ -35,7 +35,7 @@ METADATA = dict(
- 
- # Extra package metadata to be used only if setuptools is installed
- SETUPTOOLS_METADATA = dict(
--  install_requires = ['setuptools', 'simplejson', 'oauth2'],
-+  install_requires = ['setuptools', 'oauth2'],
-   include_package_data = True,
-   classifiers = [
-     'Development Status :: 5 - Production/Stable',

Copied: packages/python-twitter/tags/1.1+git20131227-1/debian/patches/20_remove_simplejson.patch (from rev 26924, packages/python-twitter/trunk/debian/patches/20_remove_simplejson.patch)
===================================================================
--- packages/python-twitter/tags/1.1+git20131227-1/debian/patches/20_remove_simplejson.patch	                        (rev 0)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/patches/20_remove_simplejson.patch	2013-12-31 13:02:34 UTC (rev 26937)
@@ -0,0 +1,16 @@
+Description: remove simplejson from dependencies
+ setup.py specifies simplejson for dependencies, but it's merged to Python 2.6 and
+ later versions. This patch remove that dependency.
+Last-Update: 2013-06-20
+
+--- python-twitter-1.0.orig/setup.py
++++ python-twitter-1.0/setup.py
+@@ -35,7 +35,7 @@ METADATA = dict(
+ 
+ # Extra package metadata to be used only if setuptools is installed
+ SETUPTOOLS_METADATA = dict(
+-  install_requires = ['setuptools', 'simplejson', 'requests', 'requests_oauthlib'],
++  install_requires = ['setuptools', 'requests', 'requests_oauthlib'],
+   include_package_data = True,
+   classifiers = [
+     'Development Status :: 5 - Production/Stable',

Copied: packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter-doc.doc-base (from rev 26924, packages/python-twitter/trunk/debian/python-twitter-doc.doc-base)
===================================================================
--- packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter-doc.doc-base	                        (rev 0)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter-doc.doc-base	2013-12-31 13:02:34 UTC (rev 26937)
@@ -0,0 +1,9 @@
+Document: python-twitter
+Title: Python module twitter
+Author: python-twitter at googlegroups.com
+Abstract: Manual for python-twitter
+Section: Network/Communication
+
+Format: HTML
+Index: /usr/share/doc/python-twitter-doc/html/index.html
+Files: /usr/share/doc/python-twitter-doc/html/*.html

Copied: packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter-doc.docs (from rev 26924, packages/python-twitter/trunk/debian/python-twitter-doc.docs)
===================================================================
--- packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter-doc.docs	                        (rev 0)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter-doc.docs	2013-12-31 13:02:34 UTC (rev 26937)
@@ -0,0 +1 @@
+doc/_build/html/ 

Copied: packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter.dirs (from rev 26924, packages/python-twitter/trunk/debian/python-twitter.dirs)
===================================================================
--- packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter.dirs	                        (rev 0)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter.dirs	2013-12-31 13:02:34 UTC (rev 26937)
@@ -0,0 +1 @@
+usr/bin

Copied: packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter.install (from rev 26924, packages/python-twitter/trunk/debian/python-twitter.install)
===================================================================
--- packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter.install	                        (rev 0)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter.install	2013-12-31 13:02:34 UTC (rev 26937)
@@ -0,0 +1 @@
+usr/lib

Copied: packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter.manpages (from rev 26924, packages/python-twitter/trunk/debian/python-twitter.manpages)
===================================================================
--- packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter.manpages	                        (rev 0)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/python-twitter.manpages	2013-12-31 13:02:34 UTC (rev 26937)
@@ -0,0 +1,2 @@
+debian/twitter-to-xhtml.1
+debian/tweet.1

Deleted: packages/python-twitter/tags/1.1+git20131227-1/debian/rules
===================================================================
--- packages/python-twitter/trunk/debian/rules	2013-12-30 12:27:14 UTC (rev 26923)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/rules	2013-12-31 13:02:34 UTC (rev 26937)
@@ -1,13 +0,0 @@
-#!/usr/bin/make -f
-
-%:
-	dh "$@" --with python2 --buildsystem=python_distutils
-
-override_dh_auto_install:
-	dh_auto_install
-	install -m 755 $(CURDIR)/examples/tweet.py $(CURDIR)/debian/python-twitter/usr/bin/tweet
-	install -m 755 $(CURDIR)/examples/twitter-to-xhtml.py $(CURDIR)/debian/python-twitter/usr/bin/twitter-to-xhtml
-
-override_dh_auto_clean:
-	dh_auto_clean
-	rm -rf $(CURDIR)/python_twitter.egg-info

Copied: packages/python-twitter/tags/1.1+git20131227-1/debian/rules (from rev 26924, packages/python-twitter/trunk/debian/rules)
===================================================================
--- packages/python-twitter/tags/1.1+git20131227-1/debian/rules	                        (rev 0)
+++ packages/python-twitter/tags/1.1+git20131227-1/debian/rules	2013-12-31 13:02:34 UTC (rev 26937)
@@ -0,0 +1,55 @@
+#!/usr/bin/make -f
+
+%:
+	dh "$@" --with python2,sphinxdoc --buildsystem=python_distutils
+
+override_dh_auto_build:
+	dh_auto_build
+	cd $(CURDIR)/doc && $(MAKE) html
+
+override_dh_auto_install:
+	dh_auto_install
+	install -m 755 $(CURDIR)/examples/tweet.py $(CURDIR)/debian/python-twitter/usr/bin/tweet
+	install -m 755 $(CURDIR)/examples/twitter-to-xhtml.py $(CURDIR)/debian/python-twitter/usr/bin/twitter-to-xhtml
+
+override_dh_auto_clean:
+	dh_auto_clean
+	cd $(CURDIR)/doc && $(MAKE) clean
+	rm -rf $(CURDIR)/python_twitter.egg-info
+
+override_dh_compress:
+	dh_compress -X.js -X.inv
+
+override_dh_sphinxdoc:
+	(! test -d $(CURDIR)/debian/python-twitter-doc || dh_sphinxdoc)
+
+PKD  = $(abspath $(dir $(MAKEFILE_LIST)))
+PKG  = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+VER  = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
+
+## http://wiki.debian.org/onlyjob/get-orig-source
+.PHONY: get-orig-source
+get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
+	@
+
+UURL = git://github.com/bear/python-twitter.git
+UDATE = $(shell date --rfc-3339=seconds --date='TZ="UTC" $(shell echo $(VER) | perl -ne 'print "$$1-$$2-$$3" if m/\+(?:git|svn|hg)(\d{4})(\d{2})(\d{2})/')')
+$(PKG)_$(VER)$(DTYPE).orig.tar.xz: $(info I: UDATE=$(UDATE))
+	$(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
+	@echo "# Downloading..."
+	git clone $(UURL) $(PKG)-$(VER) \
+	|| $(RM) -r $(PKG)-$(VER)
+	cd $(PKG)-$(VER) \
+	&& git checkout v$(VER) || git checkout $$(git log -n1 --format=%h --before="$(UDATE)") \
+	&& [ -s ChangeLog ] || ( echo "# Generating ChangeLog..." \
+	   ; git log --pretty="format:%ad  %aN  <%aE>%n%n%x09* %s%n" --date=short > ChangeLog \
+	   ; touch -d "$$(git log -1 --format='%ci')" ChangeLog) \
+	&& echo "# Setting times..." \
+	&& for F in $$(git ls-tree -r --name-only HEAD); do touch --no-dereference -d "$$(git log -1 --format="%ai" -- $$F)" "$$F"; done \
+	&& echo "# Cleaning-up..." \
+	&& $(RM) -r simplejson doc/_build \
+	&& $(RM) -r .git .git*
+	@echo "# Packing..."
+	find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
+	| XZ_OPT="-6v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
+	&& $(RM) -r "$(PKG)-$(VER)"




More information about the Python-modules-commits mailing list