ignore DeprecationWarning: 'set_child_watcher' is deprecated as of Python 3.12

This commit is contained in:
Tomáš Hrnčiar 2023-05-15 16:31:03 +02:00
parent 6910f0c38e
commit 2df45d4f16
2 changed files with 31 additions and 0 deletions

View File

@ -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?= <thrnciar@redhat.com>
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

View File

@ -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