-
-
Notifications
You must be signed in to change notification settings - Fork 521
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
tox needs an option to unset environment variables to complement passenv #1387
Comments
Not sure I see this under core, if anything would need some time as a plugin to mature and maybe after then 🤔 |
@gaborbernat it is clearly related to If wildcards from passenv could accept regexes we could add a negative match. Maybe a Or maybe you have another idea? |
I would prefer it outside of core just because of seems rare and complicated enough that does not warrant complicating the interface for new users. |
On reflection here for this, we'd want a |
@gaborbernat To avoid adding a new configuration item, I was wondering if this could be implemented using a prefixed entry in passenv or setenv like |
I'd prefer a new configuration than this conflating syntax. PR welcome. |
Currently there is no option to tell tox to passenv
FOO_*
with exceptionsFOO_BAR
and if you are unlikely enough to have to deal with a tool for whichunset
and set-as-empty-string has different behavior you are kinda out of options.Instead of adding new options it could be easier if we would have magic value on
setenv
which unsets variables, taking precendence of use of wildcard on passwenv.I initially asked on https://stackoverflow.com/questions/57293456/how-do-i-unset-an-environment-variable-with-python-tox but apparently there is no way to achieve that now.
The text was updated successfully, but these errors were encountered: