17
0

Compare commits

7 Commits

Author SHA256 Message Date
2cc30ace1c Accepting request 1243207 from devel:languages:python:pytest
- update to 1.8.1:
  * Add Ubuntu builds for py3.6-3.13
  * CircleCI release jobs now depend on both Ubuntu and
    Windows success.

- Remove unneeded BuildRequires on mock.

OBS-URL: https://build.opensuse.org/request/show/1243207
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-verbose-parametrize?expand=0&rev=10
2025-02-05 11:41:08 +00:00
bf2645767b - update to 1.8.1:
* Add Ubuntu builds for py3.6-3.13
  * CircleCI release jobs now depend on both Ubuntu and
    Windows success.
- Remove unneeded BuildRequires on mock.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-verbose-parametrize?expand=0&rev=19
2025-02-04 18:57:42 +00:00
b76e020291 Accepting request 1220550 from devel:languages:python:pytest
- Remove not needed dep python-setuptools-git

OBS-URL: https://build.opensuse.org/request/show/1220550
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-verbose-parametrize?expand=0&rev=9
2024-11-04 21:42:39 +00:00
51f9ff7743 - Remove not needed dep python-setuptools-git
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-verbose-parametrize?expand=0&rev=17
2024-11-04 11:31:59 +00:00
a2b3c447a2 - Remove not needed dep python-setuptools-git
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-verbose-parametrize?expand=0&rev=16
2024-11-04 11:30:23 +00:00
473d7d4971 Accepting request 1216914 from devel:languages:python:pytest
- 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/request/show/1216914
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-verbose-parametrize?expand=0&rev=8
2024-10-22 12:53:03 +00:00
31f64db3e3 - 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
2024-10-22 06:11:29 +00:00
7 changed files with 59 additions and 69 deletions

View File

@@ -1,17 +0,0 @@
---
pytest_verbose_parametrize.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--- a/pytest_verbose_parametrize.py
+++ b/pytest_verbose_parametrize.py
@@ -1,4 +1,9 @@
-from collections import Iterable
+try:
+ from collections.abc import Iterable
+except ImportError:
+ from collections import Iterable
+except ModuleNotFoundError:
+ from collections import Iterable
from six import string_types, text_type

View File

@@ -1,14 +0,0 @@
diff --git a/pytest-verbose-parametrize/tests/unit/test_verbose_parametrize.py b/pytest-verbose-parametrize/tests/unit/test_verbose_parametrize.py
index fcce01d..bba9aa6 100644
--- pytest-verbose-parametrize/tests/unit/test_verbose_parametrize.py
+++ pytest-verbose-parametrize.patched/tests/unit/test_verbose_parametrize.py
@@ -1,5 +1,8 @@
# -*- coding: utf-8 -*-
-from mock import Mock
+try:
+ from unittest.mock import Mock
+except ImportError:
+ from mock import Mock
from pytest_verbose_parametrize import pytest_generate_tests

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b85b374a5747607a8e9ffca9732e152859b8e7115bcb10f25c31c60d403146e8
size 12301

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d348e4ed7cd4d76365a7d38cfd2a738fbd0db84738e9bd3a6c253ed31eb5632d
size 30988

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"',

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Tue Feb 4 18:57:14 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 1.8.1:
* Add Ubuntu builds for py3.6-3.13
* CircleCI release jobs now depend on both Ubuntu and
Windows success.
-------------------------------------------------------------------
Mon Nov 4 11:31:47 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Remove not needed dep python-setuptools-git
-------------------------------------------------------------------
Tue Oct 22 06:08:51 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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
-------------------------------------------------------------------
Thu Dec 8 13:18:34 UTC 2022 - pgajdos@suse.com
@@ -17,7 +42,7 @@ Thu Apr 21 20:58:14 UTC 2022 - Ben Greiner <code@bnavigator.de>
-------------------------------------------------------------------
Fri Mar 11 03:54:45 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- Remove unneeded BuildRequires on mock.
- Remove unneeded BuildRequires on mock.
-------------------------------------------------------------------
Mon Jan 10 16:09:01 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-verbose-parametrize
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,25 +16,18 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-pytest-verbose-parametrize
Version: 1.7.0
Version: 1.8.1
Release: 0
Summary: More descriptive output for parametrized pytest tests
License: MIT
URL: https://github.com/manahl/pytest-plugins
URL: https://github.com/man-group/pytest-plugins
Source: https://files.pythonhosted.org/packages/source/p/pytest-verbose-parametrize/pytest-verbose-parametrize-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Iterable-collections.patch gh#man-group/pytest-plugins#197 mcepl@suse.com
# Python 3.10 finally really killed collections class, which are now in
# collections.abc
Patch0: Iterable-collections.patch
# PATCH-FEATURE-UPSTREAM pytest-fixtures-pr171-remove-mock.patch -- gh#man-group#pytest-plugins#171
Patch1: pytest-fixtures-pr171-remove-mock.patch
# https://github.com/man-group/pytest-plugins/issues/209
Patch2: python-pytest-verbose-parametrize-no-six.patch
BuildRequires: %{python_module setuptools-git}
Patch0: python-pytest-verbose-parametrize-no-six.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest
@@ -43,37 +36,30 @@ BuildArch: noarch
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module pytest-virtualenv}
BuildRequires: %{python_module pytest}
%if %{with python2}
BuildRequires: python2-mock
%endif
# /SECTION
%python_subpackages
%description
More descriptive output for parametrized py.test tests.
More descriptive output for parametrized pytest tests.
%prep
%autosetup -p1 -n pytest-verbose-parametrize-%{version}
# we can't do integration tests as py2 and py3 can be different versions
# and the script simply calls $bindir/pytest
rm tests/integration/test_verbose_parametrize.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%pytest --ignore tests/integration/test_verbose_parametrize.py
%files %{python_files}
%doc CHANGES.md README.md
%license LICENSE
%{python_sitelib}/pytest_verbose_parametrize.py*
%{python_sitelib}/pytest_verbose_parametrize.py
%pycache_only %{python_sitelib}/__pycache__/pytest_verbose_parametrize*.pyc
%{python_sitelib}/pytest_verbose_parametrize-%{version}*-info
%{python_sitelib}/pytest_verbose_parametrize-%{version}.dist-info
%changelog