diff --git a/backport-Remove-install_requires-dependency-on-coverage.patch b/backport-Remove-install_requires-dependency-on-coverage.patch index 5fbaf2efee07e6b624f6b12e8b49f23422756ef8..5f54569b5e4a94caf3098b34f2f44fa01672f90e 100644 --- a/backport-Remove-install_requires-dependency-on-coverage.patch +++ b/backport-Remove-install_requires-dependency-on-coverage.patch @@ -11,15 +11,14 @@ It should be possible to use ``nose2`` in an environment without As a result, `install_requires` can be removed entirely. --- - nose2/tests/functional/test_coverage.py | 7 +++++++ - setup.py | 5 ++--- + nose2/tests/functional/test_coverage.py | 7 +++++++ + setup.py | 8 ++------ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/nose2/tests/functional/test_coverage.py b/nose2/tests/functional/test_coverage.py -index d98d5b4..1b96ae4 100644 ---- a/nose2/tests/functional/test_coverage.py -+++ b/nose2/tests/functional/test_coverage.py -@@ -6,6 +6,13 @@ from nose2.tests._common import FunctionalTestCase, support_file +--- a/nose2/tests/functional/test_coverage.py 2022-02-06 01:33:12.000000000 +0800 ++++ b/nose2/tests/functional/test_coverage.py 2022-10-27 10:25:37.504095410 +0800 +@@ -8,6 +8,13 @@ class TestCoverage(FunctionalTestCase): @@ -29,32 +28,28 @@ index d98d5b4..1b96ae4 100644 + import coverage # noqa: F401 + except ImportError: + self.skipTest("coverage required") -+ - def assertProcOutputPattern(self, proc, libname, stats, - total_stats=None, assert_exit_status=0): - """ ++ + def assertProcOutputPattern( + self, proc, libname, stats, total_stats=None, assert_exit_status=0 + ): diff --git a/setup.py b/setup.py -index 992d2a4..69de6d2 100644 ---- a/setup.py -+++ b/setup.py -@@ -28,15 +28,14 @@ setup( +--- a/setup.py 2022-02-13 08:24:36.000000000 +0800 ++++ b/setup.py 2022-10-27 10:27:35.122002941 +0800 +@@ -25,15 +25,13 @@ ], install_requires=[ "six>=1.7", - "coverage>=4.4.1", - # 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"', ], extras_require={ - "coverage_plugin": ["coverage>=4.4.1"], -- "doc": ["Sphinx>=1.6.5", "sphinx_rtd_theme", "mock"], + "coverage_plugin": ["coverage"], -+ "doc": ["Sphinx", "sphinx_rtd_theme", "mock"], + "dev": [ +- "Sphinx>=1.6.5", ++ "Sphinx", + "sphinx_rtd_theme", + "mock", +- "coverage", + "sphinx-issues", + ], }, - entry_points={ - "console_scripts": [ --- -2.27.0 - diff --git a/nose2-0.11.0.tar.gz b/nose2-0.11.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0bb67bc4ad00df90ef2c055ee27fec8d30b6ac72 Binary files /dev/null and b/nose2-0.11.0.tar.gz differ diff --git a/nose2-0.9.2.tar.gz b/nose2-0.9.2.tar.gz deleted file mode 100644 index 0b7e2d04600bd7efbdccaba8fb2ec52804a2a7b4..0000000000000000000000000000000000000000 Binary files a/nose2-0.9.2.tar.gz and /dev/null differ diff --git a/python-nose2.spec b/python-nose2.spec index 977519cf101dd9ffc771104a7839c612e42a1757..6bf7cf2bb6bba59613af2f48540892442c28deb0 100644 --- a/python-nose2.spec +++ b/python-nose2.spec @@ -1,13 +1,13 @@ %global srcname nose2 Name: python-%{srcname} -Version: 0.9.2 -Release: 2 +Version: 0.11.0 +Release: 1 Summary: Next generation of nicer testing for Python -License: BSD +License: BSD-2-Clause URL: https://nose2.readthedocs.org -Source0: %pypi_source +Source0: https://files.pythonhosted.org/packages/1f/24/d4d16329a7c58d342a0345bbcd1dc81321fb7a1de41dc3361a48f2381e0e/nose2-%{version}.tar.gz Patch0: backport-Remove-install_requires-dependency-on-coverage.patch @@ -76,6 +76,9 @@ PYTHONPATH=`pwd` %{__python3} -m nose2.__main__ -v %{_bindir}/nose2 %changelog +* Thu Oct 27 2022 liyanan - 0.11.0-1 +- Update to 0.11.0 + * Mon Oct 24 2022 zhangruifang - 0.9.2-2 - delete the require on coverage