You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to me that [testenv] does at least two things:
Specify the base environment that all other testenvs inherit from
Provide the fallback case for any env not matched by any other [testenv:...] definition
It seems like these two features should be explicit:
Add a parent option for a testenv to specify another testenv to inherit from
This comment seems to imply this will be handled by tox 4, but I can't see any mention in [RFC] tox 4 #1394 about this I do see the docs for this now! Seems to be implemented in gaborbernat@575f648
Allow patterns in a testenv name; e.g. [testenv:*-dist]
Set usedevelop by default, but adding -dist to the end of any environment uses a wheel build
If someone had two test frameworks (e.g. a pytest suite and a unittest suite), you could have both [testenv:pytest-*] and [testenv:unittest-*]
I guess the current approach for this is to have two different tox.ini files
Generative sections don't completely help here, as I'd like to keep the current [testenv] functionality of being to specify both py37-django15 and py37-pandas13; a generative section like py{37,38,39,310}-django{15,16}-pandas{11,12,13} will require both django + pandas to be specified. Adding a trailing comma like py{37,38}-django{15,16,}-pandas{11,12,13,} doesn't work; it will require matching py37--pandas11.
✨ _**This is an old work account. Please reference @brandonchinn178 for all future communication**_ ✨
<!-- updated by mention_personal_account_in_comments.py -->
It seems to me that
[testenv]
does at least two things:[testenv:...]
definitionIt seems like these two features should be explicit:
parent
option for atestenv
to specify anothertestenv
to inherit fromThis comment seems to imply this will be handled by tox 4, but I can't see any mention in [RFC] tox 4 #1394 about thisI do see the docs for this now! Seems to be implemented in gaborbernat@575f648[testenv:*-dist]
usedevelop
by default, but adding-dist
to the end of any environment uses a wheel build[testenv:pytest-*]
and[testenv:unittest-*]
tox.ini
files[testenv]
functionality of being to specify bothpy37-django15
andpy37-pandas13
; a generative section likepy{37,38,39,310}-django{15,16}-pandas{11,12,13}
will require both django + pandas to be specified. Adding a trailing comma likepy{37,38}-django{15,16,}-pandas{11,12,13,}
doesn't work; it will require matchingpy37--pandas11
.With these two features, a tox 3 config
would be equivalent to
The text was updated successfully, but these errors were encountered: