Accepting request 843615 from home:pgajdos:python

- added patches
  https://github.com/tqdm/tqdm/pull/1052
  + python-tqdm-remove-nose.patch

OBS-URL: https://build.opensuse.org/request/show/843615
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tqdm?expand=0&rev=84
This commit is contained in:
Ondřej Súkup 2020-10-23 22:48:31 +00:00 committed by Git OBS Bridge
parent 0a946f60c7
commit b7c484c7fc
3 changed files with 5857 additions and 4 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Oct 23 13:47:03 UTC 2020 - pgajdos@suse.com
- added patches
https://github.com/tqdm/tqdm/pull/1052
+ python-tqdm-remove-nose.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Oct 10 18:46:08 UTC 2020 - Arun Persaud <arun@gmx.de> Sat Oct 10 18:46:08 UTC 2020 - Arun Persaud <arun@gmx.de>

View File

@ -34,6 +34,8 @@ 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
# https://github.com/tqdm/tqdm/pull/1052
Patch0: python-tqdm-remove-nose.patch
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@ -42,9 +44,9 @@ Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%if %{with test} %if %{with test}
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module nose}
BuildRequires: %{python_module numpy} BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pandas} BuildRequires: %{python_module pandas}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module tqdm} BuildRequires: %{python_module tqdm}
BuildRequires: python3-ipython BuildRequires: python3-ipython
BuildRequires: python3-ipywidgets BuildRequires: python3-ipywidgets
@ -60,6 +62,7 @@ and does not require ncurses.
%prep %prep
%setup -q -n tqdm-%{version} %setup -q -n tqdm-%{version}
%patch0 -p1
%build %build
%python_build %python_build
@ -82,9 +85,12 @@ install -m 644 -D tqdm/completion.sh %{buildroot}%{_datadir}/bash-completion/com
%if %{with test} %if %{with test}
%check %check
%{python_expand PYTHONPATH=%{$python_sitelib} # test_perf: flaky
nosetests-%%{$python_bin_suffix} --ignore-files="tests_perf\.py" --ignore-files="tests_synchronisation\.py" tqdm/ # test_synchronisation: hangs
} # test_main: todo upstream, TypeError: a bytes-like object is required, not 'str'
# 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}