fix moving average calculation

These are downstream patches from:
https://github.com/python-progress/python-progress/pull/1

Per recent discussions, this seems to be fixed for latest verigak/progress
upstream too, OTOH upstream changed API probably -- so once we are there,
we could revert those:
https://github.com/verigak/progress/issues/34

Resolves: rhbz#1299634
This commit is contained in:
Pavel Raiskup 2016-11-01 17:02:16 +01:00
commit 2e851c8ab6
3 changed files with 168 additions and 2 deletions

View file

@ -4,7 +4,7 @@
Name: python-%{pypi_name}
Version: 1.2
Release: 8%{?dist}
Release: 9%{?dist}
Summary: Easy to use progress bars
License: ISC
@ -20,6 +20,9 @@ BuildRequires: python3-devel
BuildRequires: python3-setuptools
%endif # if with_python3
Patch1: 0001-possibly-enlarge-dequeue-to-give-us-better-statistic.patch
Patch2: 0002-make-the-progress-bar-more-stable.patch
%description
Collection of easy to use progress bars and spinners.
@ -34,7 +37,7 @@ Collection of easy to use progress bars and spinners.
%prep
%setup -q -n %{pypi_name}-%{version}
%autosetup -p1 -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
@ -78,6 +81,9 @@ popd
%endif # with_python3
%changelog
* Tue Nov 01 2016 Pavel Raiskup <praiskup@redhat.com> - 1.2-9
- fix avg counter for copr-cli (rhbz#1299634)
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-8
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages