Hello community,
here is the log from the commit of package python-pyshould for openSUSE:Factory
checked in at 2020-08-17 14:40:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyshould (Old)
and /work/SRC/openSUSE:Factory/.python-pyshould.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyshould"
Mon Aug 17 14:40:07 2020 rev:4 rq:827204 version:0.7.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyshould/python-pyshould.changes
2018-12-24 11:42:20.157401905 +0100
+++
/work/SRC/openSUSE:Factory/.python-pyshould.new.3399/python-pyshould.changes
2020-08-17 14:40:09.042576564 +0200
@@ -1,0 +2,5 @@
+Sun Aug 16 21:25:42 UTC 2020 - John Vandenberg <[email protected]>
+
+- Replace nose with pytest
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pyshould.spec ++++++
--- /var/tmp/diff_new_pack.Jkpowm/_old 2020-08-17 14:40:09.766576865 +0200
+++ /var/tmp/diff_new_pack.Jkpowm/_new 2020-08-17 14:40:09.770576866 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-pyshould
#
-# 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
@@ -33,7 +33,7 @@
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module hamcrest}
-BuildRequires: %{python_module nose}
+BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
@@ -53,6 +53,9 @@
%prep
%setup -q -n %{modname}-%{version}
+sed -i '/nose/d' setup.py
+# Remove __init__.py to help 15.x
+rm tests/__init__.py
%build
%python_build
@@ -60,12 +63,12 @@
%install
%python_install
# We shouldn't install tests
-%python_expand rm -rvf %{buildroot}%{$python_sitelib}/tests
-
-%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%{python_expand rm -rvf %{buildroot}%{$python_sitelib}/tests
+%fdupes %{buildroot}%{$python_sitelib}
+}
%check
-%python_exec setup.py test -v
+%pytest tests/*.py
%files %{python_files}
%doc README.md