diff options
Diffstat (limited to 'dev-python/progressbar')
-rw-r--r-- | dev-python/progressbar/Manifest | 3 | ||||
-rw-r--r-- | dev-python/progressbar/files/progressbar-2.3-python3.3.patch | 94 | ||||
-rw-r--r-- | dev-python/progressbar/progressbar-2.3-r3.ebuild | 21 |
3 files changed, 0 insertions, 118 deletions
diff --git a/dev-python/progressbar/Manifest b/dev-python/progressbar/Manifest index eb84991628f0..c600e1f748ff 100644 --- a/dev-python/progressbar/Manifest +++ b/dev-python/progressbar/Manifest @@ -1,6 +1,3 @@ -AUX progressbar-2.3-python3.3.patch 2646 BLAKE2B f381950997463c466fd65b9bf9b3155e67172488cbc436c13e6a64744e92aa41d5c7b592ce9a3028ef066c9cdce886f1736a573ca4f4d8bb5176f6327d79eae2 SHA512 8f6816119c01809f3116ade0d52188cffa86e59fec516343937e6a624fc077dd75906325a88f514568b0e61d262435bf9c743807df2a4099991e8e3bec804b50 -DIST progressbar-2.3.tar.gz 9420 BLAKE2B 025f2d42fb0ef11a2e4b974ba6a8cd44c48a7f828ec40a08347492d393acac46fa9c29962d39fe296af655e94ab2075885c73ed6953e2d739aeb6f5f0c0aa13f SHA512 06fdc8b6664642bd864be8023355316fba23bcc4deb0c5877c5dfa91da5d233301a8f39342f133cbb63f37a20de7b8b24910ac8073127fcbdf43b5200d60ed5f DIST progressbar-2.5.tar.gz 10046 BLAKE2B fdbef570f48a0c61659bf02b3cc4e0f64d9e4e2edda970edb79fd4aac5fe2cc1bd0a7421458100cab7cbfd3d9d8cf905774113e336ff2d687d5e06b04a4e113a SHA512 86a56a573b903b947baac98b26f88e40072603007fdf5cda3e4a7e797fe4c4c42fd1a4b1ddb1c9ca9a062659d3647c428e33949e2df9e20b0f56a9a4099de51b -EBUILD progressbar-2.3-r3.ebuild 541 BLAKE2B 998ce3220649d842686ad2ad3fad8eea68de945d9724364b4cc569304d0874d7c8b536775440a19820ca3eb46eed76d80759732762c822877dc15584fbd39db4 SHA512 bb3b0a52f89a2e8711282ec3ce8c4f966dcc688ed59fb9ff90212b08662fc8eed364ac9f9f3f710f4bcf8ad46cd94c075b01a05cbff077545d09502c13ebefdc EBUILD progressbar-2.5.ebuild 498 BLAKE2B f0e639c482842037eeb6a953e65aa1e827aaac9008a12ae60431b1a0e8e3b192a573fb592726230fbe134df689b23230acb2baa8fb9e2c587eb65868acf121bd SHA512 11552fdbc9fd798207689375a97f77403ecc8d7925d769569d9d5b633d68f2d79ccb22f92d6784b957d120fe5edb8d9c1b14fcd4f132f15b60e95996de55fb10 MISC metadata.xml 324 BLAKE2B 28c39259d7567dc383b5f8e80cb81deb5c235fe9431a0a8dc90c7e35a80ff058c541c5f27236db96d5ecbd905071d8ad60a4a6232e31ef99786a0d847f674a39 SHA512 96cd08f27e9f075bacf7c3aa012b69642d245dbf7b99ced6a6cab24c2183c6304cef7bc25a44392319638d20233f9bb6256990f08c6eff60846815de35ed100b diff --git a/dev-python/progressbar/files/progressbar-2.3-python3.3.patch b/dev-python/progressbar/files/progressbar-2.3-python3.3.patch deleted file mode 100644 index 112bcf4b3779..000000000000 --- a/dev-python/progressbar/files/progressbar-2.3-python3.3.patch +++ /dev/null @@ -1,94 +0,0 @@ -# HG changeset patch -# User Nilton Volpato <nilton@google.com> -# Date 1348267873 10800 -# Fri Sep 21 19:51:13 2012 -0300 -# Node ID 3c94a3a1ebe1325c7c605cc8f11126dcc632b04d -# Parent 83ece680e4fe06aa704de4c3a967355db21046d4 -Remove format as a slot attribute, as that is not compatible with python 3.3 - -diff --git a/progressbar/widgets.py b/progressbar/widgets.py ---- a/progressbar/widgets.py -+++ b/progressbar/widgets.py -@@ -81,11 +81,11 @@ - 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 @@ - 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 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 @@ - 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 @@ - 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 @@ - '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 @@ - context[name] = transform(value) - except: pass - -- return self.format % context -+ return self.format_string % context - - - class SimpleProgress(Widget): diff --git a/dev-python/progressbar/progressbar-2.3-r3.ebuild b/dev-python/progressbar/progressbar-2.3-r3.ebuild deleted file mode 100644 index dc3af12b78ce..000000000000 --- a/dev-python/progressbar/progressbar-2.3-r3.ebuild +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -PYTHON_COMPAT=( python3_6 pypy3) - -inherit distutils-r1 - -DESCRIPTION="Text progressbar library for python" -HOMEPAGE="https://pypi.org/project/progressbar/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="|| ( LGPL-2.1 BSD )" -SLOT="0" -KEYWORDS="amd64 ~arm ppc x86 ~amd64-linux ~x86-linux" -IUSE="" - -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" -RDEPEND="" - -PATCHES=( "${FILESDIR}/progressbar-2.3-python3.3.patch" ) |