[Python-modules-commits] r20041 - in packages/lazr.uri/trunk/debian (5 files)

stefanor at users.alioth.debian.org stefanor at users.alioth.debian.org
Wed Jan 18 16:33:44 UTC 2012


    Date: Wednesday, January 18, 2012 @ 16:33:42
  Author: stefanor
Revision: 20041

* New maintainer.
* New upstream release (Closes: #656336)
  - Includes python3 support.
* Refreshed patches.
* debian/control:
  - Drop Breaks: ${python:Breaks}, no longer used by dh_python2.
  - Wrap and sort long lists.
* Clean egg-info.
* Removed changelog duplicate, NEWS.txt.

Modified:
  packages/lazr.uri/trunk/debian/changelog
  packages/lazr.uri/trunk/debian/control
  packages/lazr.uri/trunk/debian/docs
  packages/lazr.uri/trunk/debian/patches/no_package_data.patch
  packages/lazr.uri/trunk/debian/rules

Modified: packages/lazr.uri/trunk/debian/changelog
===================================================================
--- packages/lazr.uri/trunk/debian/changelog	2012-01-18 14:56:22 UTC (rev 20040)
+++ packages/lazr.uri/trunk/debian/changelog	2012-01-18 16:33:42 UTC (rev 20041)
@@ -1,3 +1,17 @@
+lazr.uri (1.0.3-1) UNRELEASED; urgency=low
+
+  * New maintainer.
+  * New upstream release (Closes: #656336)
+    - Includes python3 support.
+  * Refreshed patches.
+  * debian/control:
+    - Drop Breaks: ${python:Breaks}, no longer used by dh_python2.
+    - Wrap and sort long lists.
+  * Clean egg-info.
+  * Removed changelog duplicate, NEWS.txt.
+
+ -- Stefano Rivera <stefanor at debian.org>  Wed, 18 Jan 2012 18:02:55 +0200
+
 lazr.uri (1.0.2-5) unstable; urgency=low
 
   * Python transition:

Modified: packages/lazr.uri/trunk/debian/control
===================================================================
--- packages/lazr.uri/trunk/debian/control	2012-01-18 14:56:22 UTC (rev 20040)
+++ packages/lazr.uri/trunk/debian/control	2012-01-18 16:33:42 UTC (rev 20041)
@@ -1,9 +1,16 @@
 Source: lazr.uri
 Section: python
 Priority: optional
-Maintainer: Luca Falavigna <dktrkranz at debian.org>
-Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>, James Westby <james.westby at ubuntu.com>
-Build-Depends: debhelper (>= 7.3.0), python (>= 2.6.6-3~), python-setuptools
+Maintainer: Stefano Rivera <stefanor at debian.org>
+Uploaders:
+ Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>,
+ James Westby <james.westby at ubuntu.com>
+Build-Depends:
+ debhelper (>= 7.3.0),
+ python-all (>= 2.6.6-3~),
+ python-setuptools,
+ python3-all (>= 3.1.2-6~),
+ python3-setuptools
 Standards-Version: 3.9.2
 Homepage: https://launchpad.net/lazr.uri
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/lazr.uri/trunk/
@@ -12,10 +19,22 @@
 
 Package: python-lazr.uri
 Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}, python-pkg-resources
-Breaks: ${python:Breaks}
+Depends: python-pkg-resources, ${misc:Depends}, ${python:Depends}
 Description: library for parsing, manipulating, and generating URIs
  A self-contained, easily reusable, Python library for parsing,
  manipulating and generating URIs. With it you can extract parts
  of a URL, compare URIs to see if one contains another, search for
  URIs in text, and many other things.
+ .
+ This package contains the library for Python 2.x.
+
+Package: python3-lazr.uri
+Architecture: all
+Depends: python3-pkg-resources, ${misc:Depends}, ${python3:Depends}
+Description: library for parsing, manipulating, and generating URIs
+ A self-contained, easily reusable, Python library for parsing,
+ manipulating and generating URIs. With it you can extract parts
+ of a URL, compare URIs to see if one contains another, search for
+ URIs in text, and many other things.
+ .
+ This package contains the library for Python 3.x.

Modified: packages/lazr.uri/trunk/debian/docs
===================================================================
--- packages/lazr.uri/trunk/debian/docs	2012-01-18 14:56:22 UTC (rev 20040)
+++ packages/lazr.uri/trunk/debian/docs	2012-01-18 16:33:42 UTC (rev 20041)
@@ -1,3 +1,2 @@
 HACKING.txt
-src/lazr/uri/NEWS.txt
 src/lazr/uri/README.txt

Modified: packages/lazr.uri/trunk/debian/patches/no_package_data.patch
===================================================================
--- packages/lazr.uri/trunk/debian/patches/no_package_data.patch	2012-01-18 14:56:22 UTC (rev 20040)
+++ packages/lazr.uri/trunk/debian/patches/no_package_data.patch	2012-01-18 16:33:42 UTC (rev 20041)
@@ -2,11 +2,9 @@
 Author: Luca Falavigna <dktrkranz at debian.org>
 Forwarded: not-needed
 
-Index: lazr.uri-1.0.2/setup.py
-===================================================================
---- lazr.uri-1.0.2.orig/setup.py	2010-06-20 04:26:35.618574575 +0200
-+++ lazr.uri-1.0.2/setup.py	2010-06-20 04:26:43.846573170 +0200
-@@ -46,7 +46,7 @@
+--- a/setup.py
++++ b/setup.py
+@@ -48,7 +48,7 @@
      namespace_packages=['lazr'],
      packages=find_packages('src'),
      package_dir={'':'src'},

Modified: packages/lazr.uri/trunk/debian/rules
===================================================================
--- packages/lazr.uri/trunk/debian/rules	2012-01-18 14:56:22 UTC (rev 20040)
+++ packages/lazr.uri/trunk/debian/rules	2012-01-18 16:33:42 UTC (rev 20041)
@@ -1,12 +1,36 @@
 #!/usr/bin/make -f
 
+PYVERS :=  $(shell pyversions -r)
+PY3VERS := $(shell py3versions -r)
+
 %:
-	dh $@ --with python2 --buildsystem=python_distutils
+	dh $@ --with python2,python3
 
+override_dh_auto_build:
+	set -ex; \
+	for py in $(PYVERS) $(PY3VERS); do \
+		$$py setup.py build; \
+	done
+
 override_dh_auto_install:
-	dh_auto_install
-	find $(CURDIR)/debian/python-lazr.uri -wholename "*python2.*/lazr/uri" \
+	set -ex; \
+	for py in $(PYVERS); do \
+		$$py setup.py install --skip-build --no-compile \
+		                      --root debian/python-lazr.uri \
+		                      --install-layout=deb; \
+	done
+	set -ex; \
+	for py in $(PY3VERS); do \
+		$$py setup.py install --skip-build --no-compile \
+		                      --root debian/python3-lazr.uri \
+		                      --install-layout=deb; \
+	done
+
+	find $(CURDIR)/debian/python*-lazr.uri -wholename "*python*/lazr/uri" \
 		-exec install -m 0644 $(CURDIR)/src/lazr/uri/version.txt {} \;
 
+override_dh_auto_clean:
+	rm -rf build
+
 override_dh_installchangelogs:
 	dh_installchangelogs src/lazr/uri/NEWS.txt




More information about the Python-modules-commits mailing list