[Python-modules-commits] r17639 - in packages/python-anyjson/trunk/debian (4 files)
fladi-guest at users.alioth.debian.org
fladi-guest at users.alioth.debian.org
Mon Jun 27 11:33:54 UTC 2011
Date: Monday, June 27, 2011 @ 11:33:53
Author: fladi-guest
Revision: 17639
Use correct DEP5 format URL.
Enable python3 build.
Modified:
packages/python-anyjson/trunk/debian/changelog
packages/python-anyjson/trunk/debian/control
packages/python-anyjson/trunk/debian/copyright
packages/python-anyjson/trunk/debian/rules
Modified: packages/python-anyjson/trunk/debian/changelog
===================================================================
--- packages/python-anyjson/trunk/debian/changelog 2011-06-27 09:48:07 UTC (rev 17638)
+++ packages/python-anyjson/trunk/debian/changelog 2011-06-27 11:33:53 UTC (rev 17639)
@@ -1,8 +1,7 @@
python-anyjson (0.3.1-1) UNRELEASED; urgency=low
* New upstream version (Closes: #620959).
- - Drop python-cjson as it is now the least favoured implementation and
- it has encoding/decoding bugs (mention it in d/NEWS).
+ - Drop python-cjson from Depends.
* Set PMPT as maintainer and myself as uploader.
* Switch to dh_python2.
* Switch to source format 3.0 (quilt).
@@ -13,8 +12,9 @@
* Bumped Standards-Version to 3.9.2 (no change necessary).
* Set X-P-V to >= 2.4.
* Recommend either python (>= 2.6) or python-simplejson.
+ * Build for python3.
- -- Fladischer Michael <FladischerMichael at fladi.at> Mon, 27 Jun 2011 11:41:57 +0200
+ -- Fladischer Michael <FladischerMichael at fladi.at> Mon, 27 Jun 2011 13:33:08 +0200
python-anyjson (0.2.3-1) unstable; urgency=low
Modified: packages/python-anyjson/trunk/debian/control
===================================================================
--- packages/python-anyjson/trunk/debian/control 2011-06-27 09:48:07 UTC (rev 17638)
+++ packages/python-anyjson/trunk/debian/control 2011-06-27 11:33:53 UTC (rev 17639)
@@ -4,9 +4,14 @@
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: David Watson <dwatson at debian.org>,
Fladischer Michael <FladischerMichael at fladi.at>
-Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3~), python-setuptools
+Build-Depends: debhelper (>= 7.0.50~),
+ python-all (>= 2.6.6-3~),
+ python-setuptools,
+ python3-all (>= 3.1.2-12~),
+ python3-setuptools
Standards-Version: 3.9.2
X-Python-Version: >= 2.4
+X-Python3-Version: >= 3.0
Homepage: http://bitbucket.org/runeh/anyjson/
Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-anyjson/trunk/
Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-anyjson/trunk/
@@ -15,8 +20,20 @@
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}
Recommends: python (>= 2.6) | python-simplejson
-Description: Wraps the best available JSON implementation available in a common interface
+Description: Common interface for the best available JSON implementation
Loads whichever is the fastest JSON module installed and provides a uniform
API regardless of which JSON implementation is used. The exceptions will also
be the same whichever JSON module is used.
The ranking of the JSON implementations is based on a benchmark.
+
+Package: python3-anyjson
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: Common interface for the best available JSON implementation (Python3 version)
+ Loads whichever is the fastest JSON module installed and provides a uniform
+ API regardless of which JSON implementation is used. The exceptions will also
+ be the same whichever JSON module is used.
+ The ranking of the JSON implementations is based on a benchmark.
+ .
+ This package contains the Python 3 version of the library.
+
Modified: packages/python-anyjson/trunk/debian/copyright
===================================================================
--- packages/python-anyjson/trunk/debian/copyright 2011-06-27 09:48:07 UTC (rev 17638)
+++ packages/python-anyjson/trunk/debian/copyright 2011-06-27 11:33:53 UTC (rev 17639)
@@ -1,4 +1,4 @@
-Format: http://dep.debian.net/deps/dep5/
+Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?view=markup&pathrev=174
Upstream-Name: anyjson
Upstream-Contact: Rune Halvorsen <runefh at gmail.com>
Source: http://pypi.python.org/pypi/anyjson/
Modified: packages/python-anyjson/trunk/debian/rules
===================================================================
--- packages/python-anyjson/trunk/debian/rules 2011-06-27 09:48:07 UTC (rev 17638)
+++ packages/python-anyjson/trunk/debian/rules 2011-06-27 11:33:53 UTC (rev 17639)
@@ -1,8 +1,26 @@
#!/usr/bin/make -f
-# -*- makefile -*-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+PYVERS := $(shell pyversions -r)
+PY3VERS := $(shell py3versions -r)
%:
- dh $@ --with=python2
+ dh $@ --with python2,python3
+
+override_dh_auto_build:
+ set -e; \
+ for py in $(PYVERS) $(PY3VERS); do \
+ $$py setup.py build; \
+ done
+
+override_dh_auto_install:
+ set -e; \
+ for py in $(PYVERS); do \
+ $$py setup.py install --skip-build --root debian/python-anyjson \
+ --install-layout deb; \
+ done
+ set -e; \
+ for py in $(PY3VERS); do \
+ $$py setup.py install --skip-build --root debian/python3-anyjson \
+ --install-layout deb; \
+ done
+
More information about the Python-modules-commits
mailing list