commit f1f2081eb7afbd56e94d60adb82d3dd0959f8e828c8f8732a82bec43e55baa6d Author: Adrian Schröter Date: Fri May 3 22:24:28 2024 +0200 Sync from SUSE:SLFO:Main python-pytest-httpbin revision 5a8013e2c924bb066e900db0fc20490f diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/pytest-httpbin-2.0.0.tar.gz b/pytest-httpbin-2.0.0.tar.gz new file mode 100644 index 0000000..0d2e2f3 --- /dev/null +++ b/pytest-httpbin-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e739cad9b8f8df58952df7329d9295fe17449d3a647f49c4ce634fd81d71b8e +size 16081 diff --git a/pytest-httpbin-rpmlintrc b/pytest-httpbin-rpmlintrc new file mode 100644 index 0000000..b55164b --- /dev/null +++ b/pytest-httpbin-rpmlintrc @@ -0,0 +1,2 @@ +# These are test certificates and keys for localhost only +addFilter("pem-certificate .*pytest_httpbin/certs") diff --git a/python-pytest-httpbin.changes b/python-pytest-httpbin.changes new file mode 100644 index 0000000..8e2291e --- /dev/null +++ b/python-pytest-httpbin.changes @@ -0,0 +1,104 @@ +------------------------------------------------------------------- +Tue Nov 7 19:42:56 UTC 2023 - Dirk Müller + +- 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 + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:44:03 UTC 2023 - Matej Cepl + +- 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 + +- 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 + +- 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 + +- 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 + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Thu Feb 14 13:41:28 UTC 2019 - Tomáš Chvátal + +- 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 diff --git a/python-pytest-httpbin.spec b/python-pytest-httpbin.spec new file mode 100644 index 0000000..30bb1d1 --- /dev/null +++ b/python-pytest-httpbin.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-pytest-httpbin +# +# Copyright (c) 2023 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.0.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 +Source99: pytest-httpbin-rpmlintrc +BuildRequires: %{python_module httpbin} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools} +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 +%python_build + +%install +%python_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" + +%files %{python_files} +%doc README.md DESCRIPTION.rst +%{python_sitelib}/pytest_httpbin +%{python_sitelib}/pytest_httpbin-%{version}*-info + +%changelog