[Python-modules-commits] [pyscard] 02/02: Add back suport of Python 2

Ludovic Rousseau rousseau at moszumanska.debian.org
Sat Feb 20 17:26:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository pyscard.

commit 35dfaae1a20cad7e0de353207769d0091f12b782
Author: Ludovic Rousseau <rousseau at debian.org>
Date:   Sat Feb 20 18:03:20 2016 +0100

    Add back suport of Python 2
    
    We now support all Python 2 version (only python2.7 in sid) and all
    version of Python 3 (Python 3.4 and Python 3.5 in sid now).
---
 debian/changelog |  9 +++++++++
 debian/control   | 14 +++++++++++++-
 debian/rules     |  8 ++++++--
 3 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 766adfe..eb56015 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+pyscard (1.9.2-2) unstable; urgency=medium
+
+  * Provide a version for Python 2 and Python 3 versions
+  * Fix "Dropped python-pyscard without explanation" build python-pyscard for
+    Python 2 again (Closes: #814805)
+  * debian/python-pyscard.examples: examples for python-pyscard
+
+ -- Ludovic Rousseau <rousseau at debian.org>  Fri, 19 Feb 2016 22:02:16 +0100
+
 pyscard (1.9.2-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/control b/debian/control
index 233439a..733cea2 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: pyscard
 Priority: optional
 Maintainer: Ludovic Rousseau <rousseau at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 9~), python3-all-dev, libpcsclite-dev, swig, dh-python, python3-setuptools
+Build-Depends: debhelper (>= 9~), python-all-dev, python3-all-dev, libpcsclite-dev, swig, dh-python, python3-setuptools, python-setuptools
 Standards-Version: 3.9.6
 Section: python
 XS-Python-Version: all
@@ -21,3 +21,15 @@ Description: Python wrapper above PC/SC API
  smart card readers.
  .
  The package also contains some example of codes.
+
+Package: python-pyscard
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Suggests: python-wxgtk3.0
+XB-Python-Version: ${python:Versions}
+Description: Python wrapper above PC/SC API
+ This package contains a wrapper to use PC/SC from a Python program.
+ PC/SC (or winscard or pcsc) is an API to communicate with smart cards and
+ smart card readers.
+ .
+ The package also contains some example of codes.
diff --git a/debian/rules b/debian/rules
index 715ce19..99cf750 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,12 +1,13 @@
 #!/usr/bin/make -f
 
 build3vers := $(shell py3versions -sv)
+build2vers := $(shell pyversions -sv)
 
 %:
-	dh $@ --with python3
+	dh $@ --with python3 --with python2
 
 override_dh_auto_build:
-	set -e && for i in $(build3vers); do \
+	set -e && for i in $(build3vers) $(build2vers); do \
 	  python$$i setup.py build; \
 	done
 
@@ -14,6 +15,9 @@ override_dh_auto_install:
 	set -e && for i in $(build3vers); do \
 	  python$$i setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-pyscard; \
 	done
+	set -e && for i in $(build2vers); do \
+	  python$$i setup.py install --install-layout=deb --root $(CURDIR)/debian/python-pyscard; \
+	done
 
 override_dh_auto_clean:
 	python3 setup.py clean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pyscard.git



More information about the Python-modules-commits mailing list