From a81f50079911a91855884c928683fe96de46d4bce87ff02a3a42a6e19edcb3ff Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 13 Jan 2024 20:23:34 +0000 Subject: [PATCH 1/5] - update to 3.12.2: * Pook is now compatible with modern Python versions * Excluding venvs from dist packages OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=73 --- mocket-3.12.0.tar.gz | 3 --- mocket-3.12.2.tar.gz | 3 +++ python-mocket.changes | 9 ++++++++- python-mocket.spec | 4 ++-- 4 files changed, 13 insertions(+), 6 deletions(-) delete mode 100644 mocket-3.12.0.tar.gz create mode 100644 mocket-3.12.2.tar.gz diff --git a/mocket-3.12.0.tar.gz b/mocket-3.12.0.tar.gz deleted file mode 100644 index 745f8c6..0000000 --- a/mocket-3.12.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6ebbc15b04d64f617fbac54146bef0cfd2f491cb785f515d765e26bb92d410d0 -size 591080 diff --git a/mocket-3.12.2.tar.gz b/mocket-3.12.2.tar.gz new file mode 100644 index 0000000..fea97cd --- /dev/null +++ b/mocket-3.12.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04df52e7f9a4bbe1d3d6f825ca86e01d93d6b18d32bdb7d07e931150aae72504 +size 70781 diff --git a/python-mocket.changes b/python-mocket.changes index e752a31..3fc0307 100644 --- a/python-mocket.changes +++ b/python-mocket.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Jan 13 20:23:20 UTC 2024 - Dirk Müller + +- update to 3.12.2: + * Pook is now compatible with modern Python versions + * Excluding venvs from dist packages + ------------------------------------------------------------------- Fri Dec 29 16:14:00 UTC 2023 - Antonio Larrosa @@ -364,7 +371,7 @@ Tue Aug 11 07:17:16 UTC 2020 - Benjamin Greiner * This version ships the change to support the libmagic wrapper distributed with file's command. -------------------------------------------------------------------- +------------------------------------------------------------------- Tue Aug 11 07:08:04 UTC 2020 - Tomáš Chvátal - Switch to multibuild as we create cycle with python-pook otherwise diff --git a/python-mocket.spec b/python-mocket.spec index 7e03e57..9ee35ec 100644 --- a/python-mocket.spec +++ b/python-mocket.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -27,7 +27,7 @@ %{?sle15_python_module_pythons} Name: python-mocket%{psuffix} -Version: 3.12.0 +Version: 3.12.2 Release: 0 Summary: Python socket mock framework License: BSD-3-Clause From 1016c0c1e907c74057ace80d7e44cbc5bb133eb8f9bea271e2331d4806a812d9 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 20 Jan 2024 19:40:59 +0000 Subject: [PATCH 2/5] - update to 3.12.3: * Fixes for allowing making a mixture of unmocked and mocked HTTPS requests using aiohttp * Merging external contribution * Adding testcase for proving #209 was fixed OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=74 --- mocket-3.12.2.tar.gz | 3 --- mocket-3.12.3.tar.gz | 3 +++ python-mocket.changes | 9 +++++++++ python-mocket.spec | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) delete mode 100644 mocket-3.12.2.tar.gz create mode 100644 mocket-3.12.3.tar.gz diff --git a/mocket-3.12.2.tar.gz b/mocket-3.12.2.tar.gz deleted file mode 100644 index fea97cd..0000000 --- a/mocket-3.12.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:04df52e7f9a4bbe1d3d6f825ca86e01d93d6b18d32bdb7d07e931150aae72504 -size 70781 diff --git a/mocket-3.12.3.tar.gz b/mocket-3.12.3.tar.gz new file mode 100644 index 0000000..c73fc75 --- /dev/null +++ b/mocket-3.12.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5dc7a2d3c28cf1b87b114a54e9190f8fd9bd2087eb9f1f9f14d61329860eaa86 +size 71386 diff --git a/python-mocket.changes b/python-mocket.changes index 3fc0307..3eb9cab 100644 --- a/python-mocket.changes +++ b/python-mocket.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sat Jan 20 19:40:29 UTC 2024 - Dirk Müller + +- update to 3.12.3: + * Fixes for allowing making a mixture of unmocked and mocked + HTTPS requests using aiohttp + * Merging external contribution + * Adding testcase for proving #209 was fixed + ------------------------------------------------------------------- Sat Jan 13 20:23:20 UTC 2024 - Dirk Müller diff --git a/python-mocket.spec b/python-mocket.spec index 9ee35ec..b7b718f 100644 --- a/python-mocket.spec +++ b/python-mocket.spec @@ -27,7 +27,7 @@ %{?sle15_python_module_pythons} Name: python-mocket%{psuffix} -Version: 3.12.2 +Version: 3.12.3 Release: 0 Summary: Python socket mock framework License: BSD-3-Clause From c74ba86073cb93fa33af06565e43e528f109c43e643d7866666782c39ea403af Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Mon, 22 Jan 2024 08:39:09 +0000 Subject: [PATCH 3/5] add psutil to test requirements OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=75 --- python-mocket.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-mocket.spec b/python-mocket.spec index b7b718f..c227008 100644 --- a/python-mocket.spec +++ b/python-mocket.spec @@ -54,6 +54,7 @@ BuildRequires: %{python_module gevent} BuildRequires: %{python_module httptools} BuildRequires: %{python_module mocket = %{version}} BuildRequires: %{python_module pook >= 0.2.1} +BuildRequires: %{python_module psutil} BuildRequires: %{python_module pytest} BuildRequires: %{python_module redis} BuildRequires: %{python_module requests} From ff9eddff0f61fab098e3582c8f7e713973ad916dbe0f44cf746c9a3f1a12f3f5 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Mon, 22 Jan 2024 08:43:39 +0000 Subject: [PATCH 4/5] - add pytest-asyncio and psutil to test build requirements - skip test_truesendall_with_dump_from_recording as it requires internet connection OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=76 --- python-mocket.changes | 6 ++++++ python-mocket.spec | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-mocket.changes b/python-mocket.changes index 3eb9cab..01adaff 100644 --- a/python-mocket.changes +++ b/python-mocket.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 22 08:43:05 UTC 2024 - Sebastian Wagner + +- add pytest-asyncio and psutil to test build requirements +- skip test_truesendall_with_dump_from_recording as it requires internet connection + ------------------------------------------------------------------- Sat Jan 20 19:40:29 UTC 2024 - Dirk Müller diff --git a/python-mocket.spec b/python-mocket.spec index c227008..690e4a4 100644 --- a/python-mocket.spec +++ b/python-mocket.spec @@ -55,6 +55,7 @@ BuildRequires: %{python_module httptools} BuildRequires: %{python_module mocket = %{version}} BuildRequires: %{python_module pook >= 0.2.1} BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest} BuildRequires: %{python_module redis} BuildRequires: %{python_module requests} @@ -103,7 +104,7 @@ trap "kill $victims || true" EXIT sleep 2 # Checks the ability to record a real request and response. Not available inside obs. -donttest="test_asyncio_record_replay" +donttest="test_asyncio_record_replay or test_truesendall_with_dump_from_recording" # The reference recording has different headers in this case %if %{pkg_vcmp python311-httpx < 0.23} donttest="$donttest or test_truesendall_with_dump_from_recording" From c2aaaeb3a3db00d10cad58b02d0570c1ef6ae3bbdfaf776cdb27bc3af2294bf2 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Mon, 22 Jan 2024 08:54:37 +0000 Subject: [PATCH 5/5] - skip test_truesendall_with_dump_from_recording and test_no_dangling_fds as they require internet connection OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=77 --- python-mocket.changes | 2 +- python-mocket.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python-mocket.changes b/python-mocket.changes index 01adaff..979eb86 100644 --- a/python-mocket.changes +++ b/python-mocket.changes @@ -2,7 +2,7 @@ Mon Jan 22 08:43:05 UTC 2024 - Sebastian Wagner - add pytest-asyncio and psutil to test build requirements -- skip test_truesendall_with_dump_from_recording as it requires internet connection +- skip test_truesendall_with_dump_from_recording and test_no_dangling_fds as they require internet connection ------------------------------------------------------------------- Sat Jan 20 19:40:29 UTC 2024 - Dirk Müller diff --git a/python-mocket.spec b/python-mocket.spec index 690e4a4..f591b88 100644 --- a/python-mocket.spec +++ b/python-mocket.spec @@ -104,7 +104,7 @@ trap "kill $victims || true" EXIT sleep 2 # Checks the ability to record a real request and response. Not available inside obs. -donttest="test_asyncio_record_replay or test_truesendall_with_dump_from_recording" +donttest="test_asyncio_record_replay or test_truesendall_with_dump_from_recording or test_no_dangling_fds" # The reference recording has different headers in this case %if %{pkg_vcmp python311-httpx < 0.23} donttest="$donttest or test_truesendall_with_dump_from_recording"