Accepting request 883192 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/883192
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tqdm?expand=0&rev=42
This commit is contained in:
Richard Brown 2021-04-08 19:03:04 +00:00 committed by Git OBS Bridge
commit 3eb7f1862c
5 changed files with 46 additions and 29 deletions

View File

@ -1,13 +0,0 @@
Index: tqdm-4.56.0/tqdm/std.py
===================================================================
--- tqdm-4.56.0.orig/tqdm/std.py
+++ tqdm-4.56.0/tqdm/std.py
@@ -702,6 +702,8 @@ class tqdm(Comparable):
from pandas import Panel
except ImportError: # TODO: pandas>0.25.2
Panel = None
+ except FutureWarning:
+ Panel = None
Rolling, Expanding = None, None
try: # pandas>=1.0.0
from pandas.core.window.rolling import _Rolling_and_Expanding

View File

@ -1,3 +1,36 @@
-------------------------------------------------------------------
Sun Mar 28 16:32:36 UTC 2021 - Arun Persaud <arun@gmx.de>
- specfile:
* remove pandas.patch, seems to be included upstreams
- update to version 4.59.0:
* add tqdm.dask.TqdmCallback (#1079, #279 <- #278)
* add asyncio.gather() (#1136)
* add basic support for length_hint (#1068)
* add & update tests
* misc documentation updates (#1132)
+ update contributing guide
+ update URLs
+ bash completion: add missing --delay
* misc code tidy
+ add [notebook] extra (#1135)
- changes from version 4.58.0:
* add start delay in seconds (#836 <- #1069, #704)
* add tests
* misc code tidy (#1130)
* misc documentation updates
- changes from version 4.57.0:
* add line buffering for DummyTqdmFile (#960)
* fix & update demo notebook (#1127)
* fix py3 urllib examples (#1127)
* suppress deprecated pandas warnings (#824, #1094)
* misc framework updates
* misc tests updates
* misc code tidy
-------------------------------------------------------------------
Mon Feb 15 22:55:14 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@ -1,5 +1,5 @@
#
# spec file for package python-tqdm
# spec file for package python-tqdm-test
#
# Copyright (c) 2021 SUSE LLC
#
@ -28,31 +28,30 @@
%bcond_with test
%endif
Name: python-tqdm%{pkg_suffix}
Version: 4.56.2
Version: 4.59.0
Release: 0
Summary: An extensible progress meter
License: MPL-2.0 AND MIT
License: MIT AND MPL-2.0
URL: https://github.com/tqdm/tqdm
Source: https://files.pythonhosted.org/packages/source/t/tqdm/tqdm-%{version}.tar.gz
Patch0: pandas.patch
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module toml}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
Requires(postun):update-alternatives
Enhances: python-ipython
BuildArch: noarch
%if %{with test}
# SECTION test requirements
BuildRequires: %{python_module numpy if (python-base without python36-base)}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-timeout}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module tqdm}
BuildRequires: %{python_module numpy if (%python-base without python36-base)}
%if ! 0%{?_with_ringdisabled}
BuildRequires: %{python_module pandas if (%python-base without python36-base)}
BuildRequires: %{python_module pandas if (python-base without python36-base)}
%endif
# /SECTION
%endif
@ -64,12 +63,12 @@ any iterable with "tqdm(iterable)".
tqdm's overhead is one order of magnitude less than python-progressbar
and does not require ncurses.
%package -n %allpython-tqdm-bash-completion
%package -n %{allpython}-tqdm-bash-completion
Summary: Bash completion for python-tqdm
Requires: bash-completion
Supplements: %{python_module tqdm and bash-completion}
%description -n %allpython-tqdm-bash-completion
%description -n %{allpython}-tqdm-bash-completion
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
@ -77,10 +76,8 @@ and does not require ncurses.
This package provides the completion file for bash
%prep
%setup -q -n tqdm-%{version}
%patch0 -p1
# remove bash shebang for completion script
sed -i '1 s/^#!.*/# bash completion for tqdm -*- shell-script -*-/' tqdm/completion.sh
chmod a-x tqdm/completion.sh
@ -120,7 +117,7 @@ install -m 644 -D tqdm/completion.sh %{buildroot}%{_datadir}/bash-completion/com
%{python_sitelib}/tqdm-%{version}*-info
%python_alternative %{_bindir}/tqdm
%files -n %allpython-tqdm-bash-completion
%files -n %{allpython}-tqdm-bash-completion
%license LICENCE
%{_datadir}/bash-completion/completions/tqdm
%endif

View File

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

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

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