Skip to content

Commit ec7b3bc

Browse files
authored
Add support for Python 3.13 (#145)
Python core removed modules `aifc` and `sunau` in 3.13 as part of PEP-594 https://peps.python.org/pep-0594/ This change adds `standard-aifc` and `standard-sunau` as dependencies for python 3.13 and above. These are forks of the modules that had previously been in the python core. Also updates the test config to run against python 3.12 and python 3.13 Fixes #144
2 parents ef77a50 + bfee9a7 commit ec7b3bc

File tree

3 files changed

+115
-3
lines changed

3 files changed

+115
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python: ["3.9", "3.10", "3.11"]
12+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1313
steps:
1414
- uses: actions/checkout@v4
1515
- name: Install Python tools

poetry.lock

Lines changed: 110 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ classifiers = [
1717
"Programming Language :: Python :: 3.11",
1818
"License :: OSI Approved :: MIT License",
1919
]
20+
dependencies = [
21+
"standard-aifc; python_version >= '3.13'",
22+
"standard-sunau; python_version >= '3.13'",
23+
]
2024

2125
[project.urls]
2226
Homepage = "https://github.com/beetbox/audioread"

0 commit comments

Comments
 (0)