From 91cd5f3fe788cb46f4fa55e5a65b2bec030a2771 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 30 Aug 2023 00:07:23 +0300 Subject: [PATCH] Add support for Python 3.11 and 3.12 --- .github/workflows/publish-release.yml | 4 ++-- .github/workflows/run-tests.yml | 9 +++++++-- setup.py | 2 ++ tox.ini | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index f349b87..3577332 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -7,9 +7,9 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python 3.9 - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.9 - name: Install upload dependencies diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 5928718..613e409 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -23,14 +23,19 @@ jobs: tox-env: py39 - python-version: "3.10" tox-env: py310 + - python-version: "3.11" + tox-env: py311 + - python-version: "3.12" + tox-env: py312 - python-version: "pypy3" tox-env: pypy3 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install test dependencies run: | python -m pip install --upgrade pip setuptools diff --git a/setup.py b/setup.py index 4d15d6b..0a4c118 100644 --- a/setup.py +++ b/setup.py @@ -63,6 +63,8 @@ def readall(path): "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], diff --git a/tox.ini b/tox.ini index fa7dd23..1e81f3d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=py27,py34,py35,py36,py37,py38,py39,py310,pypy,pypy3,docs,readme,black +envlist=py{27,34,35,36,37,38,39,310,311,312,py,py3},docs,readme,black [testenv] description=run test on {basepython}