From ac28187bf4a4ac159651c73d3a50fe6d0f653eac Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Mon, 26 Aug 2024 19:07:54 +0200 Subject: [PATCH] Fully support Python 3.13, including CI testing and wheel building (#4436) --- .github/workflows/fuzz.yml | 3 ++- .github/workflows/pypi_upload.yml | 4 ++-- .github/workflows/release_tests.yml | 2 +- .github/workflows/test.yml | 3 ++- CHANGES.md | 2 ++ pyproject.toml | 1 + 6 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 42a399f..b3ea595 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -22,7 +22,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 @@ -31,6 +31,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install dependencies run: | diff --git a/.github/workflows/pypi_upload.yml b/.github/workflows/pypi_upload.yml index 26a2fb4..7b363d8 100644 --- a/.github/workflows/pypi_upload.yml +++ b/.github/workflows/pypi_upload.yml @@ -48,7 +48,7 @@ jobs: - uses: actions/checkout@v4 - name: Install cibuildwheel and pypyp run: | - pipx install cibuildwheel==2.19.2 + pipx install cibuildwheel==2.20.0 pipx install pypyp==1 - name: generate matrix if: github.event_name != 'pull_request' @@ -89,7 +89,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: pypa/cibuildwheel@v2.19.2 + - uses: pypa/cibuildwheel@v2.20.0 with: only: ${{ matrix.only }} diff --git a/.github/workflows/release_tests.yml b/.github/workflows/release_tests.yml index 192ba00..6d0af00 100644 --- a/.github/workflows/release_tests.yml +++ b/.github/workflows/release_tests.yml @@ -25,7 +25,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ["3.12"] + python-version: ["3.13"] os: [macOS-latest, ubuntu-latest, windows-latest] steps: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb6eb3f..0362087 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.9"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.9"] os: [ubuntu-latest, macOS-latest, windows-latest] steps: @@ -41,6 +41,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install tox run: | diff --git a/CHANGES.md b/CHANGES.md index af12df0..a83a4df 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,8 @@ +- Black now officially supports Python 3.13 (#4436) + ### Stable style diff --git a/pyproject.toml b/pyproject.toml index 30e59e1..aeab33f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,6 +60,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Quality Assurance", ]