diff --git a/0001-Replace-tests_require-with-extras_require-in-higher-.patch b/0001-Replace-tests_require-with-extras_require-in-higher-.patch deleted file mode 100644 index d50ca8d7cb9306a8e05815b615c4e6d4f259b763..0000000000000000000000000000000000000000 --- a/0001-Replace-tests_require-with-extras_require-in-higher-.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 68dfc59f9e92858fa78ccb8b2a964b43111cf9d8 Mon Sep 17 00:00:00 2001 -From: wang--ge -Date: Wed, 16 Jul 2025 07:11:39 +0800 -Subject: [PATCH] Replace tests_require with extras_require in higher versions - of setuptools to resolve compilation failure - ---- - common_setup.py | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/common_setup.py b/common_setup.py -index f4ae960..e8a81ac 100644 ---- a/common_setup.py -+++ b/common_setup.py -@@ -38,7 +38,8 @@ class EggInfo(EggInfoCommand): - def run(self): - if self.distribution.extras_require is None: - self.distribution.extras_require = {} -- self.distribution.extras_require['tests'] = self.distribution.tests_require -+ if 'tests' not in self.distribution.extras_require and hasattr(self.distribution, 'tests_require'): -+ self.distribution.extras_require['tests'] = self.distribution.tests_require - EggInfoCommand.run(self) - - --- -2.48.1 - diff --git a/pytest-fixture-config-1.7.0.tar.gz b/pytest-fixture-config-1.7.0.tar.gz deleted file mode 100644 index a35a30998ddf862fc7709222e0b283cfd1d4c75e..0000000000000000000000000000000000000000 Binary files a/pytest-fixture-config-1.7.0.tar.gz and /dev/null differ diff --git a/pytest-fixture-config-1.8.0.tar.gz b/pytest-fixture-config-1.8.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2b2aa4f02fa4d716fdda18bee1879fe4f718bdd1 Binary files /dev/null and b/pytest-fixture-config-1.8.0.tar.gz differ diff --git a/python-pytest-fixture-config.spec b/python-pytest-fixture-config.spec index dfae716048e66c96b58e22de38c0839ba64140a3..1b0aeeac3df4eec28ce4ebe54501ad61b0d05b69 100644 --- a/python-pytest-fixture-config.spec +++ b/python-pytest-fixture-config.spec @@ -1,12 +1,10 @@ Name: python-pytest-fixture-config -Version: 1.7.0 -Release: 2 +Version: 1.8.0 +Release: 1 Summary: Simple configuration objects for Py.test fixtures License: MIT URL: https://pypi.python.org/pypi/pytest-fixture-config -Source0: https://files.pythonhosted.org/packages/07/19/37fe282f262b65247e310ec59223329e1ad53a71683f81a139e7d9ca7916/pytest-fixture-config-1.7.0.tar.gz -Patch1: 0001-Replace-tests_require-with-extras_require-in-higher-.patch - +Source0: https://files.pythonhosted.org/packages/8f/67/35e28bec68cc281fbe3d6b221c243a773374c6b677da6bb82552bb07d555/pytest-fixture-config-1.8.0.tar.gz BuildArch: noarch BuildRequires: python3-devel python3-pytest BuildRequires: python3-six python3-setuptools_git @@ -26,6 +24,7 @@ Allows you to skip tests when their required config variables aren't set. %prep %autosetup -n pytest-fixture-config-%{version} -p1 +sed -i 's/yield_fixture/fixture/g' tests/unit/test_fixture_config.py %build %py3_build @@ -34,13 +33,19 @@ Allows you to skip tests when their required config variables aren't set. %py3_install %check -%pytest +%pytest -- -vv %files -n python3-pytest-fixture-config %doc README.md CHANGES.md %{python3_sitelib}/* %changelog +* Thu Jul 17 2025 Dongxing Wang - 1.8.0-1 +- Update package to version 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 + * Wed Jul 16 2025 Ge Wang - 1.7.0-2 - Replace tests_require with extras_require in higher versions of setuptools to resolve compilation failure