Accepting request 810588 from devel:languages:python
- Remove patch remove_unittest2.patch as we use pytest to load stuff it is no longer really needed - for python3, drop dependency on unittest2 - added patches + remove_unittest2.patch OBS-URL: https://build.opensuse.org/request/show/810588 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astor?expand=0&rev=8
This commit is contained in:
commit
99278576a6
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 1 09:54:30 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Remove patch remove_unittest2.patch as we use pytest to load
|
||||||
|
stuff it is no longer really needed
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 29 12:49:31 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- for python3, drop dependency on unittest2
|
||||||
|
- added patches
|
||||||
|
+ remove_unittest2.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 3 21:34:35 UTC 2020 - Marcus Rueckert <mrueckert@suse.de>
|
Fri Apr 3 21:34:35 UTC 2020 - Marcus Rueckert <mrueckert@suse.de>
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without python2
|
||||||
Name: python-astor
|
Name: python-astor
|
||||||
Version: 0.8.1
|
Version: 0.8.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -27,12 +28,15 @@ URL: https://github.com/berkerpeksag/astor
|
|||||||
Source: https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz
|
Source: https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz
|
||||||
# https://github.com/berkerpeksag/astor/pull/177
|
# https://github.com/berkerpeksag/astor/pull/177
|
||||||
Patch0: remove_nose.patch
|
Patch0: remove_nose.patch
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module unittest2}
|
%if %{with python2}
|
||||||
|
BuildRequires: python-unittest2
|
||||||
|
%endif
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -77,7 +81,7 @@ chmod a-x astor/rtrip.py
|
|||||||
%python_expand chmod 755 %{buildroot}%{$python_sitelib}/astor/rtrip.py
|
%python_expand chmod 755 %{buildroot}%{$python_sitelib}/astor/rtrip.py
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec -m unittest2 discover -v
|
%pytest tests
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc AUTHORS README.rst docs/*.rst
|
%doc AUTHORS README.rst docs/*.rst
|
||||||
|
Loading…
Reference in New Issue
Block a user