[Python-modules-commits] r20326 - in packages/requests/trunk/debian (changelog control rules)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Sun Feb 5 04:12:36 UTC 2012


    Date: Sunday, February 5, 2012 @ 04:12:34
  Author: eriol-guest
Revision: 20326

Added python3 package

Modified:
  packages/requests/trunk/debian/changelog
  packages/requests/trunk/debian/control
  packages/requests/trunk/debian/rules

Modified: packages/requests/trunk/debian/changelog
===================================================================
--- packages/requests/trunk/debian/changelog	2012-02-05 03:56:00 UTC (rev 20325)
+++ packages/requests/trunk/debian/changelog	2012-02-05 04:12:34 UTC (rev 20326)
@@ -1,6 +1,9 @@
 requests (0.10.1-1) UNRELEASED; urgency=low
 
   * New upstream release
+    - Adds Python 3 support
+  * Builded python 3 package
+    - B-D on python3-all
   * debian/control
     - Added python-chardet to Recommends
     - Bumped X-Python-Version >= 2.6

Modified: packages/requests/trunk/debian/control
===================================================================
--- packages/requests/trunk/debian/control	2012-02-05 03:56:00 UTC (rev 20325)
+++ packages/requests/trunk/debian/control	2012-02-05 04:12:34 UTC (rev 20326)
@@ -3,10 +3,13 @@
 Uploaders: Daniele Tricoli <eriol at mornie.org>
 Section: python
 Priority: optional
-Build-Depends: debhelper (>= 7.0.50~),
-               python-all (>= 2.6.6-3),
+Build-Depends:
+ debhelper (>= 7.0.50~),
+ python-all (>= 2.6.6-3),
+ python3-all
 Standards-Version: 3.9.2
 X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.0
 Homepage: http://python-requests.org
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/requests/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/requests/trunk/
@@ -40,3 +43,32 @@
    - Auto Decompression of GZipped Content
    - Unicode URL Support
    - Simple Authentication: Simple URL + HTTP Auth Registry
+
+Package: python3-requests
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python:Depends},
+ ca-certificates
+Description: elegant and simple HTTP library for Python3, built for human beings
+ Requests allow you to send GET, HEAD, PUT, POST, and DELETE
+ HTTP requests. You can add headers, form data, multipart files, and
+ parameters with simple Python dictionaries, and access the response
+ data in the same way. It's powered by urllib2, but it does all the
+ hard work and crazy hacks for you.
+ .
+ Features
+ .
+   - Extremely simple GET, HEAD, POST, PUT, DELETE Requests
+   - Simple HTTP Header Request Attachment
+   - Simple Data/Params Request Attachment
+   - Simple Multipart File Uploads
+   - CookieJar Support
+   - Redirection History
+   - Proxy Support
+   - Redirection Recursion Urllib Fix
+   - Auto Decompression of GZipped Content
+   - Unicode URL Support
+   - Simple Authentication: Simple URL + HTTP Auth Registry
+ .
+ This package contains the Python 3 version of the library.

Modified: packages/requests/trunk/debian/rules
===================================================================
--- packages/requests/trunk/debian/rules	2012-02-05 03:56:00 UTC (rev 20325)
+++ packages/requests/trunk/debian/rules	2012-02-05 04:12:34 UTC (rev 20326)
@@ -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-requests \
+			--install-layout deb; \
+	done
+
+	set -ex; \
+	for python in $(PY3VERS); do \
+		$$python setup.py install --skip-build --root debian/python3-requests \
+			--install-layout deb; \
+	done
+
 override_dh_installchangelogs:
-	dh_installchangelogs HISTORY.rst upstream
+	dh_installchangelogs HISTORY.rst




More information about the Python-modules-commits mailing list