Accepting request 862865 from home:mcalabkova:branches:devel:languages:python
- Update to 4.56.0 * some tqdm.gui improvements - Fix testsuite with pandas.patch OBS-URL: https://build.opensuse.org/request/show/862865 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tqdm?expand=0&rev=90
This commit is contained in:
parent
d3f2b714e5
commit
13a9fe7e88
13
pandas.patch
Normal file
13
pandas.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 13 10:15:20 UTC 2021 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Update to 4.56.0
|
||||||
|
* some tqdm.gui improvements
|
||||||
|
- Fix testsuite with pandas.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jan 10 20:21:47 UTC 2021 - andy great <andythe_great@pm.me>
|
Sun Jan 10 20:21:47 UTC 2021 - andy great <andythe_great@pm.me>
|
||||||
|
|
||||||
|
@ -28,12 +28,13 @@
|
|||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
Name: python-tqdm%{pkg_suffix}
|
Name: python-tqdm%{pkg_suffix}
|
||||||
Version: 4.55.2
|
Version: 4.56.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: An extensible progress meter
|
Summary: An extensible progress meter
|
||||||
License: MPL-2.0 AND MIT
|
License: MPL-2.0 AND MIT
|
||||||
URL: https://github.com/tqdm/tqdm
|
URL: https://github.com/tqdm/tqdm
|
||||||
Source: https://files.pythonhosted.org/packages/source/t/tqdm/tqdm-%{version}.tar.gz
|
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_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module toml}
|
BuildRequires: %{python_module toml}
|
||||||
@ -46,8 +47,9 @@ BuildArch: noarch
|
|||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module numpy}
|
BuildRequires: %{python_module numpy}
|
||||||
BuildRequires: %{python_module pandas}
|
BuildRequires: %{python_module pandas}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest-asyncio}
|
||||||
BuildRequires: %{python_module pytest-timeout}
|
BuildRequires: %{python_module pytest-timeout}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module tqdm}
|
BuildRequires: %{python_module tqdm}
|
||||||
BuildRequires: python3-ipython
|
BuildRequires: python3-ipython
|
||||||
BuildRequires: python3-ipywidgets
|
BuildRequires: python3-ipywidgets
|
||||||
@ -77,6 +79,7 @@ This package provides the completion file for bash
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n tqdm-%{version}
|
%setup -q -n tqdm-%{version}
|
||||||
|
%patch0 -p1
|
||||||
# remove bash shebang for completion script
|
# remove bash shebang for completion script
|
||||||
sed -i '1 s/^#!.*/# bash completion for tqdm -*- shell-script -*-/' tqdm/completion.sh
|
sed -i '1 s/^#!.*/# bash completion for tqdm -*- shell-script -*-/' tqdm/completion.sh
|
||||||
chmod a-x tqdm/completion.sh
|
chmod a-x tqdm/completion.sh
|
||||||
@ -104,10 +107,7 @@ install -m 644 -D tqdm/completion.sh %{buildroot}%{_datadir}/bash-completion/com
|
|||||||
%check
|
%check
|
||||||
# test_perf: flaky
|
# test_perf: flaky
|
||||||
# test_synchronisation: hangs
|
# test_synchronisation: hangs
|
||||||
# test_main: todo upstream, TypeError: a bytes-like object is required, not 'str'
|
%pytest -k "not (tests_perf or tests_synchronisation)"
|
||||||
# also disabled in https://github.com/tqdm/tqdm/pull/1052
|
|
||||||
# and left upstream to solve
|
|
||||||
%pytest -k "not (tests_perf or tests_synchronisation or test_main)" tqdm/
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:86ca00c4942c3b3dc7ed31bae44cd2db38ef85ca05a7920f6a6c52ad7fcac904
|
|
||||||
size 162632
|
|
3
tqdm-4.56.0.tar.gz
Normal file
3
tqdm-4.56.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fe3d08dd00a526850568d542ff9de9bbc2a09a791da3c334f3213d8d0bbbca65
|
||||||
|
size 166848
|
Loading…
x
Reference in New Issue
Block a user