!6 Package upgrade

From: @lyn1001 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2022-10-27 12:00:26 +00:00 committed by Gitee
commit 92e6cfa95d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 27 additions and 29 deletions

View File

@ -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

BIN
nose2-0.11.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -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 <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
- delete the require on coverage