Hello community, here is the log from the commit of package python-nose2 for openSUSE:Leap:15.2 checked in at 2020-03-09 18:11:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-nose2 (Old) and /work/SRC/openSUSE:Leap:15.2/.python-nose2.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nose2" Mon Mar 9 18:11:40 2020 rev:12 rq:781646 version:0.9.1 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-nose2/python-nose2.changes 2020-01-15 15:50:49.647507940 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-nose2.new.26092/python-nose2.changes 2020-03-09 18:11:41.085224001 +0100 @@ -1,0 +2,53 @@ +Fri Dec 13 12:49:08 UTC 2019 - John Paul Adrian Glaubitz <[email protected]> + +- Include in SLE-15 (bsc#1159018, jsc#PM-1507) + +------------------------------------------------------------------- +Mon Nov 11 03:25:06 UTC 2019 - Steve Kowalik <[email protected]> + +- Add ignore-warnings-doctests.patch to supress warnings when running + doctests. + +------------------------------------------------------------------- +Mon Sep 30 13:20:05 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Add dep on coverage as it is hard requirement based on requires + +------------------------------------------------------------------- +Tue May 14 17:02:07 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Add patch to fix build with new mock versions: + * fix-mock-dep.patch + +------------------------------------------------------------------- +Mon Apr 8 11:19:14 UTC 2019 - Ondřej Súkup <[email protected]> + +- update to 0.9.1 +- refresh remove_unittest2.patch + * the prof plugin now uses cProfile instead of hotshot for profiling + * skipped tests now include the user's reason in junit XML's message field + * the prettyassert plugin mishandled multi-line function definitions + * Using a plugin's CLI flag when the plugin is already enabled via config + no longer errors + * nose2.plugins.prettyassert, enabled with --pretty-assert + * Cleanup code for EOLed python versions + * Dropped support for distutils. + * Result reporter respects failure status set by other plugins + * JUnit XML plugin now includes the skip reason in its output + +------------------------------------------------------------------- +Thu Aug 16 10:22:15 UTC 2018 - [email protected] + +- Avoid name repetition in summary (rpmlint). + +------------------------------------------------------------------- +Mon Aug 13 12:13:57 UTC 2018 - [email protected] + +- Remove dependency on unittest2 + Add remove_unittest2.patch to faciliate that +- Upgrade to 0.8.0: + List of changes is too long to show here, see + https://github.com/nose-devs/nose2/blob/master/docs/changelog.rst + changes between 0.6.5 and 0.8.0 + +------------------------------------------------------------------- Old: ---- nose2-0.6.5.tar.gz New: ---- fix-mock-dep.patch ignore-warnings-doctests.patch nose2-0.9.1.tar.gz remove_unittest2.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-nose2.spec ++++++ --- /var/tmp/diff_new_pack.o3r0UU/_old 2020-03-09 18:11:41.453224529 +0100 +++ /var/tmp/diff_new_pack.o3r0UU/_new 2020-03-09 18:11:41.457224534 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-nose2 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,32 +12,33 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-nose2 -Version: 0.6.5 +Version: 0.9.1 Release: 0 -Summary: Nose2 is the next generation of nicer testing for Python -License: BSD-2-Clause and Python-2.0 +Summary: Second generation of the "nose" Python testing framework +License: BSD-2-Clause AND Python-2.0 Group: Development/Languages/Python -Url: https://github.com/nose-devs/nose2 +URL: https://github.com/nose-devs/nose2 Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz -BuildRequires: %{python_module cov-core >= 1.12} -BuildRequires: %{python_module devel} +Patch0: remove_unittest2.patch +Patch1: fix-mock-dep.patch +Patch2: ignore-warnings-doctests.patch +BuildRequires: %{python_module coverage >= 4.4.1} +BuildRequires: %{python_module mock} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six >= 1.1} -BuildRequires: %{python_module unittest2} +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-coverage >= 4.4.1 Requires: python-six >= 1.1 Requires(post): update-alternatives Requires(postun): update-alternatives -Suggests: python-cov-core >= 1.12 -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - %python_subpackages %description @@ -51,17 +52,21 @@ %prep %setup -q -n nose2-%{version} +%autopatch -p1 +rm -rf *.egg-info/ %build %python_build %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/nose2 %check -#LC_CTYPE=C.UTF8 python setup.py test +export LC_CTYPE=C.UTF8 +%python_exec setup.py test %post %python_install_alternative nose2 @@ -70,8 +75,8 @@ %python_uninstall_alternative nose2 %files %{python_files} -%defattr(-,root,root,-) -%doc AUTHORS README.rst license.txt +%license license.txt +%doc AUTHORS README.rst %python_alternative %{_bindir}/nose2 %{python_sitelib}/* ++++++ fix-mock-dep.patch ++++++ Index: nose2-0.9.1/setup.py =================================================================== --- nose2-0.9.1.orig/setup.py +++ nose2-0.9.1/setup.py @@ -32,7 +32,7 @@ setup( # mock on py2, py3.4 and py3.5 # not just py2: py3 versions of mock don't all have the same # interface and this can cause issues - 'mock==2.0.0;python_version<"3.6"', + 'mock>=2.0.0;python_version<"3.6"', ], extras_require={ "coverage_plugin": ["coverage>=4.4.1"], ++++++ ignore-warnings-doctests.patch ++++++ Index: nose2-0.9.1/nose2/tests/functional/test_doctests_plugin.py =================================================================== --- nose2-0.9.1.orig/nose2/tests/functional/test_doctests_plugin.py +++ nose2-0.9.1/nose2/tests/functional/test_doctests_plugin.py @@ -1,8 +1,13 @@ +import warnings from nose2.tests._common import FunctionalTestCase, support_file class TestDoctestsPlugin(FunctionalTestCase): + def setUp(self): + super(TestDoctestsPlugin, self).setUp() + warnings.simplefilter('ignore') + def test_simple(self): proc = self.runIn( 'scenario/doctests', ++++++ nose2-0.6.5.tar.gz -> nose2-0.9.1.tar.gz ++++++ ++++ 8160 lines of diff (skipped) ++++++ remove_unittest2.patch ++++++ Index: nose2-0.9.0/setup.py =================================================================== --- nose2-0.9.0.orig/setup.py +++ nose2-0.9.0/setup.py @@ -44,7 +44,7 @@ setup( "nose2-%s.%s = nose2:discover" % (py_version.major, py_version.minor), ] }, - test_suite="unittest.collector", + test_suite="nose2.tests", # descriptive package info below description="unittest2 with plugins, the succesor to nose", long_description=LONG_DESCRIPTION,
