From 8b885dfef4679e575bba98ec0df6fcd7c30e6714 Mon Sep 17 00:00:00 2001 From: David Seddon Date: Mon, 8 Jan 2024 12:40:09 +0000 Subject: [PATCH] Add support for Python 3.12 --- CHANGELOG.rst | 1 + pyproject.toml | 1 + tox.ini | 8 +++++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d7650df6..38d6b2e3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,6 +8,7 @@ Unreleased * Allow configuring sibling layer independence. * Fix bug where a warning would be logged if a non-Python file with multiple dots in the filename was encountered. +* Formally add support for Python 3.12. 3.1 (2023-10-13) ---------------- diff --git a/pyproject.toml b/pyproject.toml index a18bb4ca..9b4fb8f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Rust", "Topic :: Utilities", diff --git a/tox.ini b/tox.ini index 654c96fa..54edd77c 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,7 @@ envlist = clean, check, docs, - {py38,py39,py310,py311}, + {py38,py39,py310,py311,py312}, report [testenv] @@ -12,6 +12,7 @@ basepython = py39: {env:TOXPYTHON:python3.9} py310: {env:TOXPYTHON:python3.10} py311: {env:TOXPYTHON:python3.11} + py312: {env:TOXPYTHON:python3.12} {clean,check,docs,report}: {env:TOXPYTHON:python3} setenv = PYTHONPATH={toxinidir}/tests @@ -33,7 +34,7 @@ commands = {posargs:pytest --cov --cov-report=term-missing -vv tests} [testenv:check] -basepython = py311 +basepython = py312 deps = black==23.9.1 flake8==7.0.0 @@ -70,4 +71,5 @@ python = 3.8: py38, report 3.9: py39, report 3.10: py310, report - 3.11: py311, report, check, docs \ No newline at end of file + 3.11: py311 + 3.12: py312, report, check, docs \ No newline at end of file