14
0

Accepting request 823009 from home:dmacvicar:branches:devel:languages:python

- Update to v3.51.4
- Fix build (pytest)

- initial version

(btw, Leap 15.1 also builds when adding the :Update repository)

OBS-URL: https://build.opensuse.org/request/show/823009
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-progressbar2?expand=0&rev=3
This commit is contained in:
2020-07-29 12:47:29 +00:00
committed by Git OBS Bridge
parent b8c436d85c
commit 9e8341d579
4 changed files with 19 additions and 12 deletions

View File

@@ -18,31 +18,29 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-progressbar2
Version: 3.51.3
Version: 3.51.4
Release: 0
Summary: Python progressbar library
Summary: Python library to provide visual text-based progress to long running operations
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/WoLpH/python-progressbar
Source: https://files.pythonhosted.org/packages/source/p/progressbar2/progressbar2-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-python-utils >= 2.3.0
Requires: python-six
Conflicts: python-progressbar
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module freezegun >= 0.3.11}
BuildRequires: %{python_module pytest >= 4.3.1}
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-utils >= 2.3.0}
BuildRequires: %{python_module six}
# /SECTION
%python_subpackages
%description
A Python Progressbar library to provide visual (yet text based)
progress to long running operations.
A Python Progressbar library to provide visual (yet text based) progress to long running operations.
%prep
%setup -q -n progressbar2-%{version}
@@ -56,6 +54,9 @@ rm pytest.ini
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# remove problematic section from pytest.ini
export PYTEST_ADDOPTS="--doctest-modules"
export PYTHONPATH=$PWD
%pytest
%files %{python_files}