Hello community, here is the log from the commit of package python-astor for openSUSE:Factory checked in at 2020-06-02 14:39:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-astor (Old) and /work/SRC/openSUSE:Factory/.python-astor.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-astor" Tue Jun 2 14:39:40 2020 rev:8 rq:810588 version:0.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-astor/python-astor.changes 2020-04-05 20:53:48.801202472 +0200 +++ /work/SRC/openSUSE:Factory/.python-astor.new.3606/python-astor.changes 2020-06-02 14:40:25.335859591 +0200 @@ -1,0 +2,13 @@ +Mon Jun 1 09:54:30 UTC 2020 - Tomáš Chvátal <[email protected]> + +- 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 - [email protected] + +- for python3, drop dependency on unittest2 +- added patches + + remove_unittest2.patch + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-astor.spec ++++++ --- /var/tmp/diff_new_pack.kCdjvU/_old 2020-06-02 14:40:25.911861411 +0200 +++ /var/tmp/diff_new_pack.kCdjvU/_new 2020-06-02 14:40:25.915861424 +0200 @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-astor Version: 0.8.1 Release: 0 @@ -27,12 +28,15 @@ Source: https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz # https://github.com/berkerpeksag/astor/pull/177 Patch0: remove_nose.patch +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module unittest2} +%if %{with python2} +BuildRequires: python-unittest2 +%endif # /SECTION %python_subpackages @@ -77,7 +81,7 @@ %python_expand chmod 755 %{buildroot}%{$python_sitelib}/astor/rtrip.py %check -%python_exec -m unittest2 discover -v +%pytest tests %files %{python_files} %doc AUTHORS README.rst docs/*.rst
