From af95ab0fbf892a0b2d61f352f1ee934542c970b8aaecca9a5a9f72f183b7c5fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 13 Sep 2024 16:25:24 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-respx revision aee56fff349c40005e0c7439238f71e4 --- .gitattributes | 23 +++++++++++++ python-respx.changes | 78 ++++++++++++++++++++++++++++++++++++++++++++ python-respx.spec | 63 +++++++++++++++++++++++++++++++++++ respx-0.21.1.tar.gz | 3 ++ 4 files changed, 167 insertions(+) create mode 100644 .gitattributes create mode 100644 python-respx.changes create mode 100644 python-respx.spec create mode 100644 respx-0.21.1.tar.gz 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/python-respx.changes b/python-respx.changes new file mode 100644 index 0000000..0779d5a --- /dev/null +++ b/python-respx.changes @@ -0,0 +1,78 @@ +------------------------------------------------------------------- +Wed May 22 17:02:32 UTC 2024 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Sat Apr 20 07:48:17 UTC 2024 - Dirk Müller + +- update to 0.21.1: + * Fix `files` pattern not handling `str` and `BytesIO` + * Add support for `None` values in `data` pattern + +------------------------------------------------------------------- +Thu Mar 21 17:03:25 UTC 2024 - Dirk Müller + +- update to 0.21.0: + * Fix matching request data when files are provided + * Add support for data\_\_contains lookup + * Add `files` pattern to support matching on uploads + * Add `SetCookie` utility for easier mocking of response cookie + headers + * Enhance documentation on iterable side effects + * Enhance documentation on named routes and add tip about a + catch-all route + +------------------------------------------------------------------- +Tue Jan 9 22:11:30 UTC 2024 - Dirk Müller + +- update to 0.20.2: + * Better assertion output for `assert_all_called` + * Support for quoted path pattern matching + * Enable content\_\_contains pattern, thanks @rjprins + * Added initial `CONTRIBUTING.md`, thanks @morenoh149 + * Docs about retrieving mocked calls, thanks + * Docs about `Router.assert_all_called()`, thanks @BeyondEvil + for input +- drop use-real-ipv6-address.patch (upstream) + +------------------------------------------------------------------- +Fri Jun 16 06:03:28 UTC 2023 - Steve Kowalik + +- Add patch use-real-ipv6-address.patch: + * Use a real IPv6 address to avoid an address parsing exception + +------------------------------------------------------------------- +Mon Jan 16 11:33:19 UTC 2023 - Daniel Garcia + +- Update to 0.20.1 + * Support HTTPX 0.23.1, thanks @g-as for input (#223) + +------------------------------------------------------------------- +Wed Oct 12 15:57:25 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 0.20.0 + Changed + * Type Router.__getitem__ to not return optional routes, thanks @flaeppe (#216) + * Change Call.response to raise instead of returning optional response (#217) + * Change CallList.last to raise instead of return optional call (#217) + * Type M() to not return optional pattern, by introducing a Noop pattern (#217) + * Type Route.pattern to not be optional (#217) + Fixed + * Correct type hints for side effects (#217) + Added + * Runs mypy on both tests and respx (#217) + * Added nox test session for python 3.11 (#217) + * Added Call.has_response helper, now that .response raises (#217) + +------------------------------------------------------------------- +Mon Aug 22 07:35:00 UTC 2022 - Steve Kowalik + +- Run pytest with --asyncio-mode=auto due to new release of + pytest-asyncio. + +------------------------------------------------------------------- +Tue Aug 2 04:13:14 UTC 2022 - Steve Kowalik + +- Initial package for 0.19.2 + diff --git a/python-respx.spec b/python-respx.spec new file mode 100644 index 0000000..62fb000 --- /dev/null +++ b/python-respx.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-respx +# +# Copyright (c) 2024 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-respx +Version: 0.21.1 +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} +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: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Python library to mock httpx with request patterns and responses + +%prep +%autosetup -p1 -n respx-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest --asyncio-mode=auto + +%files %{python_files} +%license LICENSE.md +%doc README.md +%{python_sitelib}/respx-%{version}-py*.egg-info +%{python_sitelib}/respx + +%changelog diff --git a/respx-0.21.1.tar.gz b/respx-0.21.1.tar.gz new file mode 100644 index 0000000..2c1bac5 --- /dev/null +++ b/respx-0.21.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:965acc56112007665e1cbcba64e99505bd10e8aba2f41dddb51e7c909e618ea6 +size 432341