Sync from SUSE:SLFO:Main python-pytest-httpbin revision 49352ab44d52dc933b88355c59bd45a1

This commit is contained in:
2025-06-27 15:52:33 +02:00
parent f1f2081eb7
commit 232a26fa24
4 changed files with 26 additions and 14 deletions

BIN
pytest-httpbin-2.0.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
pytest_httpbin-2.1.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Wed May 7 06:53:08 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 2.1.0:
* Drop support for Python 3.7
* Test against PyPy 3.10
* Add support for CPython 3.13 by regenerating the bundled certificates
* Fix an issue where secure POST requests would fail with a connection
reset by peer
* Include a LICENCE
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Nov 7 19:42:56 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-httpbin
#
# Copyright (c) 2023 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,18 +18,20 @@
%{?sle15_python_module_pythons}
Name: python-pytest-httpbin
Version: 2.0.0
Version: 2.1.0
Release: 0
Summary: Web service for testing HTTP libraries
License: MIT
Group: Development/Languages/Python
URL: https://github.com/kevin1024/pytest-httpbin
Source: https://files.pythonhosted.org/packages/source/p/pytest-httpbin/pytest-httpbin-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/p/pytest-httpbin/pytest_httpbin-%{version}.tar.gz
Source99: pytest-httpbin-rpmlintrc
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module httpbin}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-httpbin
@@ -47,23 +49,21 @@ in a separate thread running httpbin and provides your test with the URL in the
fixture.
%prep
%autosetup -p1 -n pytest-httpbin-%{version}
%autosetup -p1 -n pytest_httpbin-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Flask 2.1 returns relative URLs again
# gh#kevin1024/pytest-httpbin#64
%pytest -k "not test_redirect_location_is_https_for_secure_server"
%pytest
%files %{python_files}
%doc README.md DESCRIPTION.rst
%{python_sitelib}/pytest_httpbin
%{python_sitelib}/pytest_httpbin-%{version}*-info
%{python_sitelib}/pytest_httpbin-%{version}.dist-info
%changelog