[Python-modules-commits] r24525 - in packages/pywapi/trunk/debian (7 files)

asb at users.alioth.debian.org asb at users.alioth.debian.org
Sat May 25 17:45:18 UTC 2013


    Date: Saturday, May 25, 2013 @ 17:45:16
  Author: asb
Revision: 24525

Build Python3 package.

Added:
  packages/pywapi/trunk/debian/python-pywapi.install
  packages/pywapi/trunk/debian/python3-pywapi.install
Modified:
  packages/pywapi/trunk/debian/changelog
  packages/pywapi/trunk/debian/control
  packages/pywapi/trunk/debian/rules
Deleted:
  packages/pywapi/trunk/debian/docs
  packages/pywapi/trunk/debian/examples

Modified: packages/pywapi/trunk/debian/changelog
===================================================================
--- packages/pywapi/trunk/debian/changelog	2013-05-25 16:57:48 UTC (rev 24524)
+++ packages/pywapi/trunk/debian/changelog	2013-05-25 17:45:16 UTC (rev 24525)
@@ -8,6 +8,7 @@
   * Fix broken debian/watch file. Thanks to Bart Martens.
   * Transition to dh_python2.
   * Move to source format 3.0 (quilt).
+  * Build Python3 package.
 
  -- Andrew Starr-Bochicchio <asb at debian.org>  Fri, 24 May 2013 18:06:47 -0400
 

Modified: packages/pywapi/trunk/debian/control
===================================================================
--- packages/pywapi/trunk/debian/control	2013-05-25 16:57:48 UTC (rev 24524)
+++ packages/pywapi/trunk/debian/control	2013-05-25 17:45:16 UTC (rev 24525)
@@ -3,9 +3,10 @@
 Priority: optional
 Maintainer: Runa Sandvik <runa.sandvik at gmail.com>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7), python-all
+Build-Depends: debhelper (>= 7), python-all, python3-all
 Standards-Version: 3.8.3
 X-Python-Version: >=2.5
+X-Python3-Version: >= 3.2
 Homepage: http://code.google.com/p/python-weather-api/
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/pywapi/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/pywapi/trunk/
@@ -17,3 +18,15 @@
  The module provides a Python wrapper around the Yahoo! Weather, Google Weather
  and National Oceanic and Atmospheric Administration (NOAA) APIs. Fetch weather
  reports using zip code, location id, city name, state, country etc.
+ .
+ This is the Python 2 version of the package.
+
+Package: python3-pywapi
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: Python wrapper around different weather APIs (Python 3)
+ The module provides a Python wrapper around the Yahoo! Weather, Google Weather
+ and National Oceanic and Atmospheric Administration (NOAA) APIs. Fetch weather
+ reports using zip code, location id, city name, state, country etc.
+ .
+ This is the Python 3 version of the package.

Deleted: packages/pywapi/trunk/debian/docs
===================================================================
--- packages/pywapi/trunk/debian/docs	2013-05-25 16:57:48 UTC (rev 24524)
+++ packages/pywapi/trunk/debian/docs	2013-05-25 17:45:16 UTC (rev 24525)
@@ -1 +0,0 @@
-README

Deleted: packages/pywapi/trunk/debian/examples
===================================================================
--- packages/pywapi/trunk/debian/examples	2013-05-25 16:57:48 UTC (rev 24524)
+++ packages/pywapi/trunk/debian/examples	2013-05-25 17:45:16 UTC (rev 24525)
@@ -1 +0,0 @@
-examples/*

Added: packages/pywapi/trunk/debian/python-pywapi.install
===================================================================
--- packages/pywapi/trunk/debian/python-pywapi.install	                        (rev 0)
+++ packages/pywapi/trunk/debian/python-pywapi.install	2013-05-25 17:45:16 UTC (rev 24525)
@@ -0,0 +1 @@
+usr/lib/python2*

Added: packages/pywapi/trunk/debian/python3-pywapi.install
===================================================================
--- packages/pywapi/trunk/debian/python3-pywapi.install	                        (rev 0)
+++ packages/pywapi/trunk/debian/python3-pywapi.install	2013-05-25 17:45:16 UTC (rev 24525)
@@ -0,0 +1 @@
+usr/lib/python3

Modified: packages/pywapi/trunk/debian/rules
===================================================================
--- packages/pywapi/trunk/debian/rules	2013-05-25 16:57:48 UTC (rev 24524)
+++ packages/pywapi/trunk/debian/rules	2013-05-25 17:45:16 UTC (rev 24525)
@@ -1,4 +1,30 @@
 #!/usr/bin/make -f
 
+PYTHON2=$(shell pyversions -vr)
+PYTHON3=$(shell py3versions -vr)
+
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3
+
+build-python%:
+	python$* setup.py build
+
+override_dh_auto_build: $(PYTHON3:%=build-python%)
+	dh_auto_build
+
+install-python%:
+	python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+
+override_dh_auto_install: $(PYTHON3:%=install-python%)
+	dh_auto_install
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf build
+	rm -rf *.egg-info
+
+override_dh_installdocs:
+	dh_installdocs --all README
+
+override_dh_installexamples:
+	dh_installexamples --all examples/*




More information about the Python-modules-commits mailing list