Sync from SUSE:SLFO:Main python-respx revision babb1dab29beeadf4cb03abae647f3e3
This commit is contained in:
@@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 30 08:14:05 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.22.0:
|
||||
* Support HTTPX 0.28.0, thanks @ndhansen
|
||||
* Drop support for Python 3.7, to align with HTTPX 0.25.0
|
||||
* Update CI test to not fail fast and cancel workflows
|
||||
* Add dependabot to check GitHub actions packages
|
||||
* Add Python 3.13 to test suite
|
||||
- drop respx-pr267-httpx0.28.patch,
|
||||
respx-pr278-httpx0.28.patch: upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 12 15:14:25 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Add patches for httpx 0.28
|
||||
* respx-pr267-httpx0.28.patch gh#lundberg/respx#267
|
||||
* respx-pr278-httpx0.28.patch gh#lundberg/respx#278
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 22 17:02:32 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-respx
|
||||
#
|
||||
# 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,23 +18,26 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-respx
|
||||
Version: 0.21.1
|
||||
Version: 0.22.0
|
||||
Release: 0
|
||||
Summary: Mock HTTPX with request patterns and response side effects
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/lundberg/respx
|
||||
Source0: https://github.com/lundberg/respx/archive/refs/tags/%{version}.tar.gz#/respx-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Flask}
|
||||
BuildRequires: %{python_module httpx}
|
||||
# >= 0.28 for tests because of the Patches
|
||||
BuildRequires: %{python_module httpx >= 0.28}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest-asyncio}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module starlette}
|
||||
BuildRequires: %{python_module trio}
|
||||
BuildRequires: %{python_module typing_extensions}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-httpx >= 0.21
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -43,21 +46,22 @@ Python library to mock httpx with request patterns and responses
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n respx-%{version}
|
||||
sed -i '/--cov/d' setup.cfg
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest --asyncio-mode=auto
|
||||
%pytest -rfE
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.md
|
||||
%doc README.md
|
||||
%{python_sitelib}/respx-%{version}-py*.egg-info
|
||||
%{python_sitelib}/respx-%{version}.dist-info
|
||||
%{python_sitelib}/respx
|
||||
|
||||
%changelog
|
||||
|
BIN
respx-0.21.1.tar.gz
(Stored with Git LFS)
BIN
respx-0.21.1.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
respx-0.22.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
respx-0.22.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user