Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-exam for openSUSE:Factory 
checked in at 2024-01-19 23:01:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-exam (Old)
 and      /work/SRC/openSUSE:Factory/.python-exam.new.16006 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-exam"

Fri Jan 19 23:01:59 2024 rev:6 rq:1139835 version:0.10.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-exam/python-exam.changes  2022-03-15 
19:03:47.468902193 +0100
+++ /work/SRC/openSUSE:Factory/.python-exam.new.16006/python-exam.changes       
2024-01-19 23:02:18.682281651 +0100
@@ -1,0 +2,9 @@
+Fri Jan 19 03:46:37 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Switch to pyproject macros.
+- Stop using greedy globs in %files.
+- Add patch fix-assertion-methods.patch:
+  * Correct test assertion methods.
+- Refresh no-mock.patch, to remove it from install_requires.
+
+-------------------------------------------------------------------

New:
----
  fix-assertion-methods.patch

BETA DEBUG BEGIN:
  New:- Stop using greedy globs in %files.
- Add patch fix-assertion-methods.patch:
  * Correct test assertion methods.
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-exam.spec ++++++
--- /var/tmp/diff_new_pack.HaJRIh/_old  2024-01-19 23:02:19.358306379 +0100
+++ /var/tmp/diff_new_pack.HaJRIh/_new  2024-01-19 23:02:19.358306379 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-exam
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-exam
 Version:        0.10.6
 Release:        0
@@ -28,8 +27,11 @@
 # https://github.com/Fluxx/exam/pull/50
 Patch0:         remove_nose.patch
 Patch1:         no-mock.patch
+Patch2:         fix-assertion-methods.patch
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Recommends:     python-pep8
@@ -49,10 +51,10 @@
 cp %{SOURCE1} .
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -61,5 +63,6 @@
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/exam
+%{python_sitelib}/exam-%{version}.dist-info
 

++++++ fix-assertion-methods.patch ++++++
Index: exam-0.10.6/tests/test_asserts.py
===================================================================
--- exam-0.10.6.orig/tests/test_asserts.py
+++ exam-0.10.6/tests/test_asserts.py
@@ -52,12 +52,12 @@ class AssertChangesMixin(Exam, TestCase)
 
     def test_raises_assertion_error_if_value_changes(self):
         msg = 'Value changed from 0 to 1'
-        with self.assertRaisesRegexp(AssertionError, msg):
+        with self.assertRaisesRegex(AssertionError, msg):
             with self.assertDoesNotChange(len, self.thing):
                 self.thing.append(1)
 
     def test_assertion_error_mentions_unexpected_result_at_after(self):
         msg = 'Value changed to 1, not 3'
-        with self.assertRaisesRegexp(AssertionError, msg):
+        with self.assertRaisesRegex(AssertionError, msg):
             with self.assertChanges(len, self.thing, after=3):
                 self.thing.append(1)

++++++ no-mock.patch ++++++
--- /var/tmp/diff_new_pack.HaJRIh/_old  2024-01-19 23:02:19.414308427 +0100
+++ /var/tmp/diff_new_pack.HaJRIh/_new  2024-01-19 23:02:19.418308574 +0100
@@ -68,4 +68,17 @@
  from tests import TestCase
  
  from exam.objects import always, noop
+Index: exam-0.10.6/setup.py
+===================================================================
+--- exam-0.10.6.orig/setup.py
++++ exam-0.10.6/setup.py
+@@ -8,7 +8,7 @@ try:
+ except ImportError:
+     pass
+ 
+-install_requires = ['mock']
++install_requires = []
+ lint_requires = ['pep8', 'pyflakes']
+ tests_require = ['unittest']
+ 
 

Reply via email to