Skip to content

Move extras option creation to register_config, do it after tox itself#91

Merged
hroncok merged 3 commits intofedora-python:masterfrom
hroncok:register_config
May 6, 2026
Merged

Move extras option creation to register_config, do it after tox itself#91
hroncok merged 3 commits intofedora-python:masterfrom
hroncok:register_config

Conversation

@hroncok
Copy link
Copy Markdown
Member

@hroncok hroncok commented May 5, 2026

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: tox-dev/tox@741362fb52

Fixes #90

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: tox-dev/tox@741362fb52

Fixes fedora-python#90
@hroncok hroncok force-pushed the register_config branch from 3bdb87d to 84d2b28 Compare May 5, 2026 11:25
@hroncok
Copy link
Copy Markdown
Member Author

hroncok commented May 5, 2026

All the tox4 test configs have passed and this change only changes tox4 code. I don't have the energy to deal with tox3 right now -- the failure is non-blocking.

@hroncok hroncok merged commit 84d2b28 into fedora-python:master May 6, 2026
7 of 13 checks passed
@hroncok hroncok deleted the register_config branch May 6, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--print-extras-to does not work with tox 4.44.0

1 participant