[Python-modules-commits] r21208 - in packages/python-simpy/trunk/debian (3 files)
dandrimont-guest at users.alioth.debian.org
dandrimont-guest at users.alioth.debian.org
Fri Apr 13 21:52:42 UTC 2012
Date: Friday, April 13, 2012 @ 21:52:41
Author: dandrimont-guest
Revision: 21208
Run the tests for all python versions
Modified:
packages/python-simpy/trunk/debian/changelog
packages/python-simpy/trunk/debian/control
packages/python-simpy/trunk/debian/rules
Modified: packages/python-simpy/trunk/debian/changelog
===================================================================
--- packages/python-simpy/trunk/debian/changelog 2012-04-13 21:25:32 UTC (rev 21207)
+++ packages/python-simpy/trunk/debian/changelog 2012-04-13 21:52:41 UTC (rev 21208)
@@ -8,8 +8,9 @@
* Update the copyright file
- Add the new contributors
- Update format to 1.0
+ * Run the tests at build-time (adding a Build-Depend on python-simpy)
- -- Nicolas Dandrimont <nicolas.dandrimont at crans.org> Fri, 13 Apr 2012 23:24:52 +0200
+ -- Nicolas Dandrimont <nicolas.dandrimont at crans.org> Fri, 13 Apr 2012 23:52:09 +0200
python-simpy (2.2-1) unstable; urgency=low
Modified: packages/python-simpy/trunk/debian/control
===================================================================
--- packages/python-simpy/trunk/debian/control 2012-04-13 21:25:32 UTC (rev 21207)
+++ packages/python-simpy/trunk/debian/control 2012-04-13 21:52:41 UTC (rev 21208)
@@ -7,6 +7,7 @@
debhelper (>= 8),
python-all (>= 2.6.6-3~),
python3-all,
+ python-pytest,
python-sphinx (>= 1.0.7+dfsg-1~)
Standards-Version: 3.9.3
Homepage: http://simpy.sourceforge.net/
Modified: packages/python-simpy/trunk/debian/rules
===================================================================
--- packages/python-simpy/trunk/debian/rules 2012-04-13 21:25:32 UTC (rev 21207)
+++ packages/python-simpy/trunk/debian/rules 2012-04-13 21:52:41 UTC (rev 21208)
@@ -4,6 +4,8 @@
#export DH_VERBOSE=1
VERSION = $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
+
+PY2VERSIONS = $(shell pyversions -vr)
PY3VERSIONS = $(shell py3versions -vr)
%:
@@ -18,6 +20,14 @@
mv docs/html docs/html.old && make -C docs html
+override_dh_auto_test:
+ set -e; for version in $(PY2VERSIONS); do \
+ PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python$$version python$$version -c 'import SimPy; SimPy.test()'; \
+ done
+ set -e; for version in $(PY3VERSIONS); do \
+ PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3 python$$version -c 'import SimPy; SimPy.test()'; \
+ done
+
override_dh_install:
dh_install --fail-missing
More information about the Python-modules-commits
mailing list