Skip to content

Commit

Permalink
Bump Python to 3.13 in GHA (#426)
Browse files Browse the repository at this point in the history
* Bump Python to 3.13 in GHA

* Try adding 3.13 as build target

* Install standard-aifc in 3.13+

* Fix pyproject.toml formatting

* Install standard-sunau
  • Loading branch information
josephine-wolf-oberholtzer authored Feb 9, 2025
1 parent bfd0b0b commit 636ccaf
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: workflow_dispatch

env:
SC_ORIGIN: https://github.com/supercollider/supercollider.git
SC_BRANCH: "3.12"
SC_BRANCH: "3.13"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
cache-dependency-path: "**/pyproject.toml"
cache: pip
python-version: "3.12"
python-version: "3.13"
- name: Install SuperCollider
uses: ./.github/actions/supercollider
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Get latest version
run: echo OLD_VERSION=$(gh release list -L 1 --json name | jq -r '.[0].name') >> $GITHUB_ENV
- name: Bump version file
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
python-version: ["3.13"]
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
python-version: ["3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down Expand Up @@ -106,13 +106,13 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
include:
# supercollider 3.13 doesn't want to build on macos-13 or higher
# - os: macos-13
# python-version: "3.12"
# python-version: "3.13"
- os: windows-latest
python-version: "3.12"
python-version: "3.13"
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
sudo apt-get install --yes espeak graphviz lame
elif [ "$RUNNER_OS" == "macOS" ]; then
brew update
brew install python@3.12 || true
brew install python@3.13 || true
brew install graphviz
elif [ "$RUNNER_OS" == "Windows" ]; then
choco install graphviz lame
Expand Down
12 changes: 8 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Artistic Software",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Multimedia :: Sound/Audio :: Analysis",
Expand All @@ -42,9 +43,11 @@ docs = [
"librosa",
"matplotlib",
"mypy",
"soxr==0.5.0.post1", # https://github.com/librosa/librosa/issues/1831#issuecomment-2176274560
"soxr",
"sphinx-immaterial",
"sphinxext-opengraph",
"standard-aifc; python_version >= '3.13'", # aifc removed in 3.13
"standard-sunau; python_version >= '3.13'", # sunau removed in 3.13
]
ipython = [
"jupyter",
Expand All @@ -67,7 +70,8 @@ test = [
"pytest-mock",
"pytest-rerunfailures",
"setuptools; python_version >= '3.12'",
"soxr==0.5.0.post1", # https://github.com/librosa/librosa/issues/1831#issuecomment-2176274560
"standard-aifc; python_version >= '3.13'", # aifc removed in 3.13
"standard-sunau; python_version >= '3.13'", # sunau removed in 3.13
"types-PyYAML",
"types-docutils",
]
Expand All @@ -78,10 +82,10 @@ documentation = "https://supriya-project.github.io/supriya"
repository = "https://github.com/supriya-project/supriya"

[tool.black]
target-version = ["py312"]
target-version = ["py313"]

[tool.cibuildwheel]
build = "cp39-* cp310-* cp311-* cp312-*"
build = "cp39-* cp310-* cp311-* cp312-* cp313-*"
test-command = [
"python -c 'from supriya.contexts import shm; print(shm.__file__)'",
"python -c 'from supriya.utils._intervals import IntervalTreeDriverEx'",
Expand Down

0 comments on commit 636ccaf

Please sign in to comment.