Skip to content

Commit 247fb17

Browse files
committed
A workaround for aiohttp lacking a native 3.12 wheel
1 parent f23f2ff commit 247fb17

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Install Python Deps
5151
if: steps.release.outputs.version == 0
5252
run: |
53-
pip install -e .[test] --no-cache-dir
53+
pip install -e .[test]
5454
5555
- name: Test
5656
if: steps.release.outputs.version == 0

setup.py

+9-1
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)