[Python-modules-commits] r21535 - in packages/simplegeneric/trunk/debian (6 files)
eriol-guest at users.alioth.debian.org
eriol-guest at users.alioth.debian.org
Fri May 4 03:10:07 UTC 2012
Date: Friday, May 4, 2012 @ 03:10:05
Author: eriol-guest
Revision: 21535
Added Python3 package
Added:
packages/simplegeneric/trunk/debian/python-simplegeneric.docs
(from rev 21534, packages/simplegeneric/trunk/debian/docs)
packages/simplegeneric/trunk/debian/python3-simplegeneric.docs
Modified:
packages/simplegeneric/trunk/debian/changelog
packages/simplegeneric/trunk/debian/control
packages/simplegeneric/trunk/debian/rules
Deleted:
packages/simplegeneric/trunk/debian/docs
Modified: packages/simplegeneric/trunk/debian/changelog
===================================================================
--- packages/simplegeneric/trunk/debian/changelog 2012-05-04 02:34:36 UTC (rev 21534)
+++ packages/simplegeneric/trunk/debian/changelog 2012-05-04 03:10:05 UTC (rev 21535)
@@ -1,6 +1,8 @@
simplegeneric (0.8.1-1) UNRELEASED; urgency=low
- * New upstream release
+ * New upstream release (Closes: #640531)
+ - With Python 3 support
+ * Builded Python 3 package
* debian/control
- Removed Cédric and added Debian Python Modules Team to Maintainer
Thanks to Cédric Delfosse for his past work!
@@ -13,7 +15,7 @@
- Switched to dh_python2. Thanks to Julian Taylor for the report
and the patch (Closes: #631408)
- -- Daniele Tricoli <eriol at mornie.org> Fri, 04 May 2012 04:31:45 +0200
+ -- Daniele Tricoli <eriol at mornie.org> Fri, 04 May 2012 05:05:24 +0200
simplegeneric (0.7-1) unstable; urgency=low
Modified: packages/simplegeneric/trunk/debian/control
===================================================================
--- packages/simplegeneric/trunk/debian/control 2012-05-04 02:34:36 UTC (rev 21534)
+++ packages/simplegeneric/trunk/debian/control 2012-05-04 03:10:05 UTC (rev 21535)
@@ -6,9 +6,12 @@
Build-Depends:
debhelper (>= 7.0.50~),
python-all (>= 2.6.6-3~),
- python-setuptools
+ python-setuptools,
+ python3-all,
+ python3-setuptools
Standards-Version: 3.9.3
-X-Python-Version: >= 2.6
+X-Python-Version: >= 2.4
+X-Python3-Version: >= 3.0
Homepage: http://pypi.python.org/pypi/simplegeneric
Package: python-simplegeneric
@@ -22,3 +25,17 @@
so on. However, instead of using specially-named methods, these generic
functions use simple lookup tables, akin to those used by e.g. pickle.dump()
and other generic functions found in the Python standard library.
+
+Package: python3-simplegeneric
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python3:Depends}
+Description: Simple generic functions for Python3
+ The simplegeneric module lets you define simple single-dispatch generic
+ functions, akin to Python's built-in generic functions like len(), iter() and
+ so on. However, instead of using specially-named methods, these generic
+ functions use simple lookup tables, akin to those used by e.g. pickle.dump()
+ and other generic functions found in the Python standard library.
+ .
+ This package contains the Python 3 version of the library.
Deleted: packages/simplegeneric/trunk/debian/docs
===================================================================
--- packages/simplegeneric/trunk/debian/docs 2012-05-04 02:34:36 UTC (rev 21534)
+++ packages/simplegeneric/trunk/debian/docs 2012-05-04 03:10:05 UTC (rev 21535)
@@ -1 +0,0 @@
-README.txt
\ No newline at end of file
Copied: packages/simplegeneric/trunk/debian/python-simplegeneric.docs (from rev 21534, packages/simplegeneric/trunk/debian/docs)
===================================================================
--- packages/simplegeneric/trunk/debian/python-simplegeneric.docs (rev 0)
+++ packages/simplegeneric/trunk/debian/python-simplegeneric.docs 2012-05-04 03:10:05 UTC (rev 21535)
@@ -0,0 +1 @@
+README.txt
\ No newline at end of file
Added: packages/simplegeneric/trunk/debian/python3-simplegeneric.docs
===================================================================
--- packages/simplegeneric/trunk/debian/python3-simplegeneric.docs (rev 0)
+++ packages/simplegeneric/trunk/debian/python3-simplegeneric.docs 2012-05-04 03:10:05 UTC (rev 21535)
@@ -0,0 +1 @@
+README.txt
\ No newline at end of file
Modified: packages/simplegeneric/trunk/debian/rules
===================================================================
--- packages/simplegeneric/trunk/debian/rules 2012-05-04 02:34:36 UTC (rev 21534)
+++ packages/simplegeneric/trunk/debian/rules 2012-05-04 03:10:05 UTC (rev 21535)
@@ -1,4 +1,30 @@
#!/usr/bin/make -f
+export PYTHONWARNINGS=d
+
+PYVERS := $(shell pyversions -r)
+PY3VERS := $(shell py3versions -r)
+
%:
- dh $@ --with python2
+ dh $@ --with python2,python3
+
+override_dh_auto_build:
+ set -ex; \
+ for python in $(PYVERS) $(PY3VERS); do \
+ $$python setup.py build; \
+ done
+
+override_dh_auto_install:
+ set -ex; \
+ for python in $(PYVERS); do \
+ $$python setup.py install --skip-build \
+ --root debian/python-simplegeneric \
+ --install-layout deb; \
+ done
+
+ set -ex; \
+ for python in $(PY3VERS); do \
+ $$python setup.py install --skip-build \
+ --root debian/python3-simplegeneric \
+ --install-layout deb; \
+ done
More information about the Python-modules-commits
mailing list