- Update to 1.8.0:

* Drop support for Python 2 and <3.6, removing compatibility code.
  * Use stdlib unittest.mock instead of mock package.
  * Removed usage of path.py and path in favour of pathlib.
- Removed patches, included upstream:
  * Iterable-collections.patch
  * pytest-fixtures-pr171-remove-mock.patch
- Refreshed python-pytest-verbose-parametrize-no-six.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-verbose-parametrize?expand=0&rev=14
This commit is contained in:
2024-10-22 06:11:29 +00:00
committed by Git OBS Bridge
parent 094ae37507
commit 31f64db3e3
7 changed files with 45 additions and 67 deletions

View File

@@ -1,11 +1,9 @@
Index: pytest-verbose-parametrize-1.7.0/pytest_verbose_parametrize.py
Index: pytest-verbose-parametrize-1.8.0/pytest_verbose_parametrize.py
===================================================================
--- pytest-verbose-parametrize-1.7.0.orig/pytest_verbose_parametrize.py
+++ pytest-verbose-parametrize-1.7.0/pytest_verbose_parametrize.py
@@ -4,14 +4,13 @@ except ImportError:
from collections import Iterable
except ModuleNotFoundError:
from collections import Iterable
--- pytest-verbose-parametrize-1.8.0.orig/pytest_verbose_parametrize.py
+++ pytest-verbose-parametrize-1.8.0/pytest_verbose_parametrize.py
@@ -1,12 +1,11 @@
from collections.abc import Iterable
-from six import string_types, text_type
@@ -18,7 +16,7 @@ Index: pytest-verbose-parametrize-1.7.0/pytest_verbose_parametrize.py
if len(s) > 32:
s = s[:29] + '...'
return s
@@ -34,7 +33,7 @@ def pytest_generate_tests(metafunc):
@@ -29,7 +28,7 @@ def pytest_generate_tests(metafunc):
if 'ids' not in markers.kwargs:
list_names = []
for i, argvalue in enumerate(markers.args[1]):
@@ -27,3 +25,15 @@ Index: pytest-verbose-parametrize-1.7.0/pytest_verbose_parametrize.py
argvalue = (argvalue,)
name = '-'.join(_strize_arg(arg) for arg in argvalue)
if len(name) > 64:
Index: pytest-verbose-parametrize-1.8.0/setup.py
===================================================================
--- pytest-verbose-parametrize-1.8.0.orig/setup.py
+++ pytest-verbose-parametrize-1.8.0/setup.py
@@ -18,7 +18,6 @@ classifiers = [
]
install_requires = ['pytest',
- 'six',
]
tests_require = ['mock; python_version<"3.3"',