From 185afd339c787ed23e44b76e116704588eb729ef Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 7 Apr 2025 21:20:33 +0900 Subject: [PATCH 1/2] Add python 3.12 support Python 3.12 was released a while ago and is now used mainly in Ubuntu Noble. Also remove support for Python <= 3.8 because these are already in EOL status. --- pyproject.toml | 5 ++--- tox.ini | 8 +++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4ea1f30..61900ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,18 +21,17 @@ classifiers = [ "Intended Audience :: Developers", "Operating System :: OS Independent", "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ] packages = [ { include = "sherlock" }, ] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.9" filelock = { version = "^3.7.1", optional = true } kubernetes = { version = "^24.2.0", optional = true } diff --git a/tox.ini b/tox.ini index ae7343f..e9da9a0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,9 @@ [tox] envlist = - py37, - py38, py39, py310, - py311 + py311, + py312 isolated_build = true [testenv] @@ -66,11 +65,10 @@ healthcheck_start_period = 0 [gh-actions] python = - 3.7: py37 - 3.8: py38 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 fail_on_no_env = True [flake8] From 3abd82d41d70e9bb5f45b1bfc1f503e568faade3 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 7 Apr 2025 21:25:41 +0900 Subject: [PATCH 2/2] Replace whitelist_externals The option was deprecated in favor of the allowlist_externals option and is no longer supported by recent tox. --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index e9da9a0..e2f192f 100644 --- a/tox.ini +++ b/tox.ini @@ -24,7 +24,7 @@ docker = redis memcached kubernetes -whitelist_externals = poetry +allowlist_externals = poetry [tox:.package] basepython = python3