[med-svn] [python-csb] 03/05: use pybuild
Andreas Tille
tille at debian.org
Mon Dec 28 23:41:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository python-csb.
commit 0477b6df644c48bb35a9bf60de5ceedad2899fb0
Author: Andreas Tille <tille at debian.org>
Date: Sun Dec 27 09:40:41 2015 +0100
use pybuild
---
debian/changelog | 1 +
debian/rules | 30 +++++++++---------------------
2 files changed, 10 insertions(+), 21 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index c8381df..4364bf3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ python-csb (1.2.3+dfsg-2) UNRELEASED; urgency=medium
* Fix d/watch
* Fix clean target
+ * use pybuild
-- Andreas Tille <tille at debian.org> Sat, 26 Dec 2015 08:01:36 +0100
diff --git a/debian/rules b/debian/rules
index 91cdf1d..1039166 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,40 +6,28 @@
PYVERS = $(shell pyversions -r)
PY3VERS = $(shell py3versions -r)
BUILDHOME = $(CURDIR)/debian/buildhome
+export PYBUILD_NAME=csb
%:
- dh $@ --with python2,python3
+ dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_auto_build:
- set -e; \
- for py in $(PYVERS) $(PY3VERS); do \
- $$py -B setup.py build; \
- done
+ dh_auto_build
mkdir -p $(CURDIR)/docs/api
mkdir -p $(BUILDHOME)
HOME=$(BUILDHOME) epydoc --html -o $(CURDIR)/docs/api --name CSB --no-private --introspect-only --exclude csb.test.cases --fail-on-error --fail-on-warning --fail-on-docstring-warning $(CURDIR)/csb
override_dh_auto_clean:
+ dh_auto_clean
+ rm -rf $(BUILDHOME)
find . -name "*.pyc" -delete
rm -rf docs
-override_dh_auto_install:
- set -e; \
- for py in $(PYVERS); do \
- $$py -B setup.py install --skip-build --root debian/python-csb \
- --install-layout deb; \
- done
- set -e; \
- for py in $(PY3VERS); do \
- $$py -B setup.py install --skip-build --root debian/python3-csb \
- --install-layout deb; \
- done
-
override_dh_auto_test:
-# PYTHONPATH=$(CURDIR):$(PYTHONPATH) PYTHONWARNINGS=d python csb/test/app.py --generated-resources /tmp
- for py in $(pyversions -i) $(py3versions -i); do \
- PYTHONWARNINGS=d $$py csb/test/app.py --generated-resources /tmp --verbosity 2 ; \
- done
+ LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom \
+ --test-args='set -e; \
+ cd {build_dir}; \
+ PYTHONPATH={build_dir} PYTHONWARNINGS=d {interpreter} csb/test/app.py --generated-resources /tmp --verbosity 2'
get-orig-source:
uscan --verbose --force-download --repack --compression xz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-csb.git
More information about the debian-med-commit
mailing list