[Python-modules-commits] [python-stdnum] 05/06: Switch to pybuild buildsystem
Arthur de Jong
adejong at moszumanska.debian.org
Sun Oct 11 12:36:20 UTC 2015
This is an automated email from the git hooks/post-receive script.
adejong pushed a commit to branch master
in repository python-stdnum.
commit ed196437343d74e86ab19498ae499d3895e159db
Author: Arthur de Jong <adejong at debian.org>
Date: Sun Oct 11 14:23:03 2015 +0200
Switch to pybuild buildsystem
---
debian/changelog | 3 ++-
debian/control | 5 +++--
debian/rules | 23 ++++-------------------
3 files changed, 9 insertions(+), 22 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 2b7cf9b..7c2836b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,8 +25,9 @@ python-stdnum (1.2-1) UNRELEASED; urgency=medium
- test and code quality improvements
* Update debian/copyright
* Suggest python-pysimplesoap (over python-suds) for SOAP calls
+ * Switch to pybuild buildsystem
- -- Arthur de Jong <adejong at debian.org> Sun, 11 Oct 2015 14:12:26 +0200
+ -- Arthur de Jong <adejong at debian.org> Sun, 11 Oct 2015 14:22:55 +0200
python-stdnum (1.1-1) unstable; urgency=medium
diff --git a/debian/control b/debian/control
index 2b2875d..df1fb8e 100644
--- a/debian/control
+++ b/debian/control
@@ -5,9 +5,10 @@ Maintainer: Arthur de Jong <adejong at debian.org>
Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Standards-Version: 3.9.6
Build-Depends: python-all (>= 2.6.6-3~), python3-all (>= 3.1.2-10~),
- debhelper (>= 9), python-setuptools, python3-setuptools,
+ debhelper (>= 9), dh-python,
+ python-setuptools, python3-setuptools,
python-nose (>= 1.2.0), python3-nose (>= 1.2.0)
-X-Python-Version: >= 2.5
+X-Python-Version: >= 2.6
X-Python3-Version: >= 3.0
Homepage: http://arthurdejong.org/python-stdnum/
Vcs-Git: git://anonscm.debian.org/python-modules/packages/python-stdnum.git
diff --git a/debian/rules b/debian/rules
index 491dbd8..fb3167a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,25 +5,10 @@
# distutils is fixed, see http://bugs.python.org/issue9561
export LC_ALL=C.UTF-8
-%:
- dh $@ --with python2,python3
-
-override_dh_auto_build:
+export PYBUILD_NAME = stdnum
-override_dh_auto_install:
- python $(CURDIR)/setup.py install --no-compile -O0 --install-layout=deb \
- --root $(CURDIR)/debian/python-stdnum
- python3 $(CURDIR)/setup.py install --no-compile -O0 --install-layout=deb \
- --root $(CURDIR)/debian/python3-stdnum
- dh_install
+%:
+ dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_auto_test:
- dh_auto_test
-ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
- set -ex; \
- for py in $(shell pyversions -r) $(shell py3versions -r); \
- do \
- rm -rf $(CURDIR)/coverage; \
- $$py $(CURDIR)/setup.py nosetests; \
- done
-endif
+ dh_auto_test -- --system=custom --test-args='TZ=Europe/Amsterdam {interpreter} setup.py nosetests'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-stdnum.git
More information about the Python-modules-commits
mailing list