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

jandd at users.alioth.debian.org jandd at users.alioth.debian.org
Fri May 18 08:56:49 UTC 2012


    Date: Friday, May 18, 2012 @ 08:56:47
  Author: jandd
Revision: 21810

* add Python3 support
  - add new binary package stanza for python3-bitarray
  - add python3-all-dev and python3 (>= 3.1.3-2~) to Build-Depends
  - add python3 handling to debian/rules

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

Modified: packages/python-bitarray/trunk/debian/changelog
===================================================================
--- packages/python-bitarray/trunk/debian/changelog	2012-05-18 07:22:24 UTC (rev 21809)
+++ packages/python-bitarray/trunk/debian/changelog	2012-05-18 08:56:47 UTC (rev 21810)
@@ -1,3 +1,12 @@
+python-bitarray (0.8.0-2) UNRELEASED; urgency=low
+
+  * add Python3 support
+    - add new binary package stanza for python3-bitarray
+    - add python3-all-dev and python3 (>= 3.1.3-2~) to Build-Depends
+    - add python3 handling to debian/rules
+
+ -- Jan Dittberner <jandd at debian.org>  Fri, 18 May 2012 00:02:11 +0200
+
 python-bitarray (0.8.0-1) unstable; urgency=low
 
   * New upstream version.

Modified: packages/python-bitarray/trunk/debian/control
===================================================================
--- packages/python-bitarray/trunk/debian/control	2012-05-18 07:22:24 UTC (rev 21809)
+++ packages/python-bitarray/trunk/debian/control	2012-05-18 08:56:47 UTC (rev 21810)
@@ -4,7 +4,8 @@
 Maintainer: Jan Dittberner <jandd at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Build-Depends: debhelper (>= 7.0.50~), python-all-dev, python (>= 2.6.6-3~),
- python-docutils, dpkg-dev (>= 1.16.1~)
+ python-docutils, dpkg-dev (>= 1.16.1~), python3-all-dev,
+ python3 (>= 3.1.3-2~)
 Standards-Version: 3.9.3
 Homepage: http://pypi.python.org/pypi/bitarray
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-bitarray/trunk
@@ -26,3 +27,20 @@
  when dealing with compressed data which uses variable bit length encoding, you
  may find this module useful.
 
+Package: python3-bitarray
+Architecture: any
+Depends: ${python3:Depends}, ${misc:Depends}, ${shlibs:Depends}
+Description: Python3 module for efficient boolean array handling
+ The bitarry module provides an object type which efficiently represents an
+ array of booleans. Bitarrays are sequence types and behave very much like
+ usual lists. Eight bits are represented by one byte in contiguous block of
+ memory. The user can select between two representations; little-endian and
+ big-endian.
+ .
+ Most of the functionality is implemented in C. Methods for accessing the
+ machine representation are provided. This can be useful when bit level access
+ to binary files is required, such as portable bitmap image files (.pbm). Also,
+ when dealing with compressed data which uses variable bit length encoding, you
+ may find this module useful.
+ .
+ This package provides the Python3 version of the module.

Modified: packages/python-bitarray/trunk/debian/rules
===================================================================
--- packages/python-bitarray/trunk/debian/rules	2012-05-18 07:22:24 UTC (rev 21809)
+++ packages/python-bitarray/trunk/debian/rules	2012-05-18 08:56:47 UTC (rev 21810)
@@ -7,11 +7,27 @@
 DOCTEMPDIR=$(CURDIR)/debian/buildhtml
 DEFAULTPYTHON=$(shell pyversions -d)
 PYVERS=$(shell pyversions -i)
+PY3VERS=$(shell py3versions -i)
 
 override_dh_auto_clean:
-	rm -rf $(DOCTEMPDIR) README.html
-	dh_auto_clean
+	rm -rf $(DOCTEMPDIR) README.html build
 
+override_dh_auto_build:
+	for pyvers in $(PYVERS) $(PY3VERS); do \
+	    $$pyvers setup.py build; \
+	done
+
+run-install%:
+	$* setup.py install --install-layout=deb --root $(CURDIR)/$(call py_pkgname,debian/python-bitarray,$*)
+
+override_dh_auto_install: $(PYVERS:%=run-install%) $(PY3VERS:%=run-install%)
+
+override_dh_python2:
+	dh_python2 -ppython-bitarray
+
+override_dh_python3:
+	dh_python3 -ppython3-bitarray
+
 override_dh_installdocs:
 	mkdir $(DOCTEMPDIR); \
 	sed 's,rst2html\.py,rst2html,' <$(CURDIR)/update_readme.py >$(DOCTEMPDIR)/update_readme.py; \
@@ -33,7 +49,7 @@
 		PYTHONPATH=$(CURDIR)/$(call py_builddir, $(shell echo $*)) $* -c 'import bitarray; bitarray.test()'
 endif
 
-override_dh_auto_test: $(PYVERS:%=run-test%)
+override_dh_auto_test: $(PYVERS:%=run-test%) $(PY3VERS:%=run-test%)
 
 %:
-	dh --with python2 $@ --buildsystem=python_distutils
+	dh --with python2,python3 $@ --buildsystem=python_distutils




More information about the Python-modules-commits mailing list