[Python-modules-commits] r20357 - in packages/python-urllib3/trunk/debian (control rules)
eriol-guest at users.alioth.debian.org
eriol-guest at users.alioth.debian.org
Mon Feb 6 11:31:47 UTC 2012
Date: Monday, February 6, 2012 @ 11:31:44
Author: eriol-guest
Revision: 20357
Build Python 3 package
Modified:
packages/python-urllib3/trunk/debian/control
packages/python-urllib3/trunk/debian/rules
Modified: packages/python-urllib3/trunk/debian/control
===================================================================
--- packages/python-urllib3/trunk/debian/control 2012-02-05 22:43:23 UTC (rev 20356)
+++ packages/python-urllib3/trunk/debian/control 2012-02-06 11:31:44 UTC (rev 20357)
@@ -7,8 +7,10 @@
debhelper (>= 7.0.50~),
python-all (>= 2.6.6-3),
python-setuptools (>= 0.6b3),
+ python3-all
Standards-Version: 3.9.2
X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.0
Homepage: http://urllib3.readthedocs.org
Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-urllib3/trunk/
Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-urllib3/trunk/
@@ -16,7 +18,7 @@
Package: python-urllib3
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}
-Description: Python HTTP library with thread-safe connection pooling, file post and more
+Description: HTTP library with thread-safe connection pooling for Python
urllib3 supports features left out of urllib and urllib2 libraries.
.
- Re-use the same socket connection for multiple requests (HTTPConnectionPool
@@ -28,3 +30,21 @@
- Thread-safe and sanity-safe.
- Small and easy to understand codebase perfect for extending and
building upon.
+
+Package: python3-urllib3
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}
+Description: HTTP library with thread-safe connection pooling for Python3
+ urllib3 supports features left out of urllib and urllib2 libraries.
+ .
+ - Re-use the same socket connection for multiple requests (HTTPConnectionPool
+ and HTTPSConnectionPool) (with optional client-side certificate
+ verification).
+ - File posting (encode_multipart_formdata).
+ - Built-in redirection and retries (optional).
+ - Supports gzip and deflate decoding.
+ - Thread-safe and sanity-safe.
+ - Small and easy to understand codebase perfect for extending and
+ building upon.
+ .
+ This package contains the Python 3 version of the library.
Modified: packages/python-urllib3/trunk/debian/rules
===================================================================
--- packages/python-urllib3/trunk/debian/rules 2012-02-05 22:43:23 UTC (rev 20356)
+++ packages/python-urllib3/trunk/debian/rules 2012-02-06 11:31:44 UTC (rev 20357)
@@ -1,7 +1,29 @@
#!/usr/bin/make -f
+PYVERS := $(shell pyversions -r)
+PY3VERS := $(shell py3versions -r)
+
%:
- dh $@ --with python2 --buildsystem=python_distutils
+ dh $@ --with python2,python3 --buildsystem=python_distutils
+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-urllib3 \
+ --install-layout deb; \
+ done
+
+ set -ex; \
+ for python in $(PY3VERS); do \
+ $$python setup.py install --skip-build --root debian/python3-urllib3 \
+ --install-layout deb; \
+ done
+
override_dh_installchangelogs:
dh_installchangelogs CHANGES.rst
More information about the Python-modules-commits
mailing list