[Python-modules-commits] [inflection] 06/08: Change testing to use pytest

Ethan Ward ethanward-guest at moszumanska.debian.org
Wed Aug 2 00:40:32 UTC 2017


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

ethanward-guest pushed a commit to branch master
in repository inflection.

commit 866a5ffbd235e3f89ad8761b5598dc652a9877c5
Author: Ethan Ward <ethan.ward at mycroft.ai>
Date:   Tue Aug 1 19:25:08 2017 -0500

    Change testing to use pytest
---
 debian/control | 2 ++
 debian/rules   | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 9510c8c..f230611 100644
--- a/debian/control
+++ b/debian/control
@@ -6,8 +6,10 @@ Uploaders: Ethan Ward <ethan.ward at mycroft.ai>
 Build-Depends: debhelper (>= 10),
                dh-python,
                python-all,
+               python-pytest,
                python-setuptools,
                python3-all,
+               python3-pytest,
                python3-setuptools
 Standards-Version: 4.0.0
 Homepage: https://pypi.python.org/pypi/inflection
diff --git a/debian/rules b/debian/rules
index bdbe0ee..f98626c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,9 +2,11 @@
 
 #export DH_VERBOSE=1
 export PYBUILD_NAME=inflection
+export PYBUILD_BEFORE_TEST=cp {dir}/test_inflection.py {build_dir}
+export PYBUILD_AFTER_TEST=rm -f {build_dir}/test_inflection.py
 
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
+	dh $@ --with python2,python3 --buildsystem=pybuild --test-pytest
 
 override_dh_installchangelogs:
 	dh_installchangelogs CHANGES.rst

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



More information about the Python-modules-commits mailing list