[Python-modules-commits] r22795 - in packages/pysubnettree/trunk/debian (4 files)

kitterman at users.alioth.debian.org kitterman at users.alioth.debian.org
Fri Oct 19 05:44:13 UTC 2012


    Date: Friday, October 19, 2012 @ 05:44:10
  Author: kitterman
Revision: 22795

* Add support for Python 3
  - Add python3-all-dev to build-depends
  - Add new python3-subnettree binary
  - Add python3-subnettree.docs
  - Redo debian/rules to support running build with setup.py for all
    supported python and python3 versions

Added:
  packages/pysubnettree/trunk/debian/python3-subnettree.docs
Modified:
  packages/pysubnettree/trunk/debian/changelog
  packages/pysubnettree/trunk/debian/control
  packages/pysubnettree/trunk/debian/rules

Modified: packages/pysubnettree/trunk/debian/changelog
===================================================================
--- packages/pysubnettree/trunk/debian/changelog	2012-10-18 23:43:39 UTC (rev 22794)
+++ packages/pysubnettree/trunk/debian/changelog	2012-10-19 05:44:10 UTC (rev 22795)
@@ -1,3 +1,14 @@
+pysubnettree (0.19-2) experimental; urgency=low
+
+  * Add support for Python 3
+    - Add python3-all-dev to build-depends
+    - Add new python3-subnettree binary
+    - Add python3-subnettree.docs
+    - Redo debian/rules to support running build with setup.py for all
+      supported python and python3 versions
+
+ -- Scott Kitterman <scott at kitterman.com>  Fri, 19 Oct 2012 01:22:47 -0400
+
 pysubnettree (0.19-1) experimental; urgency=low
 
   [ Raúl Benencia ]

Modified: packages/pysubnettree/trunk/debian/control
===================================================================
--- packages/pysubnettree/trunk/debian/control	2012-10-18 23:43:39 UTC (rev 22794)
+++ packages/pysubnettree/trunk/debian/control	2012-10-19 05:44:10 UTC (rev 22795)
@@ -4,7 +4,7 @@
 Maintainer: Scott Kitterman <scott at kitterman.com>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>,
            Raúl Benencia <rul at kalgan.cc>
-Build-Depends: debhelper (>= 9), python-all-dev (>= 2.6.5-2~), swig
+Build-Depends: debhelper (>= 9), python-all-dev (>= 2.6.5-2~), python3-all-dev (>= 3.1.2-12~), swig
 X-Python-Version: >= 2.4
 Standards-Version: 3.9.4
 Homepage: http://bro-ids.org/download/README.pysubnettree.html
@@ -15,7 +15,17 @@
 Architecture: any
 Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
 Description: Python Module for CIDR Lookups
- The PySubnetTree package provides a Python data structure SubnetTree which 
- maps subnets given in CIDR (Classless Inter-Domain Routing) notation to Python 
- objects. Lookups are performed by longest-prefix matching. It supports IPv6 
- addresses.
+ The PySubnetTree package provides a Python data structure SubnetTree which
+ maps subnets given in CIDR (Classless Inter-Domain Routing) notation to
+ Python objects. Lookups are performed by longest-prefix matching. It supports
+ IPv6 addresses.
+
+Package: python3-subnettree
+Architecture: any
+Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Description: Python3 Module for CIDR Lookups
+ The PySubnetTree package provides a Python data structure SubnetTree which
+ maps subnets given in CIDR (Classless Inter-Domain Routing) notation to
+ Python3 objects. Lookups are performed by longest-prefix matching. It supports
+ IPv6  addresses.
+

Added: packages/pysubnettree/trunk/debian/python3-subnettree.docs
===================================================================
--- packages/pysubnettree/trunk/debian/python3-subnettree.docs	                        (rev 0)
+++ packages/pysubnettree/trunk/debian/python3-subnettree.docs	2012-10-19 05:44:10 UTC (rev 22795)
@@ -0,0 +1 @@
+README

Modified: packages/pysubnettree/trunk/debian/rules
===================================================================
--- packages/pysubnettree/trunk/debian/rules	2012-10-18 23:43:39 UTC (rev 22794)
+++ packages/pysubnettree/trunk/debian/rules	2012-10-19 05:44:10 UTC (rev 22795)
@@ -1,4 +1,24 @@
 #!/usr/bin/make -f
 
+buildvers := $(shell pyversions -sv)
+build3vers := $(shell py3versions -sv)
+
 %:
-	dh $@ --buildsystem python_distutils --with python2
+	dh $@ --with python2, --with python3
+
+override_dh_auto_build:
+
+override_dh_auto_install:
+	dh_install -ppython-subnettree 
+	set -e && for i in $(buildvers); do \
+	  python$$i ./setup.py install --install-layout=deb --root $(CURDIR)/debian/python-subnettree; \
+	done
+
+	dh_install -ppython3-subnettree
+	set -e && for i in $(build3vers); do \
+	  python$$i ./setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-subnettree; \
+	done
+
+override_dh_clean:
+	dh_clean
+	rm -rf $(CURDIR)/build




More information about the Python-modules-commits mailing list