Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-cx_Freeze for
openSUSE:Factory checked in at 2021-09-17 23:25:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cx_Freeze (Old)
and /work/SRC/openSUSE:Factory/.python-cx_Freeze.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cx_Freeze"
Fri Sep 17 23:25:53 2021 rev:5 rq:919614 version:6.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cx_Freeze/python-cx_Freeze.changes
2020-05-28 09:19:43.905254142 +0200
+++
/work/SRC/openSUSE:Factory/.python-cx_Freeze.new.1899/python-cx_Freeze.changes
2021-09-17 23:26:11.065248640 +0200
@@ -1,0 +2,6 @@
+Fri Sep 17 02:53:48 UTC 2021 - Steve Kowalik <[email protected]>
+
+- Add remove-nose.patch:
+ * Use pytest rather than nose in one test case.
+
+-------------------------------------------------------------------
New:
----
remove-nose.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-cx_Freeze.spec ++++++
--- /var/tmp/diff_new_pack.qavD3B/_old 2021-09-17 23:26:11.557249079 +0200
+++ /var/tmp/diff_new_pack.qavD3B/_new 2021-09-17 23:26:11.561249082 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-cx_Freeze
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -27,10 +27,9 @@
Group: Development/Languages/Python
URL: https://github.com/anthony-tuininga/cx_Freeze
Source:
https://github.com/anthony-tuininga/cx_Freeze/archive/%{version}.tar.gz
+Patch0: remove-nose.patch
BuildRequires: %{python_module base >= 3.5}
BuildRequires: %{python_module devel}
-# imports nose in one test
-BuildRequires: %{python_module nose}
BuildRequires: %{python_module openpyxl}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -38,7 +37,7 @@
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(postun):update-alternatives
# we provide same binary like the deprecated py2 variant
Conflicts: %{oldpython}-cx_Freeze
%python_subpackages
@@ -56,6 +55,7 @@
%prep
%setup -q -n cx_Freeze-%{version}
+%autopatch -p1
sed -i -e '/^#!\//, 1d' cx_Freeze/samples/*/*.py
chmod a-x cx_Freeze/initscripts/*.py
++++++ remove-nose.patch ++++++
Index: cx_Freeze-6.0/test/test_misc.py
===================================================================
--- cx_Freeze-6.0.orig/test/test_misc.py
+++ cx_Freeze-6.0/test/test_misc.py
@@ -1,7 +1,7 @@
from os.path import join as pjoin
import sys
-from nose.tools import assert_raises
+from pytest import raises
from cx_Freeze.freezer import process_path_specs, ConfigError
@@ -15,8 +15,8 @@ def test_process_path_specs():
(pjoin(rootdir, 'foo', 'qux'), pjoin('baz', 'xyz'))]
def test_process_path_specs_bad():
- with assert_raises(ConfigError):
+ with raises(ConfigError):
process_path_specs([(pjoin(rootdir, 'foo'), pjoin(rootdir, 'bar'))])
- with assert_raises(ConfigError):
- process_path_specs([('a', 'b', 'c')])
\ No newline at end of file
+ with raises(ConfigError):
+ process_path_specs([('a', 'b', 'c')])