[Python-modules-commits] [pep8] 01/02: Run the test suite when building the package
Sylvestre Ledru
sylvestre at moszumanska.debian.org
Wed Mar 2 12:50:57 UTC 2016
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch master
in repository pep8.
commit 11a7c0c218249d7051b3f1074a17d225ee2232c9
Author: Sylvestre Ledru <sylvestre at debian.org>
Date: Wed Mar 2 13:34:13 2016 +0100
Run the test suite when building the package
---
debian/changelog | 1 +
debian/control | 7 ++++++-
debian/rules | 16 +++++++++-------
3 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index d7721b3..2500eb2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ pep8 (1.7.0-0.2) unstable; urgency=medium
* New upstream release (Closes: #816488)
* Package moved under the Python team umbrella
* Package moved under git maintenance (Closes: #816489)
+ * Run the test suite when building the package
[ Matthias Klose ]
* Let the pep8 binary use python3 (Closes: #807409)
diff --git a/debian/control b/debian/control
index 26b61a9..5e8f91e 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,12 @@ Section: python
Priority: optional
Uploaders: David Watson <dwatson at debian.org>, Sylvestre Ledru <sylvestre at debian.org>
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7), python-all, python3-all, python-setuptools, python3-setuptools
+Build-Depends: debhelper (>= 7),
+ python-all,
+ python3-all,
+ python-setuptools,
+ python3-setuptools,
+ python-nose
Standards-Version: 3.9.5
Homepage: http://pypi.python.org/pypi/pep8
Vcs-Git: git://anonscm.debian.org/python-modules/packages/pep8.git
diff --git a/debian/rules b/debian/rules
index edefd99..8d3362d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +1,10 @@
#!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PYTHONS:=$(shell pyversions -vr)
PYTHON3S:=$(shell py3versions -vr)
+PYVERS=$(shell pyversions -r)
+PY3VERS=$(shell py3versions -r)
%:
dh $@ --buildsystem=python_distutils --with python2,python3
@@ -28,5 +23,12 @@ override_dh_auto_install:
mkdir -p debian/pep8/usr
mv debian/python3-pep8/usr/bin debian/pep8/usr/.
+override_dh_auto_test:
+ set -xe; \
+ for py in $(PYVERS) $(PY3VERS); do \
+ $$py setup.py test; \
+ done
+
+
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pep8.git
More information about the Python-modules-commits
mailing list