14
0
forked from pool/python-WebOb

Accepting request 880534 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/880534
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-WebOb?expand=0&rev=31
This commit is contained in:
2021-03-24 15:10:45 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Mar 20 19:02:16 UTC 2021 - Ben Greiner <code@bnavigator.de>
- fix test suite for python39 (based on gh#Pylons/webob#390)
-------------------------------------------------------------------
Tue Mar 2 00:33:29 UTC 2021 - Dirk Müller <dmueller@suse.com>

View File

@@ -60,6 +60,8 @@ This package contains documentation files for %{name}.
%prep
%setup -q -n WebOb-%{version}
# gh#Pylons/webob#390 -- Thread.is_alive is present since Python 2.6, Thread.isAlive was removed in 3.9.
sed -i 's/worker.isAlive/worker.is_alive/' tests/conftest.py
%build
%python_build
@@ -70,12 +72,13 @@ PYTHONPATH=./src python3 setup.py build_sphinx && rm build/sphinx/html/.buildinf
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version}
%pytest
%files %{python_files}
%license docs/license.txt
%doc CHANGES.txt README.rst
%{python_sitelib}/*
%{python_sitelib}/webob
%{python_sitelib}/WebOb-%{version}*-info
%files -n python-WebOb-doc
%doc build/sphinx/html