Skip to content

Commit

Permalink
Add support for Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshilliard committed Oct 9, 2024
1 parent 0103e2a commit e2baf3e
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Lint

on:
- pull_request_target
- pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -23,15 +23,15 @@ jobs:
ref: ${{ github.event.pull_request.head.ref }}

- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install dependencies
run: pip install pytest ruff black

- name: Format with clang-format
uses: DoozyX/clang-format-lint-action@v0.11
uses: DoozyX/clang-format-lint-action@v0.18
with:
source: "./src"
extensions: "c"
Expand All @@ -46,7 +46,7 @@ jobs:
version: "~= 23.0"

- name: Format with ruff
uses: chartboost/ruff-action@v1
uses: astral-sh/ruff-action@v1
with:
src: "./src"
args: check --fix
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Check if release needed
id: release
uses: python-semantic-release/python-semantic-release@v8.7.2
uses: python-semantic-release/python-semantic-release@v9.10.0
with:
force: "patch"
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
git branch --set-upstream-to=${RELEASE_PR_BRANCH}
- name: Semantic release
uses: python-semantic-release/python-semantic-release@v8.7.2
uses: python-semantic-release/python-semantic-release@v9.10.0
if: steps.release.outputs.released == 'true'
with:
force: "patch"
Expand Down
26 changes: 25 additions & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ jobs:
python: "3.12"
python_id: cp312
platform_id: manylinux_x86_64
- os: ubuntu-22.04
python: "3.13"
python_id: cp313
platform_id: manylinux_x86_64

# 🐧 manylinux aarch64
- os: ubicloud-standard-2-arm
Expand All @@ -118,6 +122,10 @@ jobs:
python: "3.12"
python_id: cp312
platform_id: manylinux_aarch64
- os: ubicloud-standard-2-arm
python: "3.13"
python_id: cp313
platform_id: manylinux_aarch64

# 🐧 manylinux2014 PyPy x86_64
- os: ubuntu-22.04
Expand Down Expand Up @@ -156,6 +164,10 @@ jobs:
python: "3.12"
python_id: cp312
platform_id: musllinux_x86_64
- os: ubuntu-22.04
python: "3.13"
python_id: cp313
platform_id: musllinux_x86_64

# 🦀 musllinux ARM
- os: ubicloud-standard-2-arm
Expand All @@ -174,6 +186,10 @@ jobs:
python: "3.12"
python_id: cp312
platform_id: musllinux_aarch64
- os: ubicloud-standard-2-arm
python: "3.13"
python_id: cp313
platform_id: musllinux_aarch64

# 🍎 macOS x86_64
- os: macos-12-xl
Expand All @@ -192,6 +208,10 @@ jobs:
python: "3.12"
python_id: cp312
platform_id: macosx_x86_64
- os: macos-12-xl
python: "3.13"
python_id: cp313
platform_id: macosx_x86_64

# 🍎 macOS arm64 (Apple silicon)
# XXX: ☠️ https://github.com/actions/setup-python/issues/696
Expand All @@ -211,6 +231,10 @@ jobs:
python: "3.12"
python_id: cp312
platform_id: macosx_arm64
- os: flyci-macos-large-latest-m1
python: "3.13"
python_id: cp313
platform_id: macosx_arm64

steps:
- name: Checkout python-hyperscan
Expand All @@ -229,7 +253,7 @@ jobs:
# as it's already the default upstream version; so we only need to use
# it for other versions, and only on ARM.
- if: ${{ endsWith(matrix.os, '-arm') && !endsWith(matrix.python_id, '310') }}
uses: deadsnakes/action@v3.1.0
uses: deadsnakes/action@v3.2.0
with:
python-version: ${{ matrix.python }}

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,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",
"Environment :: Console",
"Intended Audience :: Developers",
Expand Down
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py35,py36,py37,py38
envlist = py35,py36,py37,py38,py39,py310,py311,py312,py313
skipsdist = true

[testenv]
Expand All @@ -13,6 +13,10 @@ basepython =
py36: python3.6
py37: python3.7
py38: python3.8
py310: python3.10
py311: python3.11
py312: python3.12
py313: python3.13

[testenv:docs]
basepython = python3.8
Expand Down

0 comments on commit e2baf3e

Please sign in to comment.