From 87d3d8a218e83065019edfa85b676d3f8d0857e9 Mon Sep 17 00:00:00 2001 From: plun1331 Date: Mon, 18 Dec 2023 21:27:35 -0800 Subject: [PATCH] feat: support python 3.12 (#2292) * feat: upgrade setuptools for 3.12 * ci: target 3.12 --- .github/workflows/check.yml | 4 ++-- .github/workflows/lint.yml | 4 ++-- .github/workflows/test.yml | 2 +- pyproject.toml | 5 +++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 84f6a9bf34..8462f34514 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" cache: "pip" cache-dependency-path: "requirements/dev.txt" - name: Install dependencies @@ -28,7 +28,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" cache: "pip" cache-dependency-path: "requirements/dev.txt" - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 44e5c35799..7a1908dea8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" cache: "pip" cache-dependency-path: "requirements/dev.txt" - name: Install dependencies @@ -34,7 +34,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" cache: "pip" cache-dependency-path: "requirements/dev.txt" - name: Install dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index effb760e9f..020847ffc1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] env: OS: ${{ matrix.os }} PYTHON: ${{ matrix.python-version }} diff --git a/pyproject.toml b/pyproject.toml index e58300e470..0f3af97474 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] requires = [ - "setuptools>=62.6,<66", + "setuptools>=62.6,<70", "setuptools-scm>=6.2,<8", ] build-backend = "setuptools.build_meta" @@ -24,6 +24,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Internet", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", @@ -65,7 +66,7 @@ voice = {file = "requirements/voice.txt"} [tool.setuptools_scm] [tool.black] -target-version = ['py38', 'py39', 'py310', 'py311'] +target-version = ['py38', 'py39', 'py310', 'py311', 'py312'] [tool.isort] profile = "black"