[Python-modules-commits] r17782 - in packages/python-stdnum/trunk/debian (6 files)

adejong at users.alioth.debian.org adejong at users.alioth.debian.org
Sat Jul 9 20:46:23 UTC 2011


    Date: Saturday, July 9, 2011 @ 20:46:22
  Author: adejong
Revision: 17782

  * Also build a python3-stdnum package

Added:
  packages/python-stdnum/trunk/debian/python-stdnum.docs
    (from rev 17780, packages/python-stdnum/trunk/debian/docs)
  packages/python-stdnum/trunk/debian/python3-stdnum.docs
    (from rev 17780, packages/python-stdnum/trunk/debian/docs)
Modified:
  packages/python-stdnum/trunk/debian/changelog
  packages/python-stdnum/trunk/debian/control
  packages/python-stdnum/trunk/debian/rules
Deleted:
  packages/python-stdnum/trunk/debian/docs

Modified: packages/python-stdnum/trunk/debian/changelog
===================================================================
--- packages/python-stdnum/trunk/debian/changelog	2011-07-09 20:13:36 UTC (rev 17781)
+++ packages/python-stdnum/trunk/debian/changelog	2011-07-09 20:46:22 UTC (rev 17782)
@@ -9,8 +9,9 @@
     - Python 2.5 compatibility improvement
   * Switch to using dh_python2
   * Upgrade to standards-version 3.9.2 (no changes needed)
+  * Also build a python3-stdnum package
 
- -- Arthur de Jong <adejong at debian.org>  Sat, 09 Jul 2011 18:15:00 +0200
+ -- Arthur de Jong <adejong at debian.org>  Sat, 09 Jul 2011 22:45:00 +0200
 
 python-stdnum (0.4-1) unstable; urgency=low
 

Modified: packages/python-stdnum/trunk/debian/control
===================================================================
--- packages/python-stdnum/trunk/debian/control	2011-07-09 20:13:36 UTC (rev 17781)
+++ packages/python-stdnum/trunk/debian/control	2011-07-09 20:46:22 UTC (rev 17782)
@@ -5,8 +5,9 @@
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Standards-Version: 3.9.2
 Build-Depends: debhelper (>= 7.0.50~), python-setuptools
-Build-Depends-Indep: python (>= 2.6.6-3~)
+Build-Depends-Indep: python (>= 2.6.6-3~), python3 (>= 3.1.2-10~)
 X-Python-Version: >= 2.5
+X-Python3-Version: >= 3.0
 Homepage: http://arthurdejong.org/python-stdnum/
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-stdnum/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-stdnum/trunk/
@@ -42,3 +43,37 @@
   * the Luhn and Luhn mod N algorithms
   * some algorithms described in ISO/IEC 7064: Mod 11, 2, Mod 37, 2,
     Mod 97, 10, Mod 11, 10 and Mod 37, 36
+
+Package: python3-stdnum
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: Python module to handle standardized numbers and codes (Python3 version)
+ A Python module to parse, validate and reformat standard numbers and codes
+ in different formats.
+ .
+ Currently this package supports the following formats:
+ .
+  * ISBN (International Standard Book Number)
+  * ISSN (International Standard Serial Number)
+  * ISMN (International Standard Music Number)
+  * ISAN (International Standard Audiovisual Number)
+  * EAN (International Article Number)
+  * BSN (Burgerservicenummer, the Dutch national identification number)
+  * CPF (Cadastro de Pessoas Físicas, the Brazillian national identification
+    number)
+  * SSN (U.S. Social Security Number)
+  * IMEI (International Mobile Equipment Identity)
+  * MEID (Mobile Equipment Identifier)
+  * GRid (Global Release Identifier)
+  * IBAN (International Bank Account Number)
+  * ISIL (International Standard Identifier for Libraries and Related
+    Organizations)
+ .
+ Furthermore a number of generic check digit algorithms are available:
+ .
+  * the Verhoeff algorithm
+  * the Luhn and Luhn mod N algorithms
+  * some algorithms described in ISO/IEC 7064: Mod 11, 2, Mod 37, 2,
+    Mod 97, 10, Mod 11, 10 and Mod 37, 36
+ .
+ This package contains the Python 3 version of the library.

Deleted: packages/python-stdnum/trunk/debian/docs
===================================================================
--- packages/python-stdnum/trunk/debian/docs	2011-07-09 20:13:36 UTC (rev 17781)
+++ packages/python-stdnum/trunk/debian/docs	2011-07-09 20:46:22 UTC (rev 17782)
@@ -1,2 +0,0 @@
-README
-NEWS

Copied: packages/python-stdnum/trunk/debian/python-stdnum.docs (from rev 17780, packages/python-stdnum/trunk/debian/docs)
===================================================================
--- packages/python-stdnum/trunk/debian/python-stdnum.docs	                        (rev 0)
+++ packages/python-stdnum/trunk/debian/python-stdnum.docs	2011-07-09 20:46:22 UTC (rev 17782)
@@ -0,0 +1,2 @@
+README
+NEWS

Copied: packages/python-stdnum/trunk/debian/python3-stdnum.docs (from rev 17780, packages/python-stdnum/trunk/debian/docs)
===================================================================
--- packages/python-stdnum/trunk/debian/python3-stdnum.docs	                        (rev 0)
+++ packages/python-stdnum/trunk/debian/python3-stdnum.docs	2011-07-09 20:46:22 UTC (rev 17782)
@@ -0,0 +1,2 @@
+README
+NEWS

Modified: packages/python-stdnum/trunk/debian/rules
===================================================================
--- packages/python-stdnum/trunk/debian/rules	2011-07-09 20:13:36 UTC (rev 17781)
+++ packages/python-stdnum/trunk/debian/rules	2011-07-09 20:46:22 UTC (rev 17782)
@@ -1,3 +1,12 @@
 #!/usr/bin/make -f
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3
+
+override_dh_auto_build:
+
+override_dh_auto_install:
+	python $(CURDIR)/setup.py install --no-compile -O0 --install-layout=deb \
+	       --root $(CURDIR)/debian/python-stdnum
+	python3 $(CURDIR)/setup.py install --no-compile -O0 --install-layout=deb \
+	       --root $(CURDIR)/debian/python3-stdnum
+	dh_install




More information about the Python-modules-commits mailing list