[med-svn] [python-biom-format] 01/11: Run the upstream testsuite during the package build process.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sat Mar 5 18:16:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository python-biom-format.
commit 32a1ca74e44fdb12e2b7d37052cab4247150be87
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Sat Mar 5 15:10:06 2016 +0000
Run the upstream testsuite during the package build process.
---
debian/control | 1 -
debian/rules | 23 +++--------------------
2 files changed, 3 insertions(+), 21 deletions(-)
diff --git a/debian/control b/debian/control
index ecd7623..bc3d946 100644
--- a/debian/control
+++ b/debian/control
@@ -16,7 +16,6 @@ Build-Depends: debhelper (>= 9),
python-cogent,
python-future,
python-nose,
- python-tox,
python-sphinx,
python-setuptools,
bash-completion
diff --git a/debian/rules b/debian/rules
index 3c99ce6..3ad99cd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,21 +8,15 @@ bindir := $(CURDIR)/debian/$(pkg)/usr/bin
mandir := $(CURDIR)/debian/$(pkg)/usr/share/man/man1
export PYBUILD_NAME=biom-format
-
-export PYBUILD_TEST_NOSE = 1
-
-pyrun = DEB_BUILD_OPTIONS= pybuild -s custom -p $(shell pyversions -dv) --test --test-args
+export PYBUILD_BEFORE_TEST=cp -r {dir}/examples {dir}/tests {build_dir}
%:
dh $@ --with python2 --buildsystem=pybuild --with linktree
override_dh_auto_build:
USE_CYTHON=true dh_auto_build
- $(pyrun) 'make --directory=doc singlehtml'
-
-override_dh_installman:
- $(pyrun) 'make --directory=doc man'
- dh_installman
+ PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -b html doc doc/_build/singlehtml
+ PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -b man doc doc/_build/man
override_dh_auto_clean:
rm -rf build/tests
@@ -39,14 +33,3 @@ override_dh_install:
# All *.py scripts simply say
# "This script no longer exists. ..."
rm -f $(bindir)/*.py
-
-override_dh_auto_test:
- $(pyrun) 'cp -a examples {build_dir}'
- $(pyrun) 'cp -a tests/test_data {build_dir}/tests'
- dh_auto_test
- #dh_auto_test -- --system=custom --test-args="nosetests -v $(CURDIR)/tests"
- #LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom --test-args='set -e; \
- # {interpreter} -m "nose" --cover-package=biom-format'
- #dh_auto_test -- -s custom --test-args='{interpreter} setup.py nosetests --attr !known_failing'
- $(pyrun) 'rm -rf {build_dir}/examples'
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-biom-format.git
More information about the debian-med-commit
mailing list