Hello community,

here is the log from the commit of package python-astor for openSUSE:Factory 
checked in at 2020-03-26 23:33:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-astor (Old)
 and      /work/SRC/openSUSE:Factory/.python-astor.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-astor"

Thu Mar 26 23:33:20 2020 rev:6 rq:788380 version:0.8.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-astor/python-astor.changes        
2020-01-18 12:19:08.171171249 +0100
+++ /work/SRC/openSUSE:Factory/.python-astor.new.3160/python-astor.changes      
2020-03-26 23:33:25.634778357 +0100
@@ -1,0 +2,9 @@
+Wed Mar 25 15:11:49 UTC 2020 - Paolo Stivanin <i...@paolostivanin.com>
+
+- Add remove_nose.patch
+  * test suite runs fine without nose, because it was written for unittest2
+    and, because nose won't work with Python 3.9/3.10, this patch removes
+    the requirement from setup.cfg and use unittest2 in the spec file
+    instead of nose
+
+-------------------------------------------------------------------

New:
----
  remove_nose.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-astor.spec ++++++
--- /var/tmp/diff_new_pack.OIYKSy/_old  2020-03-26 23:33:26.074778516 +0100
+++ /var/tmp/diff_new_pack.OIYKSy/_new  2020-03-26 23:33:26.078778517 +0100
@@ -25,13 +25,14 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/berkerpeksag/astor
 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 setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildArch:      noarch
 # SECTION test requirements
-BuildRequires:  %{python_module nose}
-BuildRequires:  python2-unittest2
+BuildRequires:  %{python_module unittest2}
 # /SECTION
 %python_subpackages
 
@@ -61,7 +62,7 @@
 
 %prep
 %setup -q -n astor-%{version}
-%autopatch -p1
+%patch0 -p1
 # ugly fix for the use of /usr/bin/env
 sed -i 's@env @@' astor/rtrip.py
 
@@ -75,7 +76,7 @@
 %python_expand chmod 755 %{buildroot}%{$python_sitelib}/astor/rtrip.py
 
 %check
-%python_expand nosetests-%{$python_bin_suffix} -v
+%python_exec -m unittest2 discover -v
 
 %files %{python_files}
 %doc AUTHORS README.rst docs/*.rst

++++++ remove_nose.patch ++++++
--- a/setup.cfg.orig    2020-03-25 16:06:14.496510596 +0100
+++ b/setup.cfg 2020-03-25 16:08:28.672752421 +0100
@@ -35,8 +35,7 @@
 include_package_data = True
 packages = find:
 python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
-tests_requires = ["nose", "astunparse"]
-test_suite = nose.collector
+tests_requires = ["astunparse"]
 
 [options.packages.find]
 exclude = tests

Reply via email to