[Python-modules-commits] [python-schema] 05/08: Enable testing for PyPy
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sat May 6 14:52:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/experimental
in repository python-schema.
commit 42d1327e26dc735cbc2cad4638fb69836667db9b
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Sat May 6 15:09:46 2017 +0100
Enable testing for PyPy
- Add pypy-pytest to Build-Depends
- Add DEP-8 test command for PyPy
- Let pybuild run the tests for PyPy
Gbp-Dch: full
---
debian/control | 7 ++++---
debian/rules | 3 ---
debian/tests/control | 8 ++++++++
3 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/debian/control b/debian/control
index 27cc3a6..0c47cb8 100644
--- a/debian/control
+++ b/debian/control
@@ -5,14 +5,15 @@ Section: python
Priority: optional
Build-Depends: debhelper (>= 10),
dh-python,
+ pypy,
+ pypy-pytest,
+ pypy-setuptools,
python-all,
python-pytest,
python-setuptools,
python3-all,
python3-pytest,
- python3-setuptools,
- pypy,
- pypy-setuptools
+ python3-setuptools
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-schema.git
Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-schema.git
diff --git a/debian/rules b/debian/rules
index 9412b6c..e33e696 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,8 +7,5 @@ export PYBUILD_NAME = schema
export PYBUILD_BEFORE_TEST = cp {dir}/test_schema.py {dir}/LICENSE-MIT {build_dir}
export PYBUILD_AFTER_TEST = rm {build_dir}/test_schema.py {build_dir}/LICENSE-MIT
-# Testing is disabled on PyPy due to missing pytest dependency.
-export PYBUILD_DISABLE = test/pypy
-
%:
dh $@ --with python2,python3,pypy --buildsystem=pybuild
diff --git a/debian/tests/control b/debian/tests/control
index d8fcc8e..d5240c3 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -19,3 +19,11 @@ Test-Command: set -e
Depends: python3-all,
python3-pytest,
python3-schema
+
+Test-Command: set -e
+ ; cp test_schema.py LICENSE-MIT "$AUTOPKGTEST_TMP"
+ ; cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with pypy:"
+ ; pypy -m pytest -v
+Depends: pypy-pytest,
+ pypy-schema
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-schema.git
More information about the Python-modules-commits
mailing list