!6 Package upgrade
From: @lyn1001 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
92e6cfa95d
@ -11,15 +11,14 @@ It should be possible to use ``nose2`` in an environment without
|
|||||||
|
|
||||||
As a result, `install_requires` can be removed entirely.
|
As a result, `install_requires` can be removed entirely.
|
||||||
---
|
---
|
||||||
nose2/tests/functional/test_coverage.py | 7 +++++++
|
nose2/tests/functional/test_coverage.py | 7 +++++++
|
||||||
setup.py | 5 ++---
|
setup.py | 8 ++------
|
||||||
2 files changed, 9 insertions(+), 3 deletions(-)
|
2 files changed, 9 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
diff --git a/nose2/tests/functional/test_coverage.py b/nose2/tests/functional/test_coverage.py
|
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 2022-02-06 01:33:12.000000000 +0800
|
||||||
--- a/nose2/tests/functional/test_coverage.py
|
+++ b/nose2/tests/functional/test_coverage.py 2022-10-27 10:25:37.504095410 +0800
|
||||||
+++ b/nose2/tests/functional/test_coverage.py
|
@@ -8,6 +8,13 @@
|
||||||
@@ -6,6 +6,13 @@ from nose2.tests._common import FunctionalTestCase, support_file
|
|
||||||
|
|
||||||
|
|
||||||
class TestCoverage(FunctionalTestCase):
|
class TestCoverage(FunctionalTestCase):
|
||||||
@ -30,31 +29,27 @@ index d98d5b4..1b96ae4 100644
|
|||||||
+ except ImportError:
|
+ except ImportError:
|
||||||
+ self.skipTest("coverage required")
|
+ self.skipTest("coverage required")
|
||||||
+
|
+
|
||||||
def assertProcOutputPattern(self, proc, libname, stats,
|
def assertProcOutputPattern(
|
||||||
total_stats=None, assert_exit_status=0):
|
self, proc, libname, stats, total_stats=None, assert_exit_status=0
|
||||||
"""
|
):
|
||||||
diff --git a/setup.py b/setup.py
|
diff --git a/setup.py b/setup.py
|
||||||
index 992d2a4..69de6d2 100644
|
--- a/setup.py 2022-02-13 08:24:36.000000000 +0800
|
||||||
--- a/setup.py
|
+++ b/setup.py 2022-10-27 10:27:35.122002941 +0800
|
||||||
+++ b/setup.py
|
@@ -25,15 +25,13 @@
|
||||||
@@ -28,15 +28,14 @@ setup(
|
|
||||||
],
|
],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"six>=1.7",
|
"six>=1.7",
|
||||||
- "coverage>=4.4.1",
|
- "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={
|
extras_require={
|
||||||
- "coverage_plugin": ["coverage>=4.4.1"],
|
- "coverage_plugin": ["coverage>=4.4.1"],
|
||||||
- "doc": ["Sphinx>=1.6.5", "sphinx_rtd_theme", "mock"],
|
|
||||||
+ "coverage_plugin": ["coverage"],
|
+ "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
|
|
||||||
|
|
||||||
|
|||||||
BIN
nose2-0.11.0.tar.gz
Normal file
BIN
nose2-0.11.0.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,13 +1,13 @@
|
|||||||
%global srcname nose2
|
%global srcname nose2
|
||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 0.9.2
|
Version: 0.11.0
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Next generation of nicer testing for Python
|
Summary: Next generation of nicer testing for Python
|
||||||
|
|
||||||
License: BSD
|
License: BSD-2-Clause
|
||||||
URL: https://nose2.readthedocs.org
|
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
|
Patch0: backport-Remove-install_requires-dependency-on-coverage.patch
|
||||||
|
|
||||||
@ -76,6 +76,9 @@ PYTHONPATH=`pwd` %{__python3} -m nose2.__main__ -v
|
|||||||
%{_bindir}/nose2
|
%{_bindir}/nose2
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 27 2022 liyanan <liyanan32@h-partner.com> - 0.11.0-1
|
||||||
|
- Update to 0.11.0
|
||||||
|
|
||||||
* Mon Oct 24 2022 zhangruifang <zhangruifang1@h-partners.com> - 0.9.2-2
|
* Mon Oct 24 2022 zhangruifang <zhangruifang1@h-partners.com> - 0.9.2-2
|
||||||
- delete the require on coverage
|
- delete the require on coverage
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user