Skip to content

Commit

Permalink
Fix issue with Python 3.12 and aiohttp
Browse files Browse the repository at this point in the history
  • Loading branch information
sHedC committed Oct 29, 2023
1 parent 24597ff commit 7c496b6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
python-version: "3.11"

- name: Install dependencies
run: |
Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ classifiers = [
"Operating System :: OS Independent",
]
keywords = ["Mastertherm heatpump", "api", "client"]
dependencies = ["aiohttp>=3.8.5", "natsort>=8.3.1"]
requires-python = ">=3.9,<=3.11"
dependencies = [
"aiohttp==3.9.0b0;python_version>='3.12'",
"aiohttp==3.8.5;python_version<'3.12'",
"natsort>=8.3.1"
]
requires-python = ">=3.9,<=3.12"

[project.optional-dependencies]
dev = ["black", "bumpver", "isort", "pip-tools", "pytest"]
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
aiohttp>=3.8.5
aiohttp==3.9.0b0;python_version>='3.12'
aiohttp==3.8.5;python_version<'3.12'
build>=0.8.0
bumpver>=2023.1124
natsort>=8.3.1
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ forced_separate = tests
combine_as_imports = true

[mypy]
python_version = 3.10
python_version = 3.11
ignore_errors = true
follow_imports = silent
ignore_missing_imports = true
Expand Down

0 comments on commit 7c496b6

Please sign in to comment.