aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Tricoli <eriol@mornie.org>2013-10-18 15:41:32 +0000
committerDaniele Tricoli <eriol@mornie.org>2013-10-18 15:41:32 +0000
commit189582decfa04f0352646ab9ac3afcfabb1210dc (patch)
tree5332a2365b6df0aad27b6646f01a74b879b35a92
parentce9ba7d1e1f4763bf7f4a23ff56762bea19813e9 (diff)
downloadpython-requests-189582decfa04f0352646ab9ac3afcfabb1210dc.tar
python-requests-189582decfa04f0352646ab9ac3afcfabb1210dc.tar.gz
Switched to pybuild
-rw-r--r--debian/changelog3
-rw-r--r--debian/control1
-rwxr-xr-xdebian/rules26
3 files changed, 7 insertions, 23 deletions
diff --git a/debian/changelog b/debian/changelog
index 24081dd..4bcd535 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
requests (2.0.0-1) UNRELEASED; urgency=low
* New upstream release (Closes: #725784)
+ * Switched to pybuild
* debian/control
- Bumped python(3)-urllib3 to (>=1.7.1)
* debian/patches/02_use-system-chardet-and-urllib3.patches
@@ -8,7 +9,7 @@ requests (2.0.0-1) UNRELEASED; urgency=low
* debian/watch
- Switched download URL to https
- -- Daniele Tricoli <eriol@mornie.org> Fri, 18 Oct 2013 16:38:29 +0200
+ -- Daniele Tricoli <eriol@mornie.org> Fri, 18 Oct 2013 17:40:40 +0200
requests (1.2.3-1) unstable; urgency=low
diff --git a/debian/control b/debian/control
index b7bc609..33e466d 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Section: python
Priority: optional
Build-Depends:
debhelper (>= 9),
+ dh-python,
python-all (>= 2.6.6-3),
python-chardet,
python-urllib3 (>= 1.7.1),
diff --git a/debian/rules b/debian/rules
index b49e126..39f8657 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,34 +1,16 @@
#!/usr/bin/make -f
-PYVERS := $(shell pyversions -r)
-PY3VERS := $(shell py3versions -r)
+export PYBUILD_DESTDIR_python2=debian/python-requests/
+export PYBUILD_DESTDIR_python3=debian/python3-requests/
-%:
- dh $@ --with python2,python3 --buildsystem=python_distutils
-override_dh_auto_build:
- set -ex; \
- for python in $(PYVERS) $(PY3VERS); do \
- $$python setup.py build; \
- done
+%:
+ dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_auto_clean:
rm -rf build
dh_auto_clean
rm -rf requests.egg-info
-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