Skip to content

Commit bc748ae

Browse files
committed
fix(aiohttp): require a Python 3.14-compatible aiohttp floor
aiohttp 3.9 is the supported floor, but it does not run on Python 3.14: 3.14 rejects break/continue/return inside a finally block, a pattern aiohttp used until 3.13, so aiohttp 3.9 raises SyntaxError on import there. Split the floor by interpreter — keep >=3.9 below 3.14 and require >=3.13 (the first release with a 3.14 wheel) on 3.14 and newer — so the oldest-supported-dependency resolution resolves to a working aiohttp on every supported Python.
1 parent b71e6f7 commit bc748ae

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

packages/dexpace-sdk-http-aiohttp/pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ classifiers = [
2727
]
2828
dependencies = [
2929
"dexpace-sdk-core>=0.1,<0.2",
30-
"aiohttp>=3.9,<4.0",
30+
# aiohttp 3.9 is the supported floor, but it does not run on Python 3.14
31+
# (3.14 rejects `break`/`continue`/`return` inside a `finally` block, which
32+
# aiohttp used until 3.13). Require the first aiohttp with a 3.14 wheel there.
33+
"aiohttp>=3.9,<4.0; python_version < '3.14'",
34+
"aiohttp>=3.13,<4.0; python_version >= '3.14'",
3135
]
3236

3337
[project.urls]

uv.lock

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)