[Python-modules-commits] [astral] 05/06: Add pytest tests, excluding those with internet access
Ethan Ward
ethanward-guest at moszumanska.debian.org
Wed Aug 2 18:12:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
ethanward-guest pushed a commit to branch master
in repository astral.
commit d469e0a69318e7a538e83438b124ae736903307f
Author: Ethan Ward <ethan.ward at mycroft.ai>
Date: Wed Aug 2 12:41:18 2017 -0500
Add pytest tests, excluding those with internet access
---
debian/control | 2 ++
debian/rules | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 4605f2c..ea7aaee 100644
--- a/debian/control
+++ b/debian/control
@@ -6,9 +6,11 @@ Uploaders: Ethan Ward <ethan.ward at mycroft.ai>
Build-Depends: debhelper (>= 10),
dh-python,
python-all,
+ python-pytest,
python-setuptools,
python-tz,
python3-all,
+ python3-pytest,
python3-setuptools,
python3-tz
Standards-Version: 4.0.0
diff --git a/debian/rules b/debian/rules
index 8f5a1ec..11dd496 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,9 @@
#!/usr/bin/make -f
-#export DH_VERBOSE=1
export PYBUILD_NAME=astral
+export PYBUILD_BEFORE_TEST=cp -r {dir}/src/test {build_dir}
+export PYBUILD_TEST_ARGS=-m "not webtest"
+export PYBUILD_AFTER_TEST=rm -r {build_dir}/test
%:
- dh $@ --with python2,python3 --buildsystem=pybuild
+ dh $@ --with python2,python3 --buildsystem=pybuild --test-pytest
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/astral.git
More information about the Python-modules-commits
mailing list