Compare commits

1 Commits
1.1 ... main

4 changed files with 34 additions and 11 deletions

View File

@@ -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> Wed May 22 17:02:32 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-respx # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,23 +18,26 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-respx Name: python-respx
Version: 0.21.1 Version: 0.22.0
Release: 0 Release: 0
Summary: Mock HTTPX with request patterns and response side effects Summary: Mock HTTPX with request patterns and response side effects
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/lundberg/respx URL: https://github.com/lundberg/respx
Source0: https://github.com/lundberg/respx/archive/refs/tags/%{version}.tar.gz#/respx-%{version}.tar.gz Source0: https://github.com/lundberg/respx/archive/refs/tags/%{version}.tar.gz#/respx-%{version}.tar.gz
BuildRequires: %{python_module Flask} 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-asyncio}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module starlette} BuildRequires: %{python_module starlette}
BuildRequires: %{python_module trio} BuildRequires: %{python_module trio}
BuildRequires: %{python_module typing_extensions} BuildRequires: %{python_module typing_extensions}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-httpx >= 0.21
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -43,21 +46,22 @@ Python library to mock httpx with request patterns and responses
%prep %prep
%autosetup -p1 -n respx-%{version} %autosetup -p1 -n respx-%{version}
sed -i '/--cov/d' setup.cfg
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pytest --asyncio-mode=auto %pytest -rfE
%files %{python_files} %files %{python_files}
%license LICENSE.md %license LICENSE.md
%doc README.md %doc README.md
%{python_sitelib}/respx-%{version}-py*.egg-info %{python_sitelib}/respx-%{version}.dist-info
%{python_sitelib}/respx %{python_sitelib}/respx
%changelog %changelog

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

Binary file not shown.