From 464b389af77e514a6703534906ee845adc55a478 Mon Sep 17 00:00:00 2001 From: Joe Todd Date: Thu, 11 Apr 2024 08:51:16 +0100 Subject: [PATCH] Add official support for Python 3.12 --- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 12 ++++++------ pyproject.toml | 1 + tox.ini | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 38920b6..1813b15 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: flake8: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Lint the Python code uses: TrueBrain/actions-flake8@master with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a5d095b..63eb23c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,16 +15,16 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: | sudo apt-get update -y sudo apt-get install libsndfile1 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -42,9 +42,9 @@ jobs: macos: runs-on: macos-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.11 - name: Install dependencies @@ -58,7 +58,7 @@ jobs: windows: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - name: Check install diff --git a/pyproject.toml b/pyproject.toml index ece5d91..23a63f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Multimedia :: Sound/Audio", ] dependencies = ["cffi>=1.4.0", "numpy>=1.22", "SoundFile>=0.11"] diff --git a/tox.ini b/tox.ini index 7d87a70..9dfabc9 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38, py39, py310, py311 +envlist = py38, py39, py310, py311, py312 [testenv] deps = pytest==7.4.0