forked from pool/python-requre
- Promote pytest to Requires.
- Add patch support-click-8.2.patch: * click 8.2.0 now exits non-zero when printing help. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requre?expand=0&rev=16
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 15 05:16:09 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <dmueller@suse.com>
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
13
support-click-8.2.patch
Normal file
13
support-click-8.2.patch
Normal file
@@ -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(
|
Reference in New Issue
Block a user