debian/0000755000000000000000000000000012232044742007166 5ustar debian/README.source0000644000000000000000000000023111124445755011351 0ustar This package uses dpatch to handle patches against upstream source code; you can find additional information about dpatch at /usr/share/doc/dpatch/ debian/rules0000755000000000000000000000132612231574140010247 0ustar #!/usr/bin/make -f # -*- makefile -*- PY2VERS := $(shell pyversions -s) PY3VERS := $(shell py3versions -s) %: 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 debian/copyright0000644000000000000000000000250212230757713011127 0ustar This package was debianized by Sandro Tosi on Tue, 19 Aug 2008 17:06:03 +0200 It was downloaded from http://code.google.com/p/python-progressbar Upstream Author: Nilton Volpato Copyright: Copyright (C) 2005 Nilton Volpato License: This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On a Debian system the complete text of the GNU Lesser General Public License v2.1 can be found in the file `/usr/share/common-licenses/LGPL-2.1'. The Debian packaging is Copyright (C) 2008-2013, Sandro Tosi and is licensed under the LGPLv2.1, see `/usr/share/common-licenses/LGPL-2.1'. debian/changelog0000644000000000000000000000334712232044724011047 0ustar python-progressbar (2.3-1) unstable; urgency=low [ Sandro Tosi ] * New upstream release * debian/control - updated Homepage field - bump Standards-Version to 3.9.4 (no changes needed) - add setuptools to b-d * debian/rules - converted to dh sequencer * debian/patches/10_add_simpleprogress.patch - removed, merged upstream * debian/source/format - use 3.0 (quilt) source format * debian/{examples/*, rules} - install upstream examples (now that are shipped in the tarball) * debian/copyright - extend packaging copyright years - 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 Thu, 24 Oct 2013 00:12:30 +0200 python-progressbar (2.2-2) unstable; urgency=low * debian/control - switch Vcs-Browser field to viewsvn - updated my email address - removed DM-Upload-Allowed flag * debian/README.source - added to comply to Policy 3.8.0 (we use a patch system) * debian/rules - don't compress .py files (in doc dir) - merged 'rm' call into 'dh_clean' one - added $(CURDIR) to installation dir * debian/copyright - updated my email address - fixed copyright notice and updated years for Debian packaging -- Sandro Tosi Fri, 30 Jan 2009 10:11:49 +0100 python-progressbar (2.2-1) unstable; urgency=low [ Sandro Tosi ] * Initial release. (Closes: #495664) [ Piotr Ożarowski ] * DM-Upload-Allowed set to "yes" -- Sandro Tosi Wed, 20 Aug 2008 20:55:08 +0200 debian/patches/0000755000000000000000000000000012232044742010615 5ustar debian/patches/10_python3.3_compat.patch0000644000000000000000000000553512231570306015255 0ustar Description: Remove format as a slot attribute, as that is not compatible with python 3.3 Author: Nilton Volpato Origin: upstream Bug: https://code.google.com/p/python-progressbar/issues/detail?id=23 Applied-Upstream: https://code.google.com/p/python-progressbar/source/detail?spec=svn3c94a3a1ebe1325c7c605cc8f11126dcc632b04d&r=3c94a3a1ebe1325c7c605cc8f11126dcc632b04d Last-Update: 2013-10-22 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/progressbar/widgets.py +++ b/progressbar/widgets.py @@ -81,11 +81,11 @@ class WidgetHFill(Widget): class Timer(Widget): 'Widget which displays the elapsed seconds.' - __slots__ = ('format',) + __slots__ = ('format_string',) TIME_SENSITIVE = True def __init__(self, format='Elapsed Time: %s'): - self.format = format + self.format_string = format @staticmethod def format_time(seconds): @@ -97,7 +97,7 @@ class Timer(Widget): def update(self, pbar): 'Updates the widget to show the elapsed time.' - return self.format % self.format_time(pbar.seconds_elapsed) + return self.format_string % self.format_time(pbar.seconds_elapsed) class ETA(Timer): @@ -121,9 +121,9 @@ class ETA(Timer): class FileTransferSpeed(Widget): 'Widget for showing the transfer speed (useful for file transfers).' - format = '%6.2f %s%s/s' - prefixes = ' kMGTPEZY' - __slots__ = ('unit', 'format') + FORMAT = '%6.2f %s%s/s' + PREFIXES = ' kMGTPEZY' + __slots__ = ('unit',) def __init__(self, unit='B'): self.unit = unit @@ -138,7 +138,7 @@ class FileTransferSpeed(Widget): power = int(math.log(speed, 1000)) scaled = speed / 1000.**power - return self.format % (scaled, self.prefixes[power], self.unit) + return self.FORMAT % (scaled, self.PREFIXES[power], self.unit) class AnimatedMarker(Widget): @@ -168,13 +168,13 @@ RotatingMarker = AnimatedMarker class Counter(Widget): 'Displays the current count' - __slots__ = ('format',) + __slots__ = ('format_string',) def __init__(self, format='%d'): - self.format = format + self.format_string = format def update(self, pbar): - return self.format % pbar.currval + return self.format_string % pbar.currval class Percentage(Widget): @@ -197,9 +197,9 @@ class FormatLabel(Timer): 'value': ('currval', None) } - __slots__ = ('format',) + __slots__ = ('format_string',) def __init__(self, format): - self.format = format + self.format_string = format def update(self, pbar): context = {} @@ -213,7 +213,7 @@ class FormatLabel(Timer): context[name] = transform(value) except: pass - return self.format % context + return self.format_string % context class SimpleProgress(Widget): debian/patches/series0000644000000000000000000000003212231570306012024 0ustar 10_python3.3_compat.patch debian/watch0000644000000000000000000000015712230756350010225 0ustar version=3 https://code.google.com/p/python-progressbar/downloads/detail[?]name=progressbar-([0-9.]+).tar.gz&.* debian/compat0000644000000000000000000000000211052564653010373 0ustar 5 debian/control0000644000000000000000000000434612232044612010574 0ustar Source: python-progressbar Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Sandro Tosi Build-Depends: debhelper (>= 5), python, python3-all, python-setuptools, python3-setuptools Build-Depends-Indep: python-support (>= 0.4) Standards-Version: 3.9.4 Homepage: http://code.google.com/p/python-progressbar/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-progressbar/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-progressbar/trunk/ Package: python-progressbar Architecture: all Depends: ${python:Depends}, ${misc:Depends} Description: text progress bar library for Python 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. 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. debian/source/0000755000000000000000000000000012232044742010466 5ustar debian/source/format0000644000000000000000000000001412230752231011671 0ustar 3.0 (quilt)