From 0d5a8c395744eff742d3f4cad8037cbd4f47ba9b Mon Sep 17 00:00:00 2001 From: David Seddon Date: Tue, 8 Oct 2024 14:49:50 +0100 Subject: [PATCH] Support Python 3.13 (#237) --- .github/workflows/main.yml | 6 +++--- .github/workflows/release.yml | 7 ++++--- CHANGELOG.rst | 1 + pyproject.toml | 1 + tox.ini | 4 +++- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ccc9ef19..952c4317 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,11 +15,11 @@ jobs: strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13-dev"] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} allow-prereleases: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3f88a4f2..d29eddc7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,11 +15,12 @@ jobs: name: Release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.x" + allow-prereleases: true - name: Install build run: "python3 -m pip install build --user" - name: Build a binary wheel and a source tarball @@ -28,4 +29,4 @@ jobs: if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.PYPI_API_TOKEN_IMPORT_LINTER }} \ No newline at end of file + password: ${{ secrets.PYPI_API_TOKEN_IMPORT_LINTER }} diff --git a/CHANGELOG.rst b/CHANGELOG.rst index fbed7454..bb55bd36 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,7 @@ latest ------ * Add support for wildcards in forbidden and independence contracts. +* Formally support Python 3.13. * Drop support for Python 3.8. 2.0 (2024-1-9) diff --git a/pyproject.toml b/pyproject.toml index 09843c27..928c650a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Utilities", ] diff --git a/tox.ini b/tox.ini index 5ea7d0ce..07e9b128 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ envlist = clean, check, docs, - py39,py310,py311,py312 + py39,py310,py311,py312,py313 report [testenv] @@ -13,6 +13,7 @@ basepython = py310: {env:TOXPYTHON:python3.10} py311: {env:TOXPYTHON:python3.11} py312: {env:TOXPYTHON:python3.12} + py313: {env:TOXPYTHON:python3.13} {clean,check,docs,report}: {env:TOXPYTHON:python3} setenv = PYTHONPATH={toxinidir}/tests @@ -67,3 +68,4 @@ python = 3.10: py310, report, check 3.11: py311, report, check, docs 3.12: py312, report + 3.13: py313, report