Skip to content

Commit bd6f2ef

Browse files
committed
global: add Python 3.12 support
Updated setup.py metadata and added 3.12 jobs to CI to ensure things work. Anacanda didn't work for some reason. So I didn't add 3.12 builds to it.
1 parent cfbd3e7 commit bd6f2ef

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- '3.9'
1818
- '3.10'
1919
- '3.11'
20+
- '3.12'
2021
arch:
2122
- 'x86'
2223
- 'x64'

.github/workflows/typing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
- '3.9'
1414
- '3.10'
1515
- '3.11'
16+
- '3.12'
1617
runs-on: 'ubuntu-22.04'
1718
steps:
1819
- name: Set up Python

.github/workflows/wheel.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- 'cp39-cp39'
1919
- 'cp310-cp310'
2020
- 'cp311-cp311'
21+
- 'cp312-cp312'
2122
runs-on: 'ubuntu-22.04'
2223
steps:
2324
- uses: actions/checkout@v4
@@ -44,6 +45,7 @@ jobs:
4445
- 'cp39-*'
4546
- 'cp310-*'
4647
- 'cp311-*'
48+
- 'cp312-*'
4749
arch: ['x86_64']
4850
include:
4951
- py: 'cp38-*'
@@ -54,6 +56,8 @@ jobs:
5456
arch: 'arm64'
5557
- py: 'cp311-*'
5658
arch: 'arm64'
59+
- py: 'cp312-*'
60+
arch: 'arm64'
5761
runs-on: 'macos-12'
5862
env:
5963
CIBW_ARCHS: ${{ matrix.arch }}
@@ -91,6 +95,7 @@ jobs:
9195
- '3.9'
9296
- '3.10'
9397
- '3.11'
98+
- '3.12'
9499
arch:
95100
- 'x86'
96101
- 'x64'

docs/news.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ Changes
8585
* ``pyproject.toml`` now declares a ``[build-system]`` section saying to build
8686
with setuptools.
8787
* CI now builds wheels with pip instead of ``setup.py`` directly.
88+
* Official support for CPython 3.12. Binary wheels for 3.12 are now published
89+
during releases. There were no meaningful code changes to support Python 3.12.
8890

8991
0.21.0 (released 2023-04-16)
9092
============================

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
"Programming Language :: Python :: 3.9",
142142
"Programming Language :: Python :: 3.10",
143143
"Programming Language :: Python :: 3.11",
144+
"Programming Language :: Python :: 3.12",
144145
],
145146
keywords=["zstandard", "zstd", "compression"],
146147
packages=["zstandard"],

0 commit comments

Comments
 (0)