From a44875f4baef1a11b0fb9ddeec5ce0f95afd9bb2 Mon Sep 17 00:00:00 2001 From: Tsuyoshi Hombashi Date: Sat, 10 Jun 2023 22:22:17 +0900 Subject: [PATCH] Add support for Python 3.11 --- .github/workflows/lint_and_test.yml | 2 +- pyproject.toml | 2 +- setup.py | 1 + tox.ini | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint_and_test.yml b/.github/workflows/lint_and_test.yml index 842d257..3c42c15 100644 --- a/.github/workflows/lint_and_test.yml +++ b/.github/workflows/lint_and_test.yml @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', 'pypy-3.8'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.8'] os: [ubuntu-latest, macos-latest, windows-latest] timeout-minutes: 20 diff --git a/pyproject.toml b/pyproject.toml index 625494b..7d3e0b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ exclude = ''' )/ | docs/conf.py ''' -target-version = ['py37', 'py38', 'py39', 'py310'] +target-version = ['py37', 'py38', 'py39', 'py310', 'py311'] [tool.isort] known_third_party = [ diff --git a/setup.py b/setup.py index 5a6a52c..2b82abc 100644 --- a/setup.py +++ b/setup.py @@ -86,6 +86,7 @@ def get_release_command_class() -> Dict[str, Type[setuptools.Command]]: "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", diff --git a/tox.ini b/tox.ini index 98f989a..efd31a7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{37,38,39,310} + py{37,38,39,310,311} pypy3 build cov