aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/control22
-rwxr-xr-xdebian/rules24
2 files changed, 44 insertions, 2 deletions
diff --git a/debian/control b/debian/control
index cb123a2..6d8ff0f 100644
--- a/debian/control
+++ b/debian/control
@@ -7,8 +7,10 @@ Build-Depends:
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 @@ Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-urllib
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 @@ Description: Python HTTP library with thread-safe connection pooling, file post
- 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.
diff --git a/debian/rules b/debian/rules
index c9ab0ae..511f2a9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -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