[Python-modules-commits] r15638 - in packages/python-ipaddr/trunk/debian (3 files)

kitterman at users.alioth.debian.org kitterman at users.alioth.debian.org
Mon Feb 14 01:45:57 UTC 2011


    Date: Monday, February 14, 2011 @ 01:45:37
  Author: kitterman
Revision: 15638

python-ipaddr (2.1.8-1) unstable; urgency=low

  * New upstream release
  * Provide python3-ipaddr from this source using 2to3
    - Add package to debian/control
    - Add X-Python3-Version to debian/control
    - Add python3-all to build-depends
    - Add installation into the correct binaries in debian/rules and run 2to3
      between python and python3 rules
  * Run tests (ipaddr_test.py) during build for each python/python3 version
  * Drop XB-Python-Version and switch XS-Python-Version to X-Python-Version
  * Add Breaks:  to python-ipaddr

Modified:
  packages/python-ipaddr/trunk/debian/changelog
  packages/python-ipaddr/trunk/debian/control
  packages/python-ipaddr/trunk/debian/rules

Modified: packages/python-ipaddr/trunk/debian/changelog
===================================================================
--- packages/python-ipaddr/trunk/debian/changelog	2011-02-13 21:25:36 UTC (rev 15637)
+++ packages/python-ipaddr/trunk/debian/changelog	2011-02-14 01:45:37 UTC (rev 15638)
@@ -1,3 +1,18 @@
+python-ipaddr (2.1.8-1) unstable; urgency=low
+
+  * New upstream release
+  * Provide python3-ipaddr from this source using 2to3
+    - Add package to debian/control
+    - Add X-Python3-Version to debian/control
+    - Add python3-all to build-depends
+    - Add installation into the correct binaries in debian/rules and run 2to3
+      between python and python3 rules
+  * Run tests (ipaddr_test.py) during build for each python/python3 version
+  * Drop XB-Python-Version and switch XS-Python-Version to X-Python-Version
+  * Add Breaks: ${python:Breaks} to python-ipaddr
+
+ -- Scott Kitterman <scott at kitterman.com>  Sun, 13 Feb 2011 16:17:14 -0500
+
 python-ipaddr (2.1.7-1) unstable; urgency=low
 
   * New upstream release

Modified: packages/python-ipaddr/trunk/debian/control
===================================================================
--- packages/python-ipaddr/trunk/debian/control	2011-02-13 21:25:36 UTC (rev 15637)
+++ packages/python-ipaddr/trunk/debian/control	2011-02-14 01:45:37 UTC (rev 15638)
@@ -3,17 +3,18 @@
 Priority: optional
 Maintainer: Scott Kitterman <scott at kitterman.com>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7.3.16), python-all (>= 2.6.5-2~)
+Build-Depends: debhelper (>= 7.3.16), python-all (>= 2.6.5-2~), python3-all (>= 3.1.3-3)
 Standards-Version: 3.9.1
 Homepage: http://code.google.com/p/ipaddr-py/
-XS-Python-Version: >= 2.4
+X-Python-Version: >= 2.4
+X-Python3-Version: >= 3.1
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-ipaddr/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-ipaddr/trunk/
 
 Package: python-ipaddr
 Architecture: all
 Depends: ${python:Depends}, ${misc:Depends}
-XB-Python-Version: ${python:Versions}
+Breaks: ${python:Breaks}
 Description: Python module for working with IP addresses, both IPv4 and IPv6
  This library is used to create/poke/manipulate IPv4 and IPv6 addresses
  and networks in Python.  It is intended to be fast and lightweight.
@@ -22,3 +23,16 @@
  networks. It supports comparisons to determine if IP addresses are contained
  inside a defined network, conversion of lists of IP addresses into compact
  CIDR lists, and other IP address manipulation
+
+Package: python3-ipaddr
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Description: Python3 module for working with IP addresses, both IPv4 and IPv6
+ This library is used to create/poke/manipulate IPv4 and IPv6 addresses
+ and networks in Python3.  It is intended to be fast and lightweight.
+ .
+ This is a pure Python3 implementation of classes for IPv4/6 addresses and
+ networks. It supports comparisons to determine if IP addresses are contained
+ inside a defined network, conversion of lists of IP addresses into compact
+ CIDR lists, and other IP address manipulation.
+

Modified: packages/python-ipaddr/trunk/debian/rules
===================================================================
--- packages/python-ipaddr/trunk/debian/rules	2011-02-13 21:25:36 UTC (rev 15637)
+++ packages/python-ipaddr/trunk/debian/rules	2011-02-14 01:45:37 UTC (rev 15638)
@@ -1,5 +1,22 @@
 #!/usr/bin/make -f
+# -*- makefile -*-
 
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3
 
+override_dh_auto_install:
+	for pyvers in $(shell pyversions -vr); do \
+		python$$pyvers setup.py install --no-compile -O0 --install-layout=deb \
+			--root $(CURDIR)/debian/python-ipaddr; \
+		python$$pyvers $(CURDIR)/ipaddr_test.py; \
+	done
+	2to3 -w $(CURDIR)/ipaddr.py
+	2to3 -w $(CURDIR)/ipaddr_test.py
+	for pyvers in $(shell py3versions -sv); do \
+		python$$pyvers setup.py install --no-compile -O0 --install-layout=deb \
+			--root $(CURDIR)/debian/python3-ipaddr; \
+		python$$pyvers $(CURDIR)/ipaddr_test.py; \
+	done
+	mv $(CURDIR)/ipaddr.py.bak $(CURDIR)/ipaddr.py
+	mv $(CURDIR)/ipaddr_test.py.bak $(CURDIR)/ipaddr_test.py
+




More information about the Python-modules-commits mailing list