[Python-modules-commits] r24921 - in packages/geopy/trunk/debian (changelog control rules)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Sun Jun 23 05:03:33 UTC 2013


    Date: Sunday, June 23, 2013 @ 05:03:28
  Author: eriol-guest
Revision: 24921

Build Python3 package

Modified:
  packages/geopy/trunk/debian/changelog
  packages/geopy/trunk/debian/control
  packages/geopy/trunk/debian/rules

Modified: packages/geopy/trunk/debian/changelog
===================================================================
--- packages/geopy/trunk/debian/changelog	2013-06-23 03:18:52 UTC (rev 24920)
+++ packages/geopy/trunk/debian/changelog	2013-06-23 05:03:28 UTC (rev 24921)
@@ -6,15 +6,21 @@
 
   [ Daniele Tricoli ]
   * New upstream release (Closes: #711532)
+    - With Python3 support
+  * Builded Python3 package
   * debian/compat
     - Bumped debhelper compatibility level to 9
   * debian/control
     - Bumped debhelper B-D to (>= 9)
     - Bumped Standards-Version to 3.9.4 (no changes needed)
+    - Added  python3-all and python3-setuptools to BD
+    - Added python3-geopy stanza
   * debian/patches/01_add_missing_test_file.patch
     - Added missing file required by unittests
+  * debian/rules
+    - Reworked for Python3 package
 
- -- Daniele Tricoli <eriol at mornie.org>  Sun, 23 Jun 2013 05:13:43 +0200
+ -- Daniele Tricoli <eriol at mornie.org>  Sun, 23 Jun 2013 06:55:05 +0200
 
 geopy (0.94.2-1) unstable; urgency=low
 

Modified: packages/geopy/trunk/debian/control
===================================================================
--- packages/geopy/trunk/debian/control	2013-06-23 03:18:52 UTC (rev 24920)
+++ packages/geopy/trunk/debian/control	2013-06-23 05:03:28 UTC (rev 24921)
@@ -8,7 +8,9 @@
  python-all (>= 2.6.6-3),
  python-beautifulsoup,
  python-nose,
- python-setuptools (>= 0.6b3)
+ python-setuptools (>= 0.6b3),
+ python3-all,
+ python3-setuptools
 Standards-Version: 3.9.4
 X-Python-Version: >= 2.5
 Homepage: http://www.geopy.org
@@ -29,3 +31,19 @@
  and geodesic distance calculation (using great-circle distance or Vincenty
  distance). The distance module also contains useful routines for converting
  between length and angle units.
+
+Package: python3-geopy
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python3:Depends},
+Description: geocoding toolbox for Python3
+ geopy makes it easy for developers to locate the coordinates of addresses,
+ cities, countries, and landmarks across the globe using third-party geocoders
+ and other sources of data, such as wikis.
+ It also comes with the necessary means for parsing geographical coordinates
+ and geodesic distance calculation (using great-circle distance or Vincenty
+ distance). The distance module also contains useful routines for converting
+ between length and angle units.
+ .
+ This package contains the Python 3 version of the library.

Modified: packages/geopy/trunk/debian/rules
===================================================================
--- packages/geopy/trunk/debian/rules	2013-06-23 03:18:52 UTC (rev 24920)
+++ packages/geopy/trunk/debian/rules	2013-06-23 05:03:28 UTC (rev 24921)
@@ -2,21 +2,42 @@
 
 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:
-	dh_auto_install
 	# Remove tests to not pollute namespace.
-	rm -rf debian/python-geopy/usr/lib/python*/dist-packages/geopy/tests
+	rm -rf  build/lib*/geopy/tests
 
+	set -ex; \
+	for python in $(PYVERS); do \
+		$$python setup.py install --skip-build --root debian/python-geopy \
+			--install-layout deb; \
+	done
+
+	set -ex; \
+	for python in $(PY3VERS); do \
+		$$python setup.py install --skip-build --root debian/python3-geopy \
+			--install-layout deb; \
+	done
+
 override_dh_installchangelogs:
 	dh_installchangelogs RELEASES
 
 override_dh_auto_test:
 ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ""
+	# Run tests only for Python2 since upstream is using Beautiful Soup 3.
 	set -e; \
-	for python in $(shell pyversions -r); do \
+	for python in $(PYVERS); do \
 		$$python /usr/bin/nosetests; \
 	done
 endif




More information about the Python-modules-commits mailing list