diff --git a/0001-Replace-tests_require-with-extras_require-in-higher-.patch b/0001-Replace-tests_require-with-extras_require-in-higher-.patch new file mode 100644 index 0000000000000000000000000000000000000000..d50ca8d7cb9306a8e05815b615c4e6d4f259b763 --- /dev/null +++ b/0001-Replace-tests_require-with-extras_require-in-higher-.patch @@ -0,0 +1,27 @@ +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/python-pytest-fixture-config.spec b/python-pytest-fixture-config.spec index 00bfc2fc3df86f972661aabb7b93c92c4d0ef935..dfae716048e66c96b58e22de38c0839ba64140a3 100644 --- a/python-pytest-fixture-config.spec +++ b/python-pytest-fixture-config.spec @@ -1,10 +1,12 @@ Name: python-pytest-fixture-config Version: 1.7.0 -Release: 1 +Release: 2 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 + BuildArch: noarch BuildRequires: python3-devel python3-pytest BuildRequires: python3-six python3-setuptools_git @@ -32,13 +34,16 @@ Allows you to skip tests when their required config variables aren't set. %py3_install %check -%{__python3} setup.py test +%pytest %files -n python3-pytest-fixture-config %doc README.md CHANGES.md %{python3_sitelib}/* %changelog +* 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 + * Wed Jul 6 2022 caodongxia - 1.7.0-1 - Update to 1.7.0