[Python-modules-commits] [python-future] 02/03: d/rules: Switch to pybuild

Vincent Bernat bernat at moszumanska.debian.org
Tue May 3 19:43:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

bernat pushed a commit to branch master
in repository python-future.

commit 9ab20e07e9f74081c58adf9f93e05e5432e38a48
Author: Vincent Bernat <vincent at bernat.im>
Date:   Tue May 3 21:11:08 2016 +0200

    d/rules: Switch to pybuild
---
 debian/changelog |  1 +
 debian/rules     | 56 ++++++++++----------------------------------------------
 2 files changed, 11 insertions(+), 46 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8f5f3b2..0f121f8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ python-future (0.15.2-2) UNRELEASED; urgency=medium
 
   [ Vincent Bernat ]
   * d/control: Bump Standards-Version.
+  * d/rules: Switch to pybuild.
 
  -- Vincent Bernat <bernat at debian.org>  Tue, 03 May 2016 21:06:42 +0200
 
diff --git a/debian/rules b/debian/rules
index ed3f8f9..f56409b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,55 +1,19 @@
 #!/usr/bin/make -f
 
-PYTHONS:=$(shell pyversions -vr)
-PYTHON3S:=$(shell py3versions -vr)
-
-UPSTREAM_GIT = git://github.com/PythonCharmers/python-future.git
--include /usr/share/openstack-pkg-tools/pkgos.make
-
-# Make sure there's no requests to the outside
-export http_proxy=127.0.0.1:9
-export https_proxy=127.0.0.1:9
+export PYBUILD_NAME=future
+export PYBUILD_TEST_ARGS=-k 'not urllib and not test_remove_hooks_then_requests and not test_requests_cm'
+export PYBUILD_BEFORE_TEST=cp pasteurize.py futurize.py {build_dir}
 
 %:
-	dh $@ --buildsystem=python_distutils --with python2,python3,sphinxdoc
+	dh $@ --buildsystem=pybuild --with python2,python3,sphinxdoc
 
 override_dh_install:
-	set -e ; for pyvers in $(PYTHONS); do \
-		python$$pyvers setup.py install --install-layout=deb \
-			--root $(CURDIR)/debian/python-future; \
-	done
-	set -e ; for pyvers in $(PYTHON3S); do \
-		python$$pyvers setup.py install --install-layout=deb \
-			--root $(CURDIR)/debian/python3-future; \
-	done
-	mv $(CURDIR)/debian/python-future/usr/bin/futurize $(CURDIR)/debian/python-future/usr/bin/python2-futurize
-	mv $(CURDIR)/debian/python3-future/usr/bin/futurize $(CURDIR)/debian/python3-future/usr/bin/python3-futurize
-	mv $(CURDIR)/debian/python-future/usr/bin/pasteurize $(CURDIR)/debian/python-future/usr/bin/python2-pasteurize
-	mv $(CURDIR)/debian/python3-future/usr/bin/pasteurize $(CURDIR)/debian/python3-future/usr/bin/python3-pasteurize
-	rm -rf $(CURDIR)/debian/python*-future/usr/lib/python*/dist-packages/*.pth
-
-override_dh_auto_test:
-ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
-	set -e ; for pyvers in $(PYTHONS) ; do \
-		PYTHONPATH=.:./src py.test -v -k 'not urllib and not test_remove_hooks_then_requests and not test_requests_cm' ; \
-	done
-endif
+	dh_install
+	mv debian/python-future/usr/bin/futurize debian/python-future/usr/bin/python2-futurize
+	mv debian/python3-future/usr/bin/futurize debian/python3-future/usr/bin/python3-futurize
+	mv debian/python-future/usr/bin/pasteurize debian/python-future/usr/bin/python2-pasteurize
+	mv debian/python3-future/usr/bin/pasteurize debian/python3-future/usr/bin/python3-pasteurize
 
 override_dh_sphinxdoc:
 	PYTHONPATH=.:./src sphinx-build -b html docs debian/python-future-doc/usr/share/doc/python-future-doc/html
-	dh_sphinxdoc -O--buildsystem=python_distutils
-
-
-override_dh_clean:
-	dh_clean -O--buildsystem=python_distutils
-	rm -rf build mytempfile.py
-
-# Commands not to run
-override_dh_installcatalogs:
-override_dh_installemacsen override_dh_installifupdown:
-override_dh_installinfo override_dh_installmenu override_dh_installmime:
-override_dh_installmodules override_dh_installlogcheck:
-override_dh_installpam override_dh_installppp override_dh_installudev override_dh_installwm:
-override_dh_installxfonts override_dh_gconf override_dh_icons override_dh_perl override_dh_usrlocal:
-override_dh_installcron override_dh_installdebconf:
-override_dh_installlogrotate override_dh_installgsettings:
+	dh_sphinxdoc

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-future.git



More information about the Python-modules-commits mailing list