forked from pool/python-pytest-httpbin
- 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.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-httpbin?expand=0&rev=15
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
BIN
pytest-httpbin-2.0.0.tar.gz
LFS
Normal file
BIN
pytest-httpbin-2.0.0.tar.gz
LFS
Normal file
Binary file not shown.
2
pytest-httpbin-rpmlintrc
Normal file
2
pytest-httpbin-rpmlintrc
Normal file
@@ -0,0 +1,2 @@
|
||||
# These are test certificates and keys for localhost only
|
||||
addFilter("pem-certificate .*pytest_httpbin/certs")
|
||||
BIN
pytest_httpbin-2.1.0.tar.gz
LFS
Normal file
BIN
pytest_httpbin-2.1.0.tar.gz
LFS
Normal file
Binary file not shown.
116
python-pytest-httpbin.changes
Normal file
116
python-pytest-httpbin.changes
Normal file
@@ -0,0 +1,116 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- update to 2.0.0:
|
||||
* This is a major release since it drops comparability with
|
||||
some older versions of python.
|
||||
* Drop support for Python 2.6, 2.7, 3.4, 3.5 and 3.6 (#68)
|
||||
* Add support for Python 3.7, 3.8, 3.9 and 3.10 (#68)
|
||||
* Avoid deprecation warnings and resource warnings (#71)
|
||||
* Add support for Python 3.11 and 3.12, drop dependency on six
|
||||
- drop python-pytest-httpbin-no-six.patch (upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 21 12:31:41 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add sle15_python_module_pythons (jsc#PED-68)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 13 22:44:03 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Make calling of %{sle15modernpython} optional.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 8 11:15:36 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
- do not require six
|
||||
- added patches
|
||||
fix https://github.com/kevin1024/pytest-httpbin/issues/75
|
||||
+ python-pytest-httpbin-no-six.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 12 20:57:41 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Skip a test which fails with Flask 2.1
|
||||
gh#kevin1024/pytest-httpbin#64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 1 07:27:45 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 1.0.2:
|
||||
* Switch to GitHub Actions
|
||||
* This will be the last release to support Python 2.6, 2.7 or 3.6
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 29 09:56:27 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to v1.0.1
|
||||
* httpbin_secure: fix redirect Location to have "https://"
|
||||
scheme (#62) - thanks @immerrr
|
||||
* Include regression tests in pypi tarball (#56) - thanks
|
||||
@kmosiejczuk
|
||||
- Add rpmlintrc filter for test certificates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 15 14:24:20 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Use noun phrase in summary.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 14 13:41:28 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update to 1.0.0:
|
||||
* Update included self-signed cert to include IP address in SAN (See #52).
|
||||
* Only use @pytest.fixture decorator once (thanks @hroncok)
|
||||
* Fix a few README typos (thanks @hemberger)
|
||||
- Use github tarball to get tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 2 17:43:14 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Revert last commit
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 19 17:12:15 UTC 2018 - toddrme2178@gmail.com
|
||||
|
||||
- Fix dependencies.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 13 18:23:24 UTC 2017 - arun@gmx.de
|
||||
|
||||
- removed 0001-Remove-Flask-and-decorator-from-install_requires.patch
|
||||
(included upstream)
|
||||
|
||||
- update to version 0.3.0:
|
||||
* Allow to run httpbin on fixed port using environment variables
|
||||
(thanks @hroncok)
|
||||
* Allow server to be thread.join()ed (thanks @graingert)
|
||||
* Add support for Python 3.6 (thanks @graingert)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 8 19:57:56 UTC 2017 - tbechtold@suse.com
|
||||
|
||||
- add 0001-Remove-Flask-and-decorator-from-install_requires.patch
|
||||
- cleanup Requires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun May 7 23:48:54 UTC 2017 - jengelh@inai.de
|
||||
|
||||
- Remove sensationalist language from description.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 4 18:00:56 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
- initial commit - test requirement of python-requests
|
||||
69
python-pytest-httpbin.spec
Normal file
69
python-pytest-httpbin.spec
Normal file
@@ -0,0 +1,69 @@
|
||||
#
|
||||
# spec file for package python-pytest-httpbin
|
||||
#
|
||||
# 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
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pytest-httpbin
|
||||
Version: 2.1.0
|
||||
Release: 0
|
||||
Summary: Web service for testing HTTP libraries
|
||||
License: MIT
|
||||
URL: https://github.com/kevin1024/pytest-httpbin
|
||||
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
|
||||
Requires: python-pytest
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
httpbin is a web service for testing HTTP libraries. It has several
|
||||
endpoints that can test parts needed in a HTTP library.
|
||||
|
||||
Pytest-httpbin creates a pytest "fixture" that is
|
||||
dependency-injected into your tests. It automatically starts up a HTTP server
|
||||
in a separate thread running httpbin and provides your test with the URL in the
|
||||
fixture.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n pytest_httpbin-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md DESCRIPTION.rst
|
||||
%{python_sitelib}/pytest_httpbin
|
||||
%{python_sitelib}/pytest_httpbin-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user