[Python-modules-commits] r22860 - in packages/mysql-connector-python/trunk/debian (3 files)
morph at users.alioth.debian.org
morph at users.alioth.debian.org
Sun Oct 28 23:05:33 UTC 2012
Date: Sunday, October 28, 2012 @ 23:05:32
Author: morph
Revision: 22860
* debian/{control, rules}
- run tests at build-time (requires a MySQL server)
Modified:
packages/mysql-connector-python/trunk/debian/changelog
packages/mysql-connector-python/trunk/debian/control
packages/mysql-connector-python/trunk/debian/rules
Modified: packages/mysql-connector-python/trunk/debian/changelog
===================================================================
--- packages/mysql-connector-python/trunk/debian/changelog 2012-10-28 18:25:49 UTC (rev 22859)
+++ packages/mysql-connector-python/trunk/debian/changelog 2012-10-28 23:05:32 UTC (rev 22860)
@@ -1,3 +1,10 @@
+mysql-connector-python (1.0.7-2) UNRELEASED; urgency=low
+
+ * debian/{control, rules}
+ - run tests at build-time (requires a MySQL server)
+
+ -- Sandro Tosi <morph at debian.org> Mon, 29 Oct 2012 00:04:30 +0100
+
mysql-connector-python (1.0.7-1) experimental; urgency=low
* New upstream release (GA)
Modified: packages/mysql-connector-python/trunk/debian/control
===================================================================
--- packages/mysql-connector-python/trunk/debian/control 2012-10-28 18:25:49 UTC (rev 22859)
+++ packages/mysql-connector-python/trunk/debian/control 2012-10-28 23:05:32 UTC (rev 22860)
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Sandro Tosi <morph at debian.org>
-Build-Depends: debhelper (>= 7.0.50~), python-all, python-support, python3-all
+Build-Depends: debhelper (>= 7.0.50~), python-all, python-support, python3-all, mysql-server
Standards-Version: 3.9.3
X-Python-Version: all
X-Python3-Version: >= 3.1
Modified: packages/mysql-connector-python/trunk/debian/rules
===================================================================
--- packages/mysql-connector-python/trunk/debian/rules 2012-10-28 18:25:49 UTC (rev 22859)
+++ packages/mysql-connector-python/trunk/debian/rules 2012-10-28 23:05:32 UTC (rev 22860)
@@ -27,3 +27,13 @@
override_dh_installdocs:
dh_installdocs -A docs/mysql-connector-python.txt
+
+override_dh_auto_test:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ set -e ; \
+ for python in $(PYTHON2) $(PYTHON3); do \
+ LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_purelib)") ;\
+ PYTHONPATH=$(CURDIR)/$$LIB $$python unittests.py --mysql-basedir=/usr/ --mysql-topdir=$(CURDIR)/mysql_myconnpy/ --verbosity=1 ; \
+ rm -rf $(CURDIR)/mysql_myconnpy/ ; \
+ done
+endif
More information about the Python-modules-commits
mailing list