-
-
Notifications
You must be signed in to change notification settings - Fork 533
file| active in add_testenv_attribute for type "dict" #1694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
While technically the logic for this could be used for type |
Just to clarify, More broadly wrt environment variable files, as it loads using all of the tox env substitution logic, these files are very different from standard |
This is currently an implementation detail, relying on the env substitution logic is not really supported. |
The docs say "Rules within the environment file are the same as within the setenv (same replacement and comment support)." Is that not accurate? Or are you creating distinction between "setenv" and all the extra voodoo. |
I mean we should probably alter that doc to include only comment support... |
I believe this now has been addressed in tox 4 and its documentation. |
It looks like the new
file|
from #1668 is not restricted to arg typedict_setenv
, but is also allowed in venv argstype="dict"
.I've done a fairly extensive search for plugins using
type="dict"
and come up blank, so this is probably not impacting real users, and it only adds new syntax so almost certainly doesnt break any existing users. I am more concerned about whether it should be added there, because after a few releases it becomes a breaking change to remove it. Better to remove it now if it doesnt belong there.That PR also adjusted variables in
_getdict
to be more about envvars when it could be any type of "dict", albeit having a env-var-like syntax of "name = value".It probably isnt hard to disable
file|
fortype="dict"
, but it doesnt seem too harmful to keep it.I notice that https://tox.readthedocs.io/en/latest/plugins.html#tox.config.Parser.add_testenv_attribute doesnt mention allowable types "float", "dict", "basepython", "space-separated-list", and "env-list". (I am guessing that
dict_setenv
is intentionally internal-only, and shouldnt be used by plugins).If
file|
support is kept for "dict", that would be the area to document it.The text was updated successfully, but these errors were encountered: