[Python-modules-commits] r23306 - in packages/python-oauthlib/trunk/debian (3 files)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Mon Jan 14 22:55:14 UTC 2013


    Date: Monday, January 14, 2013 @ 22:55:13
  Author: eriol-guest
Revision: 23306

Builded Python 3 package

Modified:
  packages/python-oauthlib/trunk/debian/changelog
  packages/python-oauthlib/trunk/debian/control
  packages/python-oauthlib/trunk/debian/rules

Modified: packages/python-oauthlib/trunk/debian/changelog
===================================================================
--- packages/python-oauthlib/trunk/debian/changelog	2013-01-14 21:39:38 UTC (rev 23305)
+++ packages/python-oauthlib/trunk/debian/changelog	2013-01-14 22:55:13 UTC (rev 23306)
@@ -1,6 +1,7 @@
 python-oauthlib (0.3.4-1) UNRELEASED; urgency=low
 
   * New upstream release
+  * Builded Python 3 package
   * debian/control
     - Added python-mock to Build-Depends
     - Bumped Standards-Version to 3.9.4 (no changes needed)
@@ -9,12 +10,19 @@
     - Set X-Python-Version >= 2.6 to fix FTBFS with Python 2.5
       on Squeeze backport. Thanks to Jordi Gutiérrez Hermoso for
       the report. (Closes: #693157)
+    - Added X-Python3-Version: >= 3.2
+    - Added python3-all, python3-crypto, python3-mock,
+      python3-nose, python3-setuptools to Build-Depends
+    - Added python3-oauthlib
   * debian/copyright
     - Updated copyright years
   * debian/patches/01_ship-missing-tests.patch
     - Removed since upstream now ships tests in sdist
+  * debian/rules
+    - Refactored to build, test, install also Python3 package
+    - Added export PYTHONWARNINGS=d
 
- -- Daniele Tricoli <eriol at mornie.org>  Mon, 14 Jan 2013 20:50:16 +0100
+ -- Daniele Tricoli <eriol at mornie.org>  Mon, 14 Jan 2013 23:53:40 +0100
 
 python-oauthlib (0.1.2-1) unstable; urgency=low
 

Modified: packages/python-oauthlib/trunk/debian/control
===================================================================
--- packages/python-oauthlib/trunk/debian/control	2013-01-14 21:39:38 UTC (rev 23305)
+++ packages/python-oauthlib/trunk/debian/control	2013-01-14 22:55:13 UTC (rev 23306)
@@ -10,9 +10,15 @@
  python-mock,
  python-nose,
  python-setuptools (>= 0.6b3),
- python-unittest2
+ python-unittest2,
+ python3-all,
+ python3-crypto,
+ python3-mock,
+ python3-nose,
+ python3-setuptools
 Standards-Version: 3.9.4
 X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
 Homepage: https://github.com/idan/oauthlib
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-oauthlib/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-oauthlib/trunk/
@@ -29,3 +35,18 @@
  onto HTTP libraries.
  .
  OAuth1 is almost complete while OAuth2 is already in the works.
+
+Package: python3-oauthlib
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python3:Depends},
+ python3-crypto
+Description: generic, spec-compliant implementation of OAuth for Python3
+ OAuthLib is a generic utility which implements the logic of OAuth without
+ assuming a specific HTTP request object. It can be used to graft OAuth support
+ onto HTTP libraries.
+ .
+ OAuth1 is almost complete while OAuth2 is already in the works.
+ .
+ This package contains the Python 3 version of the library.

Modified: packages/python-oauthlib/trunk/debian/rules
===================================================================
--- packages/python-oauthlib/trunk/debian/rules	2013-01-14 21:39:38 UTC (rev 23305)
+++ packages/python-oauthlib/trunk/debian/rules	2013-01-14 22:55:13 UTC (rev 23306)
@@ -1,14 +1,41 @@
 #!/usr/bin/make -f
 
 export http_proxy = http://127.0.0.1:9/
+export PYTHONWARNINGS=d
 
+PYVERS := $(shell pyversions -r)
+PY3VERS := $(shell py3versions -r)
+
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3
 
+override_dh_auto_build:
+	set -ex; \
+	for python in $(PYVERS) $(PY3VERS); do \
+		$$python setup.py build; \
+	done
+
+override_dh_auto_install:
+	set -ex; \
+	for python in $(PYVERS); do \
+		$$python setup.py install --skip-build --root debian/python-oauthlib \
+			--install-layout deb; \
+	done
+
+	set -ex; \
+	for python in $(PY3VERS); do \
+		$$python setup.py install --skip-build --root debian/python3-oauthlib \
+			--install-layout deb; \
+	done
+
+override_dh_auto_clean:
+	rm -rf build
+	dh_auto_clean
+
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	set -ex; \
-	for python in $(shell pyversions -r); do \
+	for python in $(PYVERS) $(PY3VERS); do \
 		$$python setup.py test -vv; \
 	done
 endif




More information about the Python-modules-commits mailing list