From cbc411583089ac2e1ee78471cdf3502e96ae02e7 Mon Sep 17 00:00:00 2001 From: Bart Feenstra Date: Sat, 8 Jul 2023 13:25:04 +0100 Subject: [PATCH] Add Python 3.12 compatibility. --- .github/workflows/test.yml | 7 +++++-- setup.py | 3 ++- tox.ini | 5 ++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9fb26a689..6fb855d7d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,6 +16,9 @@ jobs: strategy: matrix: include: + - name: 'Python 3.12' + os: ubuntu-latest + python: '3.12' - name: 'Python 3.11' os: ubuntu-latest python: '3.11' @@ -27,10 +30,10 @@ jobs: python: '3.9' - name: 'Mac OS' os: macos-latest - python: '3.11' + python: '3.12' - name: 'Windows' os: windows-latest - python: '3.11' + python: '3.12' steps: - name: Check out the source code diff --git a/setup.py b/setup.py index 899e8db0c..3fbe21d2f 100644 --- a/setup.py +++ b/setup.py @@ -27,6 +27,7 @@ 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Programming Language :: JavaScript', 'Operating System :: MacOS :: MacOS X', 'Operating System :: POSIX :: Linux', @@ -44,7 +45,7 @@ 'python_requires': '~= 3.9', 'install_requires': [ 'aiofiles ~= 23.1, >= 23.1.0', - 'aiohttp ~= 3.8, >= 3.8.1', + 'aiohttp == 3.9.0b0', 'babel ~= 2.12, >= 2.12.0', 'click ~= 8.1, >= 8.1.2', 'dill ~= 0.3, >= 0.3.6', diff --git a/tox.ini b/tox.ini index 95c96db1a..662ea5fd5 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py39, py310, py311 +envlist = py39, py310, py311, py312 skip_missing_interpreters = true [testenv] @@ -17,3 +17,6 @@ basepython = python3.10 [testenv:py311] basepython = python3.11 + +[testenv:py312] +basepython = python3.12