Skip to content

Commit ebd1448

Browse files
committed
Aworkaround for aiohttp lacking a native 3.12 wheel
1 parent f23f2ff commit ebd1448

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

setup.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
# pycodestyle is a dependency of flake8, but it must be frozen because
2929
# their combination breaks too often
3030
# (example breakage: https://gitlab.com/pycqa/flake8/issues/427)
31-
'aiohttp>=3.8.1',
3231
'flake8~=5.0',
3332
'psutil',
3433
'pycodestyle~=2.9.0',
@@ -37,6 +36,15 @@
3736
CYTHON_DEPENDENCY,
3837
]
3938

39+
if vi < (3, 12):
40+
# XXX Revert this change later.
41+
#
42+
# Python 3.12 is new and there's no aiohttp wheel for it yet.
43+
# And pip helfully fails on building a wheel for it and I've
44+
# no idea how to disable that.
45+
TEST_DEPENDENCIES += ['aiohttp>=3.8.1']
46+
47+
4048
# Dependencies required to build documentation.
4149
DOC_DEPENDENCIES = [
4250
'Sphinx~=4.1.2',

0 commit comments

Comments
 (0)