Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pyshould for openSUSE:Factory
checked in at 2024-03-11 15:34:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyshould (Old)
and /work/SRC/openSUSE:Factory/.python-pyshould.new.1770 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyshould"
Mon Mar 11 15:34:36 2024 rev:7 rq:1156835 version:0.7.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyshould/python-pyshould.changes
2020-08-19 18:56:50.971848001 +0200
+++
/work/SRC/openSUSE:Factory/.python-pyshould.new.1770/python-pyshould.changes
2024-03-11 15:42:15.880831253 +0100
@@ -1,0 +2,8 @@
+Mon Mar 11 06:52:00 UTC 2024 - Steve Kowalik <[email protected]>
+
+- Add patch fix-assertion-method.patch:
+ * Fix assertion methods.
+- Switch to pyproject and autosetup macros.
+- Less globs in %files.
+
+-------------------------------------------------------------------
New:
----
fix-assertion-method.patch
BETA DEBUG BEGIN:
New:
- Add patch fix-assertion-method.patch:
* Fix assertion methods.
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pyshould.spec ++++++
--- /var/tmp/diff_new_pack.10W0VS/_old 2024-03-11 15:42:16.340848210 +0100
+++ /var/tmp/diff_new_pack.10W0VS/_new 2024-03-11 15:42:16.344848358 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pyshould
#
-# Copyright (c) 2020 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
@@ -17,16 +17,17 @@
%define modname pyshould
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-%{modname}
Version: 0.7.1
Release: 0
Summary: Should style asserts
License: MIT
-Group: Development/Languages/Python
URL: https://github.com/drslump/%{modname}
Source:
https://files.pythonhosted.org/packages/source/p/pyshould/%{modname}-%{version}.tar.gz
+Patch0: fix-assertion-method.patch
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-hamcrest
@@ -51,14 +52,14 @@
the standard AssertionError.
%prep
-%setup -q -n %{modname}-%{version}
+%autosetup -p1 -n %{modname}-%{version}
sed -i '/nose/d' setup.py
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%pyproject_install
# We shouldn't install tests
%{python_expand rm -rvf %{buildroot}%{$python_sitelib}/tests
%fdupes %{buildroot}%{$python_sitelib}
@@ -70,5 +71,6 @@
%files %{python_files}
%doc README.md
%license LICENSE
-%{python_sitelib}/%{modname}*
+%{python_sitelib}/%{modname}
+%{python_sitelib}/%{modname}-%{version}.dist-info
++++++ fix-assertion-method.patch ++++++
Index: pyshould-0.7.1/tests/dsl.py
===================================================================
--- pyshould-0.7.1.orig/tests/dsl.py
+++ pyshould-0.7.1/tests/dsl.py
@@ -94,13 +94,13 @@ class DslTestCase(unittest.TestCase):
def nested_expression_ok():
with should.throw(TypeError):
1 | should.equal(1)
- self.assertRaisesRegexp(AssertionError,
+ self.assertRaisesRegex(AssertionError,
'TypeError', nested_expression_ok)
def nested_expression_fail():
with should.throw(TypeError):
1 | should.equal(2)
- self.assertRaisesRegexp(AssertionError,
+ self.assertRaisesRegex(AssertionError,
'<2>', nested_expression_fail)
with should.throw(TypeError):