[Python-modules-commits] r26250 - in packages/python-progressbar/trunk/debian (3 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Tue Oct 22 22:12:50 UTC 2013


    Date: Tuesday, October 22, 2013 @ 22:12:48
  Author: morph
Revision: 26250

* debian/{control, rules}
  - provide py3k package; thanks to green for the report; Closes: #719849

Modified:
  packages/python-progressbar/trunk/debian/changelog
  packages/python-progressbar/trunk/debian/control
  packages/python-progressbar/trunk/debian/rules

Modified: packages/python-progressbar/trunk/debian/changelog
===================================================================
--- packages/python-progressbar/trunk/debian/changelog	2013-10-22 21:41:58 UTC (rev 26249)
+++ packages/python-progressbar/trunk/debian/changelog	2013-10-22 22:12:48 UTC (rev 26250)
@@ -18,11 +18,13 @@
     - update package homepage
   * debian/patches/10_python3.3_compat.patch
     - fix Python 3.3 compatibility issues
+  * debian/{control, rules}
+    - provide py3k package; thanks to green for the report; Closes: #719849
 
   [ Jakub Wilk ]
   * Use canonical URIs for Vcs-* fields.
 
- -- Sandro Tosi <morph at debian.org>  Tue, 22 Oct 2013 23:39:15 +0200
+ -- Sandro Tosi <morph at debian.org>  Wed, 23 Oct 2013 00:11:59 +0200
 
 python-progressbar (2.2-2) unstable; urgency=low
 

Modified: packages/python-progressbar/trunk/debian/control
===================================================================
--- packages/python-progressbar/trunk/debian/control	2013-10-22 21:41:58 UTC (rev 26249)
+++ packages/python-progressbar/trunk/debian/control	2013-10-22 22:12:48 UTC (rev 26250)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Sandro Tosi <morph at debian.org>
-Build-Depends: debhelper (>= 5), python
+Build-Depends: debhelper (>= 5), python, python3-all
 Build-Depends-Indep: python-support (>= 0.4)
 Standards-Version: 3.9.4
 Homepage: http://code.google.com/p/python-progressbar/
@@ -26,3 +26,22 @@
      update method is called
    - a ProgressBarWidgetHFill, which is like ProgressBarWidget, except it
      expands to fill the remaining width of the line.
+
+Package: python3-progressbar
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Description: text progress bar library for Python (Python 3)
+ A text progress bar is typically used to display the progress of a long
+ running operation, providing a visual cue that processing is underway.
+ .
+ The ProgressBar class manages the current progress, and the format of the line
+ is given by a number of widgets. A widget is an object that may display
+ differently depending on the state of the progress bar. There are three types
+ of widgets:
+   - a string, which always shows itself
+   - a ProgressBarWidget, which may return a different value every time its
+     update method is called
+   - a ProgressBarWidgetHFill, which is like ProgressBarWidget, except it
+     expands to fill the remaining width of the line.
+ .
+ This package contains the Python 3 version of progressbar.

Modified: packages/python-progressbar/trunk/debian/rules
===================================================================
--- packages/python-progressbar/trunk/debian/rules	2013-10-22 21:41:58 UTC (rev 26249)
+++ packages/python-progressbar/trunk/debian/rules	2013-10-22 22:12:48 UTC (rev 26250)
@@ -1,11 +1,33 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+PY2VERS := $(shell pyversions -s)
+PY3VERS := $(shell py3versions -s)
+
 %:
-	dh $@
+	dh $@ --with python3
 
+override_dh_auto_build:
+	set -e ; \
+	for python in $(PY2VERS) $(PY3VERS); do \
+		$$python setup.py build ; \
+	done
+
+override_dh_auto_install:
+	set -e ; \
+	for python in $(PY2VERS); do \
+		$$python setup.py install --install-layout=deb --root $(CURDIR)/debian/python-progressbar; \
+	done
+	set -e ; \
+	for python in $(PY3VERS); do \
+		$$python setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-progressbar; \
+	done
+
 override_dh_installdocs:
 	dh_installdocs		README.txt
 
 override_dh_installexamples:
 	dh_installexamples	examples.py
+
+override_dh_compress:
+	dh_compress -X.py




More information about the Python-modules-commits mailing list