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/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"]}, 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], 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 =