Compare commits

...

94 Commits
f27 ... rawhide

Author SHA1 Message Date
Tomáš Hrnčiar 2df45d4f16 ignore DeprecationWarning: 'set_child_watcher' is deprecated as of Python 3.12 2023-05-15 16:58:56 +02:00
Tomáš Hrnčiar 6910f0c38e Backport upstream patch to fix a test failing with python-yarl 1.9.2 2023-05-15 15:27:26 +02:00
Benjamin A. Beasley 30cd403d35 Update to 3.8.4 (close RHBZ#2169212) 2023-02-13 11:22:48 -05:00
Benjamin A. Beasley eba0e502aa Make three xfails non-strict (close RHBZ#2158175) 2023-01-20 11:10:47 -05:00
Fedora Release Engineering e297306d52 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 11:04:59 +00:00
Benjamin A. Beasley 22ba672e02 Stop patching out python-re-assert; it is now in EPEL9 2022-12-03 13:34:44 -05:00
Benjamin A. Beasley 0eae1566d9 Skip a test that leaks a socket file descriptor on 32-bit ARM 2022-11-03 07:57:40 -04:00
Benjamin A. Beasley 993a206d6d Drop conditionals for “speedups” extra
- These are not needed now that EPEL9 has python-aiodns
2022-10-29 11:22:22 -04:00
Benjamin A. Beasley 5781864988 Add conditionals for EPEL9 support 2022-10-15 08:18:45 -04:00
Benjamin A. Beasley 8da4100e97 Update License to SPDX 2022-10-15 08:16:08 -04:00
Benjamin A. Beasley 3fd5305210 Port to pyproject-rpm-macros
- Add metapackage for “speedups” extra
2022-10-15 08:16:06 -04:00
Tomáš Hrnčiar 4c165d745a Update to 3.8.3 2022-09-29 11:48:27 +02:00
Stephen Gallagher 70f433ae85 Rebuilt for llhttp soname bump
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2022-08-18 10:14:14 -04:00
Fedora Release Engineering 74018fa7a1 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 16:12:42 +00:00
Miro Hrončok 049602ac03 Python 3.11: Deselect fewer tests
This partially reverts commit 500b86a004.
2022-06-16 12:50:41 +02:00
Python Maint 8b31f62d1a Rebuilt for Python 3.11 2022-06-14 11:56:04 +02:00
Miro Hrončok 500b86a004 Python 3.11: Deselect some tests due to upstream issue #6757
https://github.com/aio-libs/aiohttp/issues/6757
2022-06-08 16:04:05 +02:00
Miro Hrončok 65a417e586 Stop using the cgi module deprecated in Python 3.11 2022-06-08 15:47:19 +02:00
Carl George f20d8182ad Add upstream patch for pytest 7 compatibility
Resolves: rhbz#2059944
2022-04-28 01:44:37 -05:00
Tomáš Hrnčiar fc32dac685 Remove Cython files to regenerate them 2022-02-17 11:48:18 +01:00
Fedora Release Engineering 77df1c1ede - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 10:12:33 +00:00
Benjamin A. Beasley 104027bdab Run the tests 2021-12-28 21:55:47 +01:00
Benjamin A. Beasley 767ad756c6 Unbundle llhttp 2021-12-24 14:14:58 -05:00
Benjamin A. Beasley 17a8bf379c Stop disabling debug packages 2021-12-24 14:03:09 -05:00
Fabian Affolter af1bb808fd Update to latest upstream release 3.8.1 2021-12-13 15:28:25 +01:00
Fedora Release Engineering 2ea56a7e24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 04:50:17 +00:00
Python Maint 0fe86855cf Rebuilt for Python 3.10 2021-06-04 10:43:07 +02:00
Fabian Affolter 40c30a5284
* Sat Feb 27 2021 Fabian Affolter <mail@fabian-affolter.ch> - 3.7.4-1
- Update to latest upstream release 3.7.4
2021-02-27 13:14:28 +01:00
Miro Hrončok 4f3de5e1e9 Allow installation with chardet 4 2021-02-04 10:59:41 +01:00
Fedora Release Engineering 1943a6c446 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 09:14:47 +00:00
Fabian Affolter 7ec3bc66d3
* Fri Dec 11 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.7.3-1
- Update to latest upstream release 3.7.3
2020-12-11 00:48:23 +01:00
Fabian Affolter 32175d0835
* Wed Dec 09 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.7.2-1
- Update to latest upstream release 3.7.2
2020-12-10 09:57:09 +01:00
Fabian Affolter 1485292086 Update patch 2020-10-26 09:08:33 +01:00
Fabian Affolter c8d48ef573 * Mon Oct 26 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.7.1-1
- Update to new upstream version 3.7.1
2020-10-26 08:54:45 +01:00
Fabian Affolter f1b2ea877d * Wed Oct 14 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.6.3-1
- Update to new upstream version 3.6.3
2020-10-14 22:57:27 +02:00
Fedora Release Engineering 688b746513 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 23:39:01 +00:00
Miro Hrončok 3ada522c7f Rebuilt for Python 3.9 2020-05-24 13:46:06 +02:00
Carl George 67855c61be Don't build for s390x on EL8 2020-04-08 00:20:17 -05:00
Carl George 199783ca79 Merge branch 'master' into epel8 2020-04-07 23:41:49 -05:00
Carl George 31b0a36237 Revert ""Adding package.cfg file""
This reverts commit 13c5619363.
2020-04-07 23:41:36 -05:00
Fedora Release Engineering 22e89fd48e - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 10:35:19 +00:00
Fabian Affolter 18fb05e0e5
* Fri Oct 25 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.6.2-1
- Update to new upstream version 3.6.2
2019-10-25 21:36:07 +02:00
Gwyn Ciesla 13c5619363 "Adding package.cfg file" 2019-10-08 08:23:35 -05:00
Fabian Affolter 0183a7e261
Ugly fix till upstream provides a solution 2019-09-21 19:12:16 +02:00
Fabian Affolter 732124e363
Update unbundling 2019-09-21 16:00:31 +02:00
Fabian Affolter 90d006bc7b
* Sat Sep 21 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.6.1-1
- Update to new upstream version 3.6.1
2019-09-21 14:38:46 +02:00
Fabian Affolter f082ceaa06
* Wed Sep 18 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.6.0-1
- Update to new upstream version 3.6.0
2019-09-21 14:26:38 +02:00
Miro Hrončok 0dae2adaef Rebuilt for Python 3.8 2019-08-19 09:01:53 +02:00
Fedora Release Engineering 4544f2fd21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 12:07:51 +00:00
Fabian Affolter 3a2b7b82c5
* Sat Jun 01 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.5.4-3
- Remove dep generator
2019-06-01 21:15:11 +02:00
Fedora Release Engineering ea526cbb30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 05:35:01 +00:00
Fabian Affolter e9ac7ebbc5
* Sat Jan 12 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.5.4-1
- Update to new upstream version 3.5.4
2019-01-12 20:37:56 +01:00
Fabian Affolter 105202943c
* Fri Jan 11 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.5.3-1
- Update to new upstream version 3.5.3
2019-01-11 08:53:46 +01:00
Fabian Affolter 9312eed4b4
* Thu Jan 10 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.5.2-1
- Update to new upstream version 3.5.2
2019-01-10 17:23:51 +01:00
Fabian Affolter 53584b9c07
* Wed Dec 26 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.5.1-1
- Update to new upstream version 3.5.1
2018-12-25 23:57:53 +01:00
Fabian Affolter ee82022361
UPdate changelog 2018-09-06 08:06:15 +02:00
Fabian Affolter e5bac19f4e
* Thu Sep 06 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.4.4-3
- Update to new upstream version 3.4.4 (rhbz#1625634)
2018-09-06 08:05:50 +02:00
Igor Gnatenko 3d504fe4b8
Update to 3.4.3
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-09-05 09:30:12 +02:00
Igor Gnatenko 670d427274
Update to 3.4.2
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-09-02 09:03:17 +02:00
Igor Gnatenko d390a5e4b9
Unbundle http-parser
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-08-27 20:33:32 +02:00
Fabian Affolter 404591c9dd
Revert changes 2018-08-27 13:06:35 +02:00
Fabian Affolter 1016ced9b5
Update source 2018-08-27 13:01:23 +02:00
Fabian Affolter d60cbd53d8
Merge branch 'master' of ssh://pkgs.fedoraproject.org/rpms/python-aiohttp 2018-08-27 12:53:04 +02:00
Fabian Affolter 63d33ac307
* Mon Aug 27 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.4.0-2
- Fix rhbz#1622310
2018-08-27 12:50:45 +02:00
Igor Gnatenko acba7d2302
Recommend aiodns
It's much faster with it ;)

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-08-25 20:56:13 +02:00
Fabian Affolter f787b32482
* Sat Aug 25 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.4.0-1
- Update to new upstream version 3.4.0
2018-08-25 14:11:22 +02:00
Fedora Release Engineering fbbf801b08 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 23:25:27 +00:00
Miro Hrončok f3c01dc038 Rebuilt for Python 3.7 2018-06-19 10:53:36 +02:00
Fabian Affolter ceb681ed26
* Tue Jun 12 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.3.2-1
- Update to new upstream version 3.3.2
2018-06-12 19:12:45 +02:00
Fabian Affolter 18092f9aa5
* Wed Jun 06 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.3.1-1
- Update to new upstream version 3.3.1
2018-06-06 15:18:08 +02:00
Fabian Affolter 59e8f7417d
* Fri Jun 01 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.3.0-1
- Update to new upstream version 3.3.0 (rhbz#1585170)
2018-06-01 14:18:01 +02:00
Fabian Affolter 9f7e6acbd1
* Thu May 10 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.2.1-1
- Update to new upstream version 3.2.1 (rhbz#1576796)
2018-05-10 15:57:39 +02:00
Fabian Affolter 129cec6070
* Mon May 07 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.2.0-1
- Update to new upstream version 3.2.0 (rhbz#1575435)
2018-05-07 08:55:35 +02:00
Fabian Affolter c4ec5b6c20
* Sat Apr 14 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.1.3-1
- Update to new upstream version 3.1.3 (rhbz#1567093)
2018-04-14 15:03:54 +02:00
Fabian Affolter ef9c922a98
* Fri Apr 06 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.1.2-1
- Update to new upstream version 3.1.2
2018-04-06 09:22:59 +02:00
Fabian Affolter 1f88f746d5
* Tue Mar 27 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.1.1-1
- Update to new upstream version 3.1.1
2018-03-27 21:13:11 +02:00
Fabian Affolter 58d60f3908
* Fri Mar 23 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.1.0-1
- Update to new upstream version 3.1.0
2018-03-23 08:37:46 +01:00
Fabian Affolter 5f8a562ca4
* Thu Mar 15 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.9-1
- Update to new upstream version 3.0.9 (rhbz#1556612)
2018-03-15 08:17:26 +01:00
Fabian Affolter 518cbea1ec
* Tue Mar 13 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.8-1
- Update to new upstream version 3.0.8
2018-03-13 11:44:37 +01:00
Fabian Affolter 3c9d48b3d9
* Fri Mar 09 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.7-1
- Update to new upstream version 3.0.7 (rhbz#1548601)
2018-03-09 07:34:42 +01:00
Fabian Affolter 50846da552
* Tue Mar 06 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.6-1
- Update to new upstream version 3.0.6 (rhbz#1548601)
2018-03-06 20:55:33 +01:00
Fabian Affolter 50df1a6ad3
* Wed Feb 28 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.5-1
- Update to new upstream version 3.0.5 (rhbz#1548601)
2018-02-28 06:25:10 +01:00
Fabian Affolter 67da462cd2
* Mon Feb 12 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.1-1
- Update to new upstream version 3.0.1
2018-02-12 20:12:31 +01:00
Fabian Affolter a19a7e8f58
* Mon Feb 12 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.0-1
- Update to new upstream version 3.0.0 (rhbz#1544413)
2018-02-12 13:34:46 +01:00
Fedora Release Engineering 61a12ae20a - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 06:36:14 +00:00
Fabian Affolter 3491db224c
* Fri Feb 02 2018 Fabian Affolter <mail@fabian-affolter.ch> - 2.3.10-1
- Update to new upstream version 2.3.10 (rhbz#1541369)
2018-02-02 15:11:12 +01:00
Igor Gnatenko 1d1cfaf2f5
fix syntax
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2018-01-19 17:08:12 +01:00
Igor Gnatenko 4939737e68
Enable usage of dependency generator
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2018-01-19 17:03:58 +01:00
Igor Gnatenko 0b35721cb7 Update to 2.3.9
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2018-01-17 15:28:29 +01:00
Fabian Affolter cc6bb70184
* Mon Jan 15 2018 Fabian Affolter <mail@fabian-affolter.ch> - 2.3.8-1
- Update to new upstream version 2.3.8
2018-01-17 13:44:28 +01:00
Fabian Affolter 1319181ef0
* Wed Dec 27 2017 Fabian Affolter <mail@fabian-affolter.ch> - 2.3.7-1
- Update to new upstream version 2.3.7 (rhbz#1529275)
2017-12-27 15:47:59 +01:00
Fabian Affolter 5ea64075cb
* Mon Dec 04 2017 Fabian Affolter <mail@fabian-affolter.ch> - 2.3.6-1
- Update to new upstream version 2.3.6
2017-12-04 22:04:41 +01:00
Fabian Affolter f6e80079ac
* Fri Dec 01 2017 Fabian Affolter <mail@fabian-affolter.ch> - 2.3.5-1
- Update to new upstream version 2.3.5
2017-12-01 11:11:17 +01:00
Fabian Affolter 8c9d70736b
* Fri Nov 17 2017 Fabian Affolter <mail@fabian-affolter.ch> - 2.3.3-1
- Update to new upstream version 2.3.3 (rhbz#1514434)
2017-11-17 15:10:56 +01:00
7 changed files with 565 additions and 31 deletions

43
.gitignore vendored
View File

@ -30,3 +30,46 @@
/aiohttp-2.3.0.tar.gz
/aiohttp-2.3.1.tar.gz
/aiohttp-2.3.2.tar.gz
/aiohttp-2.3.3.tar.gz
/aiohttp-2.3.5.tar.gz
/aiohttp-2.3.6.tar.gz
/aiohttp-2.3.7.tar.gz
/aiohttp-2.3.8.tar.gz
/aiohttp-2.3.9.tar.gz
/aiohttp-2.3.10.tar.gz
/aiohttp-3.0.0.tar.gz
/aiohttp-3.0.1.tar.gz
/aiohttp-3.0.5.tar.gz
/aiohttp-3.0.6.tar.gz
/aiohttp-3.0.7.tar.gz
/aiohttp-3.0.8.tar.gz
/aiohttp-3.0.9.tar.gz
/aiohttp-3.1.0.tar.gz
/aiohttp-3.1.1.tar.gz
/aiohttp-3.1.2.tar.gz
/aiohttp-3.1.3.tar.gz
/aiohttp-3.2.0.tar.gz
/aiohttp-3.2.1.tar.gz
/aiohttp-3.3.0.tar.gz
/aiohttp-3.3.1.tar.gz
/aiohttp-3.3.2.tar.gz
/aiohttp-3.4.0.tar.gz
/aiohttp-3.4.2.tar.gz
/aiohttp-3.4.3.tar.gz
/aiohttp-3.4.4.tar.gz
/aiohttp-3.5.1.tar.gz
/aiohttp-3.5.2.tar.gz
/aiohttp-3.5.3.tar.gz
/aiohttp-3.5.4.tar.gz
/aiohttp-3.6.0.tar.gz
/aiohttp-3.6.1.tar.gz
/aiohttp-3.6.2.tar.gz
/aiohttp-3.6.3.tar.gz
/aiohttp-3.7.1.tar.gz
/aiohttp-3.7.2.tar.gz
/aiohttp-3.7.3.tar.gz
/aiohttp-3.7.4.tar.gz
/aiohttp-3.8.0.tar.gz
/aiohttp-3.8.1.tar.gz
/aiohttp-3.8.3.tar.gz
/aiohttp-3.8.4.tar.gz

View File

@ -0,0 +1,44 @@
From cd4824a001133fdb88eeb7346045a1165df7ce8a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <thrnciar@redhat.com>
Date: Wed, 16 Feb 2022 13:57:57 +0100
Subject: [PATCH 1/2] Unbundle llhttp
---
aiohttp/_cparser.pxd | 2 +-
setup.py | 6 +-----
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/aiohttp/_cparser.pxd b/aiohttp/_cparser.pxd
index 165dd61d..49055d6a 100644
--- a/aiohttp/_cparser.pxd
+++ b/aiohttp/_cparser.pxd
@@ -10,7 +10,7 @@ from libc.stdint cimport (
)
-cdef extern from "../vendor/llhttp/build/llhttp.h":
+cdef extern from "llhttp.h":
struct llhttp__internal_s:
int32_t _index
diff --git a/setup.py b/setup.py
index 38436806..bf4837a3 100644
--- a/setup.py
+++ b/setup.py
@@ -33,12 +33,8 @@ extensions = [
[
"aiohttp/_http_parser.c",
"aiohttp/_find_header.c",
- "vendor/llhttp/build/c/llhttp.c",
- "vendor/llhttp/src/native/api.c",
- "vendor/llhttp/src/native/http.c",
],
- define_macros=[("LLHTTP_STRICT_MODE", 0)],
- include_dirs=["vendor/llhttp/build"],
+ libraries=["llhttp"],
),
Extension("aiohttp._helpers", ["aiohttp/_helpers.c"]),
Extension("aiohttp._http_writer", ["aiohttp/_http_writer.c"]),
--
2.35.1

56
7178.patch Normal file
View File

@ -0,0 +1,56 @@
From 5718879cdb6a98bf48810a994b78bc02abaf3e07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Fri, 20 Jan 2023 15:34:21 +0100
Subject: [PATCH] Make the 3.10 related xfails non-strict
We see xpasses in Fedora with Python 3.11.1 or 3.10.9:
=================================== FAILURES ===================================
__________________________ test_default_loop[pyloop] ___________________________
[XPASS(strict)] No idea why ClientRequest() is constructed out of loop but it calls `asyncio.get_event_loop()`
____________________ TestStreamReader.test_ctor_global_loop ____________________
[XPASS(strict)] No idea why ClientRequest() is constructed out of loop but it calls `asyncio.get_event_loop()`
__________________________ test_set_loop_default_loop __________________________
[XPASS(strict)] No idea why _set_loop() is constructed out of loop but it calls `asyncio.get_event_loop()`
---
tests/test_client_request.py | 1 +
tests/test_streams.py | 1 +
tests/test_web_app.py | 1 +
3 files changed, 3 insertions(+)
diff --git a/tests/test_client_request.py b/tests/test_client_request.py
index c822d0c020..96db8ac3b8 100644
--- a/tests/test_client_request.py
+++ b/tests/test_client_request.py
@@ -280,6 +280,7 @@ def test_host_header_ipv6_with_port(make_request) -> None:
reason="No idea why ClientRequest() is constructed out of loop but "
"it calls `asyncio.get_event_loop()`",
raises=DeprecationWarning,
+ strict=False,
)
def test_default_loop(loop) -> None:
asyncio.set_event_loop(loop)
diff --git a/tests/test_streams.py b/tests/test_streams.py
index 5ddc4c94dd..ca59654e91 100644
--- a/tests/test_streams.py
+++ b/tests/test_streams.py
@@ -88,6 +88,7 @@ async def test_create_waiter(self) -> None:
reason="No idea why ClientRequest() is constructed out of loop but "
"it calls `asyncio.get_event_loop()`",
raises=DeprecationWarning,
+ strict=False,
)
def test_ctor_global_loop(self) -> None:
loop = asyncio.new_event_loop()
diff --git a/tests/test_web_app.py b/tests/test_web_app.py
index 7501fba032..1f9b5234c4 100644
--- a/tests/test_web_app.py
+++ b/tests/test_web_app.py
@@ -44,6 +44,7 @@ async def test_set_loop() -> None:
reason="No idea why _set_loop() is constructed out of loop "
"but it calls `asyncio.get_event_loop()`",
raises=DeprecationWarning,
+ strict=False,
)
def test_set_loop_default_loop() -> None:
loop = asyncio.new_event_loop()

View File

@ -0,0 +1,33 @@
From 8afa163fba77b38de1c2356668f08a7c3b9d0b58 Mon Sep 17 00:00:00 2001
From: danigm <daniel.garcia@suse.com>
Date: Mon, 15 May 2023 15:20:35 +0200
Subject: [PATCH] Update update_query calls to work with latest yarl
---
aiohttp/client.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/aiohttp/client.py b/aiohttp/client.py
index 0d0f4c1..56ec740 100644
--- a/aiohttp/client.py
+++ b/aiohttp/client.py
@@ -414,6 +414,7 @@ class ClientSession:
redirects = 0
history = []
version = self._version
+ params = params or {}
# Merge with default headers and transform to CIMultiDict
headers = self._prepare_headers(headers)
@@ -630,7 +631,7 @@ class ClientSession:
headers.pop(hdrs.AUTHORIZATION, None)
url = parsed_url
- params = None
+ params = {}
resp.release()
continue
--
2.40.1

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

@ -1,54 +1,386 @@
%global srcname aiohttp
%bcond_without tests
Name: python-%{srcname}
Version: 2.3.2
Release: 1%{?dist}
Name: python-aiohttp
Version: 3.8.4
Release: 2%{?dist}
Summary: Python HTTP client/server for asyncio
License: ASL 2.0
License: Apache-2.0
URL: https://github.com/aio-libs/aiohttp
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
# We use requirements/*.txt to generate test dependencies; these files are not
# present in the PyPI sdist, so we must use the GitHub archive.
Source0: %{url}/archive/v%{version}/aiohttp-%{version}.tar.gz
# downstream only patch
Patch: 0001-Unbundle-llhttp.patch
# [3.8] Make the 3.10 related xfails non-strict
# https://github.com/aio-libs/aiohttp/pull/7178
# Fixes:
# python-aiohttp: FTBFS in Fedora 36, 37, and 38/Rawhide
# https://bugzilla.redhat.com/show_bug.cgi?id=2158175
Patch: %{url}/pull/7178.patch
# Update update_query calls to work with latest yarl (1.9.2)
# Patch was inspired by this upstream commit:
# 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
%description
Python HTTP client/server for asyncio which supports both the client and the
server side of the HTTP protocol, client and server websocket, and webservers
with middlewares and pluggable routing.
BuildRequires: llhttp-devel
%package -n python3-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-Cython
BuildRequires: python3dist(cython)
Requires: python3-chardet
Requires: python3-multidict >= 3.0.0
Requires: python3-async-timeout >= 1.2.0
Requires: python3-yarl >= 0.11
%description -n python3-%{srcname}
%global common_description %{expand:
Python HTTP client/server for asyncio which supports both the client and the
server side of the HTTP protocol, client and server websocket, and webservers
with middlewares and pluggable routing.
with middlewares and pluggable routing.}
%description %{common_description}
%package -n python3-aiohttp
Summary: %{summary}
Recommends: python3-aiohttp+speedups
%description -n python3-aiohttp %{common_description}
%pyproject_extras_subpkg -n python3-aiohttp speedups
%prep
%autosetup -n %{srcname}-%{version}
%autosetup -p 1 -n aiohttp-%{version}
# Remove bundled llhttp
rm -rvf vendor/llhttp
# Disable test coverage reports
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
sed -r -i '/--cov=/d' setup.cfg
# We dont use %%tox because it just runs pytest with coverage analysis; rather
# than patching out the coverage invocation, we can run pytest directly. Still,
# it is useful to generate test dependencies from tox.ini.
# Upstream supports both brotlipy and Brotli, in theory; we have the latter.
sed -r -i \
-e 's/^[[:blank:]]*coverage$/# &/' \
-e 's/^[[:blank:]]*-e[[:blank:]]+\.$/# &/' \
-e 's/brotlipy/Brotli/' \
tox.ini
# Unpin dependency versions in requirements files, so we can use them to
# generate additional dependencies. Comment out a few optional test
# dependencies that are not yet packaged, as well as coverage dependencies.
sed -r -i \
-e 's/==[^#;]+//' \
-e 's/^(proxy[-\.]py|python-on-whales|wait-for-it)/# &/' \
-e 's/^(coverage|pytest-cov|mypy)/# &/' \
-e 's/^(setuptools-git)/# &/' \
requirements/*.txt
%if 0%{?el9}
# The python-cchardet package, specified for Python 3.9 and older, was never
# built for EPEL9, and was orphaned and retired in F37. It should be fine to
# patch this out of the “speedups” extra, as python-charset-normalizer should
# do the same job anyway.
sed -r -i 's/^[[:blank:]]*cchardet;/# &/' setup.cfg requirements/*.txt
%endif
# Remove files generated by Cython to regenerate them
grep -rl '/\* Generated by Cython' | xargs -r rm -v
%generate_buildrequires
%{pyproject_buildrequires \
requirements/base.txt %{?with_tests:requirements/test.txt -t}}
%build
%py3_build
# Recreate removed Cython files using commands extracted from the Makefile.
# We don't run make directly, as it pip-installs Cython.
#
# We don't need a real git checkout, but we do need a .git directory to help
# certain scripts find the root of the source tree.
mkdir -p .git
# See the aiohttp/_find_header.c target in the Makefile; this also generates
# _headers.pyi.
%{python3} tools/gen.py
# Now we can invoke Cython.
%{python3} -m cython -3 aiohttp/*.pyx -I aiohttp
# Now we need to remove the .git directory again, because its presence will
# lead the actual build astray, something like:
# Install submodules when building from git clone
# Hint:
# git submodule update --init
rm -rvf .git
# Now we can actually proceed with building the package.
%pyproject_wheel
%install
%py3_install
%pyproject_install
%pyproject_save_files aiohttp
%files -n python3-%{srcname}
%doc CHANGES.rst CONTRIBUTING.rst CONTRIBUTORS.txt HISTORY.rst README.rst
%license LICENSE.txt
%{python3_sitearch}/%{srcname}-*.egg-info/
%{python3_sitearch}/%{srcname}/
%check
%if %{with tests}
# Fixes problems importing compiled extensions from subprocesses.
export PYTHONSAFEPATH=1
# Setting PYTHONSAFEPATH works only for Python 3.11+, so we must skip any
# affected tests on older Pythons.
%if v"%{python3_version}" < v"3.11"
k="${k-}${k+ and }not test_no_warnings"
%endif
# test_proxy_functional.py requires python3dist(proxy-py)
ignore="${ignore-} --ignore=tests/test_proxy_functional.py"
# test_client_session_timeout_zero requires DNS
k="${k-}${k+ and }not test_client_session_timeout_zero"
# Unexplained flaky error during teardown:
# E RuntimeError: Event loop is closed
k="${k-}${k+ and }not test_static_file_if_match"
k="${k-}${k+ and }not test_static_file_if_none_match"
%ifarch %{arm32}
# Unexplained error during teardown:
# ResourceWarning: unclosed transport <_SelectorSocketTransport fd=15>
k="${k-}${k+ and }not test_tcp_connector_fingerprint_fail[pyloop]"
%endif
%pytest ${ignore-} -k "${k-}"
%else
%pyproject_check_import -e aiohttp.pytest_plugin
%endif
%files -n python3-aiohttp -f %{pyproject_files}
%doc CHANGES.rst
%doc HISTORY.rst
%doc README.rst
%changelog
* Mon May 15 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.8.4-2
- Backport upstream patch to fix a test failing with python-yarl 1.9.2
* Mon Feb 13 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.8.4-1
- Update to 3.8.4 (close RHBZ#2169212)
* Fri Jan 20 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.8.3-6
- Make three xfails non-strict (close RHBZ#2158175)
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Dec 03 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 3.8.3-4
- Stop patching out python-re-assert; it is now in EPEL9
* Thu Nov 03 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 3.8.3-3
- Skip a test that leaks a socket file descriptor on 32-bit ARM
* Sat Oct 08 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 3.8.3-2
- Port to pyproject-rpm-macros
- Add metapackage for “speedups” extra
- Update License to SPDX
- Add conditionals for EPEL9 support
* Mon Sep 26 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.8.3-1
- Update to 3.8.3
* Thu Aug 18 2022 Stephen Gallagher <sgallagh@redhat.com> - 3.8.1-8
- Rebuilt for llhttp soname bump
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jun 16 2022 Miro Hrončok <mhroncok@redhat.com> - 3.8.1-6
- Skip less tests, set the global event loop in _setupAsyncioRunner
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 3.8.1-5
- Rebuilt for Python 3.11
* Thu Apr 28 2022 Carl George <carl@george.computer> - 3.8.1-4
- Add upstream patch for pytest 7 compatibility
- Resolves: rhbz#2059944
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Dec 24 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 3.8.1-2
- Stop disabling debug packages
- Unbundle llhttp
- Run the tests
* Wed Dec 01 2021 Fabian Affolter <mail@fabian-affolter.ch> - 3.8.1-1
- Update to latest upstream release 3.8.1
* Thu Nov 25 2021 Fabian Affolter <mail@fabian-affolter.ch> - 3.8.0-1
- Update to latest upstream release 3.8.0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.7.4-2
- Rebuilt for Python 3.10
* Sat Feb 27 2021 Fabian Affolter <mail@fabian-affolter.ch> - 3.7.4-1
- Update to latest upstream release 3.7.4
* Thu Feb 04 2021 Miro Hrončok <mhroncok@redhat.com> - 3.7.3-3
- Allow installation with chardet 4
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Fri Dec 11 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.7.3-1
- Update to latest upstream release 3.7.3
* Wed Dec 09 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.7.2-1
- Update to latest upstream release 3.7.2
* Mon Oct 26 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.7.1-1
- Update to new upstream version 3.7.1
* Wed Oct 14 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.6.3-1
- Update to new upstream version 3.6.3
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-4
- Rebuilt for Python 3.9
* Wed Apr 08 2020 Carl George <carl@george.computer> - 3.6.2-3
- Don't build for s390x on EL8
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Oct 25 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.6.2-1
- Update to new upstream version 3.6.2
* Sat Sep 21 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.6.1-1
- Update to new upstream version 3.6.1
* Wed Sep 18 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.6.0-1
- Update to new upstream version 3.6.0
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.5.4-5
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Jun 01 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.5.4-3
- Remove dep generator
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jan 12 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.5.4-1
- Update to new upstream version 3.5.4
* Fri Jan 11 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.5.3-1
- Update to new upstream version 3.5.3
* Thu Jan 10 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.5.2-1
- Update to new upstream version 3.5.2
* Wed Dec 26 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.5.1-1
- Update to new upstream version 3.5.1
* Thu Sep 06 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.4.4-1
- Update to new upstream version 3.4.4 (rhbz#1625634)
* Wed Sep 05 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.4.3-1
- Update to 3.4.3
* Sun Sep 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.4.2-1
- Update to 3.4.2
* Mon Aug 27 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.4.0-4
- Unbundle http-parser (rhbz#1622508)
* Mon Aug 27 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.4.0-3
- Fix rhbz#1622310
* Sat Aug 25 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.4.0-2
- Recommend aiodns
* Sat Aug 25 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.4.0-1
- Update to new upstream version 3.4.0 (rhbz#1622288)
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.3.2-2
- Rebuilt for Python 3.7
* Tue Jun 12 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.3.2-1
- Update to new upstream version 3.3.2
* Wed Jun 06 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.3.1-1
- Update to new upstream version 3.3.1
* Fri Jun 01 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.3.0-1
- Update to new upstream version 3.3.0 (rhbz#1585170)
* Thu May 10 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.2.1-1
- Update to new upstream version 3.2.1 (rhbz#1576796)
* Mon May 07 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.2.0-1
- Update to new upstream version 3.2.0 (rhbz#1575435)
* Sat Apr 14 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.1.3-1
- Update to new upstream version 3.1.3 (rhbz#1567093)
* Fri Apr 06 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.1.2-1
- Update to new upstream version 3.1.2
* Tue Mar 27 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.1.1-1
- Update to new upstream version 3.1.1
* Fri Mar 23 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.1.0-1
- Update to new upstream version 3.1.0
* Thu Mar 15 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.9-1
- Update to new upstream version 3.0.9 (rhbz#1556612)
* Tue Mar 13 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.8-1
- Update to new upstream version 3.0.8
* Fri Mar 09 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.7-1
- Update to new upstream version 3.0.7 (rhbz#1548601)
* Tue Mar 06 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.6-1
- Update to new upstream version 3.0.6 (rhbz#1548601)
* Wed Feb 28 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.5-1
- Update to new upstream version 3.0.5 (rhbz#1548601)
* Mon Feb 12 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.1-1
- Update to new upstream version 3.0.1
* Mon Feb 12 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.0-1
- Update to new upstream version 3.0.0 (rhbz#1544413)
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Fri Feb 02 2018 Fabian Affolter <mail@fabian-affolter.ch> - 2.3.10-1
- Update to new upstream version 2.3.10 (rhbz#1541369)
* Fri Jan 19 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.3.9-2
- Enable usage of dependency generator
* Wed Jan 17 2018 Igor Gnatenko <ignatenko@redhat.com> - 2.3.9-1
- Update to 2.3.9
* Mon Jan 15 2018 Fabian Affolter <mail@fabian-affolter.ch> - 2.3.8-1
- Update to new upstream version 2.3.8
* Wed Dec 27 2017 Fabian Affolter <mail@fabian-affolter.ch> - 2.3.7-1
- Update to new upstream version 2.3.7 (rhbz#1529275)
* Mon Dec 04 2017 Fabian Affolter <mail@fabian-affolter.ch> - 2.3.6-1
- Update to new upstream version 2.3.6
* Fri Dec 01 2017 Fabian Affolter <mail@fabian-affolter.ch> - 2.3.5-1
- Update to new upstream version 2.3.5
* Fri Nov 17 2017 Fabian Affolter <mail@fabian-affolter.ch> - 2.3.3-1
- Update to new upstream version 2.3.3 (rhbz#1514434)
* Thu Nov 02 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.3.2-1
- Update to 2.3.2

View File

@ -1 +1 @@
SHA512 (aiohttp-2.3.2.tar.gz) = 54508655c3f6e409277120651537034fd0badb12c909c556778790a8b79bd856f72661d82eba45ccefd2ccd4f3afaf3830817bcce6ca1e89a924541ccc92bc12
SHA512 (aiohttp-3.8.4.tar.gz) = 8b39bb7eee19a38985ca0c3bf8d73458dce9af870ac067d5b9ee1957e88c57d75e185e34fc8fc751a78440dce0f4333a101be844969beaa4ea9cc3fa3e0d59d4