From f251e7342b1c9b6bdc57a69c65b2a8ed24c67a9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 5 May 2026 13:17:21 +0200 Subject: [PATCH 1/3] Move extras option creation to register_config, do it after tox itself In tox < 4.44 we still need to do it. In tox 4.44+ apparently we don't need it, but if we check if "extras" not in self.conf *after* super().register_config(), we are good. Note that the register_config() method even sounds like a better place to, well... register a config option. It has been around since the beginning of tox 4. Ref: https://github.com/tox-dev/tox/commit/741362fb52 Fixes https://github.com/fedora-python/tox-current-env/issues/90 --- src/tox_current_env/hooks4.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tox_current_env/hooks4.py b/src/tox_current_env/hooks4.py index 4213c8c..9a30159 100644 --- a/src/tox_current_env/hooks4.py +++ b/src/tox_current_env/hooks4.py @@ -241,14 +241,15 @@ def python_spec_for_path(cls, path): class PrintEnv(CurrentEnv): - def __init__(self, create_args): - super().__init__(create_args) + def register_config(self): + super().register_config() if self.options.print_extras_to: if "extras" not in self.conf: # Unfortunately, if there is skipsdist/no_package or skip_install # in the config, this section is not parsed at all so we have to # do it here manually to be able to read its content. + # This is no longer true on tox 4.44+, but the if above guards it. self.conf.add_config( keys=["extras"], of_type=Set[str], From 2f337dc342c626c196c9692bd5d26471b97f8f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 5 May 2026 13:25:29 +0200 Subject: [PATCH 2/3] CI: Drop Python 3.7, 3.8; add 3.15 --- .github/workflows/main.yaml | 3 +-- tox.ini | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 3c7e7f3..c3c1a30 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -23,8 +23,6 @@ jobs: # (see https://github.com/fedora-python/tox-github-action/issues/8) # Generate it by: tox -l | sed "s/^/- /" - py36-tox3 - - py38-tox3 - - py38-tox4 - py39-tox3 - py39-tox4 - py310-tox3 @@ -36,5 +34,6 @@ jobs: - py313-tox3 - py313-tox4 - py314-tox4 + - py315-tox4 # Use GitHub's Linux Docker host runs-on: ubuntu-latest diff --git a/tox.ini b/tox.ini index f3d9b63..6813000 100644 --- a/tox.ini +++ b/tox.ini @@ -2,7 +2,7 @@ # This information is repeated in .github/workflows/main.yaml # (see https://github.com/fedora-python/tox-github-action/issues/8) -envlist = py36-tox3,{py37,py38,py39,py310,py311,py312,py313}-tox{3,4},py314-tox4 +envlist = py36-tox3,{py39,py310,py311,py312,py313}-tox{3,4},{py314,py15}-tox4 [testenv] extras = From 84d2b28f2d7b8ecfa2bec56fe434f588df09101d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 5 May 2026 13:23:51 +0200 Subject: [PATCH 3/3] Release 0.0.17 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 225f7b3..52530cc 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ def long_description(): author_email="miro@hroncok.cz", url="https://github.com/fedora-python/tox-current-env", license="MIT", - version="0.0.16", + version="0.0.17", package_dir={"": "src"}, packages=find_packages("src"), entry_points={"tox": ["current-env = tox_current_env.hooks"]},