diff --git a/python-requre.changes b/python-requre.changes index 2b8bb74..6a669d5 100644 --- a/python-requre.changes +++ b/python-requre.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu May 15 05:16:09 UTC 2025 - Steve Kowalik + +- Promote pytest to Requires. +- Add patch support-click-8.2.patch: + * click 8.2.0 now exits non-zero when printing help. + ------------------------------------------------------------------- Sat Mar 29 09:43:12 UTC 2025 - Dirk Müller diff --git a/python-requre.spec b/python-requre.spec index 6096702..f65068e 100644 --- a/python-requre.spec +++ b/python-requre.spec @@ -24,6 +24,8 @@ Summary: Python libray for storing and using objects for testing License: MIT URL: https://github.com/packit-service/requre Source: https://files.pythonhosted.org/packages/source/r/requre/requre-%{version}.tar.gz +# PATCH-FIX-OPENSUSE click 8.2.0 now exits non-zero when printing help +Patch0: support-click-8.2.patch BuildRequires: %{python_module hatch_vcs} BuildRequires: %{python_module pip} BuildRequires: %{python_module wheel} @@ -33,8 +35,8 @@ Requires: python-GitPython Requires: python-PyYAML Requires: python-click Requires: python-httpx +Requires: python-pytest Requires: python-requests -Suggests: python-pytest Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch @@ -53,7 +55,7 @@ Library for testing python code what allows store output of various objects and use stored data for testing. %prep -%setup -q -n requre-%{version} +%autosetup -p1 -n requre-%{version} # Remove cyclic dependency with ogr rm tests/test_E2E_ogr.py diff --git a/support-click-8.2.patch b/support-click-8.2.patch new file mode 100644 index 0000000..e80f566 --- /dev/null +++ b/support-click-8.2.patch @@ -0,0 +1,13 @@ +Index: requre-0.9.1/tests/test_e2e_test_patching.py +=================================================================== +--- requre-0.9.1.orig/tests/test_e2e_test_patching.py ++++ requre-0.9.1/tests/test_e2e_test_patching.py +@@ -82,7 +82,7 @@ class NoApplied(unittest.TestCase): + run_command(cmd=f"{CMD_RELATIVE} clean", fail=False) + + def test_help(self): +- run_command(cmd=f"{CMD_RELATIVE}") ++ run_command(cmd=f"{CMD_RELATIVE}", fail=False) + + def test_bad_command(self): + self.assertRaises(