Accepting request 533326 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/533326
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tqdm?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2017-10-13 12:18:10 +00:00 committed by Git OBS Bridge
commit 2dcaa5500c
4 changed files with 43 additions and 8 deletions

View File

@ -1,3 +1,30 @@
-------------------------------------------------------------------
Tue Oct 10 01:44:30 UTC 2017 - arun@gmx.de
- specfile:
* added man page, fixed path for man-page in setup.py
* added fdupes
- update to version 4.19.2:
* flush() on refresh() (#459 from #317)
* status printer updates (#331)
+ use sp() in refresh()
+ remove redundant clear():nomove=False
* misc minor documentation updates
* unit tests
- changes from version 4.19.1:
* rate_(no)inv(_fmt) (#72, b228bc3)
* __repr__() tidy (#389)
* fix write() before initialisation AttributeError: _lock (#457)
* man pages
* documentation updates
-------------------------------------------------------------------
Fri Oct 6 14:01:07 UTC 2017 - jengelh@inai.de
- Redo description with sensible content.
-------------------------------------------------------------------
Tue Oct 3 01:13:12 UTC 2017 - arun@gmx.de

View File

@ -20,9 +20,9 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-tqdm
Version: 4.18.0
Version: 4.19.2
Release: 0
Summary: A Fast, Extensible Progress Meter
Summary: An extensible progress meter
License: MPL-2.0 and MIT
Group: Development/Languages/Python
Url: https://github.com/tqdm/tqdm
@ -30,6 +30,7 @@ Source: https://files.pythonhosted.org/packages/source/t/tqdm/tqdm-%{ver
BuildRequires: %{python_module devel}
BuildRequires: %{python_module rpm-macros}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
%if %{with test}
@ -46,11 +47,15 @@ BuildArch: noarch
%python_subpackages
%description
Instantly make your loops show a smart progress meter - just wrap any
iterable with "tqdm(iterable)", and you're done!
tqdm lets you output a progress meter from within loops by wrapping
any iterable with "tqdm(iterable)".
tqdm's overhead is one order of magnitude less than python-progressbar
and does not require ncurses.
%prep
%setup -q -n tqdm-%{version}
# fix installation directory for man pages
sed -i 's#man/man1#share/man/man1#' setup.py
%build
%python_build
@ -58,9 +63,11 @@ iterable with "tqdm(iterable)", and you're done!
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/tqdm
%python_clone -a %{buildroot}%{_mandir}/man1/tqdm.1
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative tqdm
%{python_install_alternative tqdm tqdm.1}
%postun
%python_uninstall_alternative tqdm
@ -80,5 +87,6 @@ iterable with "tqdm(iterable)", and you're done!
%endif
%{python_sitelib}/*
%python_alternative %{_bindir}/tqdm
%python_alternative %{_mandir}/man1/tqdm.1
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eea226601a7fe0b39ef4266a7de7ab50746a4e5c13306036fd05b06f9c9aad29
size 97279

3
tqdm-4.19.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a6fd7479f3fb0ba653290e61d97917b2621c51cc8e31dc19963b5002904abaa1
size 98623