diff --git a/ignore-DeprecationWarning-set_child_watcher-is-depre.patch b/ignore-DeprecationWarning-set_child_watcher-is-depre.patch new file mode 100644 index 0000000..3dbc36b --- /dev/null +++ b/ignore-DeprecationWarning-set_child_watcher-is-depre.patch @@ -0,0 +1,26 @@ +From 58cc2a62cac52e742d19326f4c67331cc0634f67 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= +Date: Mon, 15 May 2023 16:22:25 +0200 +Subject: [PATCH] ignore DeprecationWarning 'set_child_watcher' is deprecated + as of Python 3.12 + +--- + setup.cfg | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/setup.cfg b/setup.cfg +index 48fbf70..0336cf8 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -144,6 +144,8 @@ filterwarnings = + # can be dropped with the next release of `certify`, specifically + # `certify > 2022.06.15`. + ignore:path is deprecated. Use files.. instead. Refer to https.//importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.:DeprecationWarning:certifi.core ++ ignore:'set_child_watcher' is deprecated as of Python 3.12 and will be removed in Python 3.14.:DeprecationWarning:: ++ + junit_suite_name = aiohttp_test_suite + norecursedirs = dist docs build .tox .eggs + minversion = 3.8.2 +-- +2.40.1 + diff --git a/python-aiohttp.spec b/python-aiohttp.spec index 47e0861..687aab1 100644 --- a/python-aiohttp.spec +++ b/python-aiohttp.spec @@ -25,6 +25,11 @@ Patch: %{url}/pull/7178.patch # https://github.com/aio-libs/aiohttp/commit/2be9318 Patch: Update-update_query-calls-to-work-with-latest-yarl.patch +# [3.12] Ignore DeprecationWarning: 'set_child_watcher' is deprecated as of Python 3.12 +# and will be removed in Python 3.14. +# Upstream report: https://github.com/aio-libs/aiohttp/issues/7291 +Patch: ignore-DeprecationWarning-set_child_watcher-is-depre.patch + BuildRequires: gcc BuildRequires: llhttp-devel