Compare commits

1 Commits
main ... 1.1

4 changed files with 34 additions and 63 deletions

BIN
mocket-3.12.8.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
mocket-3.13.2.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,35 +1,3 @@
-------------------------------------------------------------------
Wed Oct 23 20:11:41 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.13.2:
* Test the plugin for `pook` separately
* Refactoring FakeSSLContext
* Increasing readability of Mocket core
* `aiohttp` reuses SSLContext instances created at import-time
- update to 3.13.1:
* No need to keep multiple dirs for tests
* Back to testing `doctest`
* Pinning the version of `aiohttp`
* Test with the official stable Python 3.13
* Switching to using `puremagic` for identifying MIME types
-------------------------------------------------------------------
Tue Oct 1 09:18:21 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Skip test failing with new aiohttp
-------------------------------------------------------------------
Thu Sep 26 08:25:18 UTC 2024 - Sebastian Wagner <sebix@sebix.at>
- update to version 3.13.0:
- Adding Python 3.13 support by @mindflayer in #242
-------------------------------------------------------------------
Tue Sep 3 07:23:27 UTC 2024 - Sebastian Wagner <sebix@sebix.at>
- Update to version 3.12.9:
* Replacing httptools with h11
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 4 08:17:14 UTC 2024 - Dirk Müller <dmueller@suse.com> Tue Jun 4 08:17:14 UTC 2024 - Dirk Müller <dmueller@suse.com>
@@ -154,14 +122,14 @@ Sun Jan 1 18:43:24 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Add missing fastapi test dependency - Add missing fastapi test dependency
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 23 18:47:07 UTC 2022 - Sebastian Wagner <sebix@sebix.at> Tue Aug 23 18:47:07 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 3.10.8: - update to version 3.10.8:
- Support for calls made by fastapi (#188) - Support for calls made by fastapi (#188)
* Introduce a `socket.socketpair()` function that acts as the real one * Introduce a `socket.socketpair()` function that acts as the real one
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 17 10:09:41 UTC 2022 - Sebastian Wagner <sebix@sebix.at> Wed Aug 17 10:09:41 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 3.10.7: - update to version 3.10.7:
- Adding support for `httpx` (#183) - Adding support for `httpx` (#183)
@@ -190,7 +158,7 @@ Tue May 17 13:29:27 UTC 2022 - pgajdos@suse.com
+ python-mocket-no-mock.patch + python-mocket-no-mock.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Apr 25 08:36:19 UTC 2022 - Sebastian Wagner <sebix@sebix.at> Mon Apr 25 08:36:19 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
- - Bump Mocket version - - Bump Mocket version
- MocketEntry.request_class str vs bytes (#177) - MocketEntry.request_class str vs bytes (#177)
@@ -233,7 +201,7 @@ Mon Apr 18 19:31:43 UTC 2022 - Ben Greiner <code@bnavigator.de>
Python 3.7 test is skipped by name globally) Python 3.7 test is skipped by name globally)
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jan 9 19:21:59 UTC 2022 - Sebastian Wagner <sebix@sebix.at> Sun Jan 9 19:21:59 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
- - Add Mocket "strict mode" (#171) - - Add Mocket "strict mode" (#171)
* Add Mocket "strict mode". * Add Mocket "strict mode".
@@ -249,7 +217,7 @@ Sun Jan 9 19:21:59 UTC 2022 - Sebastian Wagner <sebix@sebix.at>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jan 8 21:39:28 UTC 2022 - Sebastian Wagner <sebix@sebix.at> Sat Jan 8 21:39:28 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
- - Introducing `request_list()` method (#170) - - Introducing `request_list()` method (#170)
* Introducing `request_list()` method. * Introducing `request_list()` method.
@@ -262,7 +230,7 @@ Sat Jan 8 21:39:28 UTC 2022 - Sebastian Wagner <sebix@sebix.at>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 1 21:17:39 UTC 2021 - Sebastian Wagner <sebix@sebix.at> Wed Dec 1 21:17:39 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 3.10.2: - Update to version 3.10.2:
- Help the user to spot issues (#166) - Help the user to spot issues (#166)
@@ -291,7 +259,7 @@ Wed Dec 1 21:17:39 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- In PYPI the package is old and broken - In PYPI the package is old and broken
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Nov 27 10:12:44 UTC 2021 - Sebastian Wagner <sebix@sebix.at> Sat Nov 27 10:12:44 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 3.10.1: - Update to version 3.10.1:
- Multi `register()` (#159) - Multi `register()` (#159)
@@ -303,7 +271,7 @@ Sat Nov 27 10:12:44 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- In PYPI the package is old and broken - In PYPI the package is old and broken
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Sep 24 19:50:05 UTC 2021 - Sebastian Wagner <sebix@sebix.at> Fri Sep 24 19:50:05 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 3.10.0: - update to version 3.10.0:
- Fix for version number - Fix for version number
@@ -313,12 +281,12 @@ Fri Sep 24 19:50:05 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- Update main.yml - Update main.yml
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Sep 4 18:19:20 UTC 2021 - Sebastian Wagner <sebix@sebix.at> Sat Sep 4 18:19:20 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- remove obsolete kwsyntax.patch. - remove obsolete kwsyntax.patch.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Sep 4 18:10:11 UTC 2021 - Sebastian Wagner <sebix@sebix.at> Sat Sep 4 18:10:11 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 3.9.44: - Update to version 3.9.44:
- Update __init__.py - Update __init__.py
@@ -335,7 +303,7 @@ Thu Aug 5 15:22:22 UTC 2021 - Markéta Machová <mmachova@suse.com>
- Add kwsyntax.patch to fix test failure with new decorator. - Add kwsyntax.patch to fix test failure with new decorator.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jul 3 20:16:19 UTC 2021 - Sebastian Wagner <sebix@sebix.at> Sat Jul 3 20:16:19 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 3.9.42: - Update to version 3.9.42:
- Mock check_hostname everywhere (#152) - Mock check_hostname everywhere (#152)
@@ -343,7 +311,7 @@ Sat Jul 3 20:16:19 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
* Complete refactoring. * Complete refactoring.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 21 16:02:54 UTC 2021 - Sebastian Wagner <sebix@sebix.at> Fri May 21 16:02:54 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 3.9.41: - update to version 3.9.41:
- A few refactors. - A few refactors.
@@ -352,19 +320,19 @@ Fri May 21 16:02:54 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- Avoid decorator>=5 as dependency. (#149) - Avoid decorator>=5 as dependency. (#149)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 2 21:33:54 UTC 2021 - Sebastian Wagner <sebix@sebix.at> Tue Feb 2 21:33:54 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- disable test test_asyncio_record_replay as it requires DNS. - disable test test_asyncio_record_replay as it requires DNS.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jan 23 19:20:19 UTC 2021 - Sebastian Wagner <sebix@sebix.at> Sat Jan 23 19:20:19 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 3.9.40: - Update to version 3.9.40:
- Fix for asyncio.open_connection() (#144) - Fix for asyncio.open_connection() (#144)
- fix UT for 3.5 support - fix UT for 3.5 support
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jan 15 16:56:37 UTC 2021 - Sebastian Wagner <sebix@sebix.at> Fri Jan 15 16:56:37 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 3.9.39: - update to version 3.9.39:
- Use MocketSocket as context manager (#141) - Use MocketSocket as context manager (#141)
@@ -382,7 +350,7 @@ Fri Jan 15 16:56:37 UTC 2021 - Sebastian Wagner <sebix@sebix.at>
- Refactor. (#136) - Refactor. (#136)
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jan 3 10:37:41 UTC 2021 - Sebastian Wagner <sebix@sebix.at> Sun Jan 3 10:37:41 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 3.9.35: - update to version 3.9.35:
- Removing Python 2 compatibility layer (#134). - Removing Python 2 compatibility layer (#134).
@@ -407,7 +375,7 @@ Thu Dec 10 01:45:45 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
does not interfere with other packages does not interfere with other packages
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 9 20:23:21 UTC 2020 - Sebastian Wagner <sebix@sebix.at> Mon Nov 9 20:23:21 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 3.9.3: - Update to version 3.9.3:
* Fix for `.makefile()` as reported by @KyleKing. * Fix for `.makefile()` as reported by @KyleKing.
@@ -417,14 +385,14 @@ Mon Nov 9 20:23:21 UTC 2020 - Sebastian Wagner <sebix@sebix.at>
* Fix for Python 2. * Fix for Python 2.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Oct 11 07:03:02 UTC 2020 - Sebastian Wagner <sebix@sebix.at> Sun Oct 11 07:03:02 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 3.9.1: - Update to version 3.9.1:
- Multiple HTTP writes (#125) - Multiple HTTP writes (#125)
- Fix for #111. - Fix for #111.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Sep 26 07:39:57 UTC 2020 - Sebastian Wagner <sebix@sebix.at> Sat Sep 26 07:39:57 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 3.9.0: - Update to version 3.9.0:
- MockHTTP uses `http-parser` as parser - MockHTTP uses `http-parser` as parser
@@ -448,12 +416,12 @@ Tue Aug 11 07:08:04 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Switch to multibuild as we create cycle with python-pook otherwise - Switch to multibuild as we create cycle with python-pook otherwise
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Aug 8 13:00:29 UTC 2020 - Sebastian Wagner <sebix@sebix.at> Sat Aug 8 13:00:29 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Change requirements version specifier from == to >=. - Change requirements version specifier from == to >=.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jul 23 18:54:20 UTC 2020 - Sebastian Wagner <sebix@sebix.at> Thu Jul 23 18:54:20 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 3.8.6: - Update to version 3.8.6:
- No upstream changelog available - No upstream changelog available

View File

@@ -27,7 +27,7 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-mocket%{psuffix} Name: python-mocket%{psuffix}
Version: 3.13.2 Version: 3.12.8
Release: 0 Release: 0
Summary: Python socket mock framework Summary: Python socket mock framework
License: BSD-3-Clause License: BSD-3-Clause
@@ -40,9 +40,10 @@ BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-decorator >= 4 Requires: python-decorator >= 4
Requires: python-h11 Requires: python-httptools
Requires: python-puremagic Requires: python-python-magic >= 0.4.5
Requires: python-urllib3 >= 1.25.3 Requires: python-urllib3 >= 1.25.3
Suggests: python-pook >= 0.2.1
Suggests: python-xxhash Suggests: python-xxhash
BuildArch: noarch BuildArch: noarch
%if %{with test} %if %{with test}
@@ -52,6 +53,7 @@ BuildRequires: %{python_module fastapi}
BuildRequires: %{python_module gevent} BuildRequires: %{python_module gevent}
BuildRequires: %{python_module httptools} BuildRequires: %{python_module httptools}
BuildRequires: %{python_module mocket = %{version}} BuildRequires: %{python_module mocket = %{version}}
BuildRequires: %{python_module pook >= 0.2.1}
BuildRequires: %{python_module psutil} BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
@@ -70,7 +72,8 @@ included, with gevent/asyncio/SSL support.
%prep %prep
%autosetup -p1 -n mocket-%{version} %autosetup -p1 -n mocket-%{version}
sed -i 's/--cov[^ ]*//g' pyproject.toml #sed -i '/cov/ d' setup.cfg
#sed -i '/pipenv/ d' setup.py
%build %build
%if !%{with test} %if !%{with test}
@@ -106,9 +109,9 @@ donttest="test_asyncio_record_replay or test_truesendall_with_dump_from_recordin
%if %{pkg_vcmp python311-httpx < 0.23} %if %{pkg_vcmp python311-httpx < 0.23}
donttest="$donttest or test_truesendall_with_dump_from_recording" donttest="$donttest or test_truesendall_with_dump_from_recording"
%endif %endif
# fails with new incompatible aiohttp version https://github.com/mindflayer/python-mocket/issues/247 # these fail after the python 3.11 patches
donttest="$donttest or test_aiohttp" #donttest="$donttest or test_http_session or test_https_session or test_httprettish_session"
%pytest -rfEs -k "not ($donttest)" ${pytest_$python_ignore} tests %pytest -rfEs -k "not ($donttest)" ${pytest_$python_ignore}
%endif %endif
%if !%{with test} %if !%{with test}