From 31978c38e920fefdc1b2f2dd7c0e2d74f5310604 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Thu, 5 Oct 2023 11:17:57 +0300 Subject: [PATCH] Add Python 3.12 support --- .github/workflows/build.yml | 25 +++++++++++++------------ CHANGES.rst | 2 +- appveyor.yml | 1 + setup.py | 1 + tox.ini | 11 ++++++++++- 5 files changed, 26 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e25e329..7bbbc24 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,19 +25,20 @@ jobs: - "3.9" - "3.10" - "3.11" + - "3.12" - "pypy-3.7" steps: - name: Git clone - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: "${{ matrix.python-version }}" - name: Pip cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ matrix.python-version }} @@ -54,14 +55,14 @@ jobs: run: coverage run testsuite.py - name: Check test coverage - run: coverage report -m --fail-under=100 + run: | + coverage report -m --fail-under=100 + coverage xml - name: Report to coveralls - run: coveralls - continue-on-error: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_SERVICE_NAME: github + uses: coverallsapp/github-action@v2 + with: + file: coverage.xml lint: name: ${{ matrix.toxenv }} @@ -77,15 +78,15 @@ jobs: steps: - name: Git clone - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Python ${{ env.default_python || '3.9' }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: "${{ env.default_python || '3.9' }}" - name: Pip cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ matrix.toxenv }}-${{ hashFiles('tox.ini') }} diff --git a/CHANGES.rst b/CHANGES.rst index 648d2f0..c9b9b7d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,7 @@ Changes 2.3.1 (unreleased) ------------------ -- Nothing changed yet. +- Add support for Python 3.12. 2.3.0 (2022-10-27) diff --git a/appveyor.yml b/appveyor.yml index dfb285b..95b13d4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -9,6 +9,7 @@ environment: - PYTHON: "C:\\Python39" - PYTHON: "C:\\Python310" - PYTHON: "C:\\Python311" + - PYTHON: "C:\\Python312" init: - "echo %PYTHON%" diff --git a/setup.py b/setup.py index f181840..3daff7d 100755 --- a/setup.py +++ b/setup.py @@ -43,6 +43,7 @@ def read(filename): '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 b4ccbd9..f488daf 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,15 @@ [tox] envlist = - py37,py38,py39,py310,py311,pypy3,flake8,isort,check-python-versions + py37 + py38 + py39 + py310 + py311 + py312 + pypy3 + flake8 + isort + check-python-versions [testenv] deps =