Hello community,

here is the log from the commit of package python-exam for openSUSE:Leap:15.2 
checked in at 2020-03-27 16:45:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-exam (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-exam.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-exam"

Fri Mar 27 16:45:23 2020 rev:13 rq:788724 version:0.10.6

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-exam/python-exam.changes        
2020-03-09 18:05:05.148809184 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-exam.new.3160/python-exam.changes      
2020-03-27 16:47:55.875926525 +0100
@@ -1,0 +2,6 @@
+Thu Mar 26 10:32:50 UTC 2020 - Paolo Stivanin <[email protected]>
+
+- Add remove_nose.patch
+  * as nose won't work with Python 3.9/3.10
+
+-------------------------------------------------------------------

New:
----
  remove_nose.patch

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

Other differences:
------------------
++++++ python-exam.spec ++++++
--- /var/tmp/diff_new_pack.aJRwtV/_old  2020-03-27 16:47:57.131927263 +0100
+++ /var/tmp/diff_new_pack.aJRwtV/_new  2020-03-27 16:47:57.179927291 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-exam
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,13 +24,14 @@
 Summary:        Helpers for better testing
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/fluxx/exam
+URL:            https://github.com/fluxx/exam
 Source:         
https://files.pythonhosted.org/packages/source/e/exam/exam-%{version}.tar.gz
+# https://github.com/Fluxx/exam/pull/50
+Patch0:         remove_nose.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
 %if %{with test}
 BuildRequires:  %{python_module mock}
-BuildRequires:  %{python_module nose}
 %endif
 BuildRequires:  fdupes
 %ifpython2
@@ -50,6 +51,7 @@
 
 %prep
 %setup -q -n exam-%{version}
+%patch0 -p1
 
 %build
 %python_build
@@ -60,7 +62,7 @@
 
 %if %{with test}
 %check
-%python_exec setup.py nosetests
+%python_exec -m unittest discover -s tests/ -v
 %endif
 
 %files %{python_files}

++++++ remove_nose.patch ++++++
--- a/setup.py  2020-03-26 12:27:17.135857081 +0100
+++ b/setup.py  2020-03-26 12:27:32.139881471 +0100
@@ -10,14 +10,9 @@
 
 install_requires = ['mock']
 lint_requires = ['pep8', 'pyflakes']
-tests_require = ['nose']
-
-if sys.version_info < (2, 7):
-    tests_require.append('unittest2')
+tests_require = ['unittest']
 
 setup_requires = []
-if 'nosetests' in sys.argv[1:]:
-    setup_requires.append('nose')
 
 setup(
     name='exam',

Reply via email to