Compare commits

6 Commits

Author SHA256 Message Date
f917a576ab Accepting request 1277535 from devel:languages:python
- 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/request/show/1277535
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requre?expand=0&rev=7
2025-05-15 15:01:25 +00:00
7f21d89d16 - 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
2025-05-15 05:16:22 +00:00
4cf237dfb7 Accepting request 1265373 from devel:languages:python
- update to 0.9.1:
  * Adjusted `requre-purge` to not replace GitHub tokens with
    dummy token that still looks like a legit one and also 
    case-sensitiveness on the cookies from Pagure.

OBS-URL: https://build.opensuse.org/request/show/1265373
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requre?expand=0&rev=6
2025-03-31 09:42:27 +00:00
4399665b12 - update to 0.9.1:
* Adjusted `requre-purge` to not replace GitHub tokens with
    dummy token that still looks like a legit one and also 
    case-sensitiveness on the cookies from Pagure.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requre?expand=0&rev=14
2025-03-29 09:44:04 +00:00
bd7a130474 Accepting request 1254399 from devel:languages:python
Forwarded request #1254380 from glaubitz

- Update to 0.9.0
    * Supports recording of the requests done by `httpx` via
      `record_httpx()` and `recording_httpx()` decorators. (#297)
  - from version 0.8.6
    * Trigger a new release to fix the PyPI upload action.
  - from version 0.8.5
    * Trigger a new release to confirm the correct SPDX licence.
  - Update BuildRequires and Requires from pyproject.toml

OBS-URL: https://build.opensuse.org/request/show/1254399
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requre?expand=0&rev=5
2025-03-19 21:34:09 +00:00
85a84eb1e9 Accepting request 1254380 from home:glaubitz:branches:devel:languages:python
- Update to 0.9.0
  * Supports recording of the requests done by `httpx` via
    `record_httpx()` and `recording_httpx()` decorators. (#297)
- from version 0.8.6
  * Trigger a new release to fix the PyPI upload action.
- from version 0.8.5
  * Trigger a new release to confirm the correct SPDX licence.
- Update BuildRequires and Requires from pyproject.toml

OBS-URL: https://build.opensuse.org/request/show/1254380
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requre?expand=0&rev=12
2025-03-19 12:29:39 +00:00
5 changed files with 51 additions and 7 deletions

View File

@@ -1,3 +1,30 @@
-------------------------------------------------------------------
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>
- update to 0.9.1:
* Adjusted `requre-purge` to not replace GitHub tokens with
dummy token that still looks like a legit one and also
case-sensitiveness on the cookies from Pagure.
-------------------------------------------------------------------
Wed Mar 19 10:57:19 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.9.0
* Supports recording of the requests done by `httpx` via
`record_httpx()` and `recording_httpx()` decorators. (#297)
- from version 0.8.6
* Trigger a new release to fix the PyPI upload action.
- from version 0.8.5
* Trigger a new release to confirm the correct SPDX licence.
- Update BuildRequires and Requires from pyproject.toml
-------------------------------------------------------------------
Mon Feb 26 16:32:40 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-requre
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,12 +18,14 @@
%{?sle15_python_module_pythons}
Name: python-requre
Version: 0.8.4
Version: 0.9.1
Release: 0
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}
@@ -32,8 +34,9 @@ BuildRequires: python-rpm-macros
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
@@ -41,6 +44,7 @@ BuildArch: noarch
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module GitPython}
BuildRequires: %{python_module click}
BuildRequires: %{python_module httpx}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
# /SECTION
@@ -51,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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6a42f41f09450e1b10915e0adb9edd919d94137f4cfbf23b400ddffa3591930d
size 226513

3
requre-0.9.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3c3064c1ca3795730d63a5640944e1241b1f29752eaa7edcb803dba9fe5e85cc
size 230487

13
support-click-8.2.patch Normal file
View 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(