diff --git a/0001-fix-build-for-pytest.patch b/0001-fix-build-for-pytest.patch deleted file mode 100644 index c7984a9bf6b979f8f449ea80585a98ae942869c5..0000000000000000000000000000000000000000 --- a/0001-fix-build-for-pytest.patch +++ /dev/null @@ -1,44 +0,0 @@ -From eeccbdc0ccf805f8c01ac9b22acc1008aa50d58b Mon Sep 17 00:00:00 2001 -From: baizg1107 -Date: Tue, 12 Jan 2021 11:36:30 +0800 -Subject: [PATCH] fix build for pytest - ---- - tests/unit/test_fixture_config.py | 8 +++----- - 1 file changed, 3 insertions(+), 5 deletions(-) - -diff --git a/tests/unit/test_fixture_config.py b/tests/unit/test_fixture_config.py -index 2cb90ca..042454b 100644 ---- a/tests/unit/test_fixture_config.py -+++ b/tests/unit/test_fixture_config.py -@@ -29,11 +29,10 @@ CONFIG1 = DummyConfig(foo=None, bar=1) - @requires_config(CONFIG1, ('foo', 'bar')) - @pytest.fixture - def a_fixture(request): -- raise ValueError('Should not run') -- -+ yield 'xxxx' - - def test_requires_config_skips(a_fixture): -- raise ValueError('Should not run') -+ assert a_fixture == 'xxxx' - - - @requires_config(CONFIG1, ('bar',)) -@@ -50,12 +49,11 @@ def test_requires_config_doesnt_skip(another_fixture): - @yield_requires_config(CONFIG1, ('foo', 'bar')) - @pytest.yield_fixture - def yet_another_fixture(): -- raise ValueError('Should also not run') - yield 'yyyy' - - - def test_yield_requires_config_skips(yet_another_fixture): -- raise ValueError('Should also not run') -+ assert yet_another_fixture == 'yyyy' - - - @yield_requires_config(CONFIG1, ('bar',)) --- -2.23.0 - diff --git a/pytest-fixture-config-1.2.11.tar.gz b/pytest-fixture-config-1.2.11.tar.gz deleted file mode 100644 index 2474936ecec938f7b5195dfb1d5066975743dad6..0000000000000000000000000000000000000000 Binary files a/pytest-fixture-config-1.2.11.tar.gz and /dev/null differ diff --git a/pytest-fixture-config-1.7.0.tar.gz b/pytest-fixture-config-1.7.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a35a30998ddf862fc7709222e0b283cfd1d4c75e Binary files /dev/null and b/pytest-fixture-config-1.7.0.tar.gz differ diff --git a/python-pytest-fixture-config.spec b/python-pytest-fixture-config.spec index 1851874c7014bae490cf205c09d8a6d148d66bdb..95177459ad8c88a91ad67781b3ac928dffaff682 100644 --- a/python-pytest-fixture-config.spec +++ b/python-pytest-fixture-config.spec @@ -1,14 +1,13 @@ Name: python-pytest-fixture-config -Version: 1.2.11 -Release: 8 +Version: 1.7.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/source/p/pytest-fixture-config/pytest-fixture-config-1.2.11.tar.gz +Source0: https://files.pythonhosted.org/packages/07/19/37fe282f262b65247e310ec59223329e1ad53a71683f81a139e7d9ca7916/pytest-fixture-config-1.7.0.tar.gz BuildArch: noarch BuildRequires: python3-devel python3-pytest BuildRequires: python3-six python3-setuptools_git -Patch0: 0001-fix-build-for-pytest.patch %description Simple configuration objects for Py.test fixtures. @@ -24,7 +23,7 @@ Simple configuration objects for Py.test fixtures. Allows you to skip tests when their required config variables aren't set. %prep -%autosetup -n pytest-fixture-config-1.2.11 -p1 +%autosetup -n pytest-fixture-config-%{version} -p1 %build %py3_build @@ -40,6 +39,9 @@ Allows you to skip tests when their required config variables aren't set. %{python3_sitelib}/* %changelog +* Wed Jul 6 2022 caodongxia - 1.7.0-1 +- Update to 1.7.0 + * Sat Jan 9 2021 baizhonggui - 1.2.11-8 - Fix building for pytest