[Python-modules-commits] r22584 - in packages/mysql-connector-python/trunk/debian (3 files)
morph at users.alioth.debian.org
morph at users.alioth.debian.org
Mon Aug 27 20:54:42 UTC 2012
Date: Monday, August 27, 2012 @ 20:54:41
Author: morph
Revision: 22584
* debian/{control, rules}
- provide Python 3 package
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-08-27 19:30:39 UTC (rev 22583)
+++ packages/mysql-connector-python/trunk/debian/changelog 2012-08-27 20:54:41 UTC (rev 22584)
@@ -1,3 +1,10 @@
+mysql-connector-python (0.3.2-2) UNRELEASED; urgency=low
+
+ * debian/{control, rules}
+ - provide Python 3 package
+
+ -- Sandro Tosi <morph at debian.org> Mon, 27 Aug 2012 22:54:26 +0200
+
mysql-connector-python (0.3.2-1) unstable; urgency=low
* Initial release (Closes: #650809)
Modified: packages/mysql-connector-python/trunk/debian/control
===================================================================
--- packages/mysql-connector-python/trunk/debian/control 2012-08-27 19:30:39 UTC (rev 22583)
+++ packages/mysql-connector-python/trunk/debian/control 2012-08-27 20:54:41 UTC (rev 22584)
@@ -3,9 +3,10 @@
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
+Build-Depends: debhelper (>= 7.0.50~), python-all, python-support, python3-all
Standards-Version: 3.9.2
X-Python-Version: all
+X-Python3-Version: >= 3.1
Homepage: http://launchpad.net/myconnpy
Vcs-Svn: svn://svn.debian.org/svn/python-modules/packages/mysql-connector-python/trunk/
Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/mysql-connector-python/trunk/
@@ -20,3 +21,16 @@
MySQL Connector/Python is implementing the MySQL Client/Server protocol
completely in Python. This means you don't have to compile anything or MySQL
(client library) doesn't even have to be installed on the machine.
+
+Package: python3-mysql.connector
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}
+Description: pure Python implementation of MySQL Client/Server protocol (Python3)
+ MySQL driver written in Python which does not depend on MySQL C client
+ libraries and implements the DB API v2.0 specification (PEP-249).
+ .
+ MySQL Connector/Python is implementing the MySQL Client/Server protocol
+ completely in Python. This means you don't have to compile anything or MySQL
+ (client library) doesn't even have to be installed on the machine.
+ .
+ This package contains the Python 3 version of mysql.connector.
Modified: packages/mysql-connector-python/trunk/debian/rules
===================================================================
--- packages/mysql-connector-python/trunk/debian/rules 2012-08-27 19:30:39 UTC (rev 22583)
+++ packages/mysql-connector-python/trunk/debian/rules 2012-08-27 20:54:41 UTC (rev 22584)
@@ -4,8 +4,22 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+PYTHON2=$(shell pyversions -r)
+PYTHON3=$(shell py3versions -r)
+
%:
- dh $@
+ dh $@ --with python3
override_dh_installexamples:
dh_installexamples python2/examples/*
+
+override_dh_install:
+ set -e; \
+ for python in $(PYTHON2); do \
+ $$python setup.py install --install-layout=deb --root $(CURDIR)/debian/python-mysql.connector ; \
+ done
+ set -e; \
+ for python in $(PYTHON3); do \
+ $$python setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-mysql.connector ; \
+ done
+ dh_install
More information about the Python-modules-commits
mailing list