-
-
Notifications
You must be signed in to change notification settings - Fork 529
Inconsistent documentation: "setenv" is not supported in "global settings" #1999
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
This one. |
additional comments to the current documentation
I read the comment
I suggest that we either use two private package servers in the example or add a security warning about the potential danger of relying that a package name is unregistered on @gaborbernat What's your take on this? |
IMHO, it's up to the user to configure the tool correctly. That being said, I'm happy with either way, perhaps more practical would be:
|
@AndreyNautilus Would you like to create a pull request to update the documentation? |
@jugmac00 sure, why not. I'll look into it later this week. |
fixes tox-dev#1999 Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
tox version: 3.23.0
I want to add an extra pip index to all testenvs, and I've found this documentation: https://tox.readthedocs.io/en/latest/example/basic.html#installing-dependencies-from-multiple-pypi-servers with the following example:
but this doesn't work. In my
tox.ini
with similar content (the only difference is the package name and the url),mypackage
wasn't found. Even more:tox --showconfig
didn't showPIP_EXTRA_INDEX_URL
env var insetenv
section fortestenv
.Then I found documentation for "tox global settings" (https://tox.readthedocs.io/en/latest/config.html#tox-global-settings) which doesn't list
setenv
as an available keyword for thetox
section.If I move
setenv
from[tox]
section to[testenv]
section, everything works (as expected, according to the docs: https://tox.readthedocs.io/en/latest/config.html#conf-setenv).So, my question (or bug report) is:
setenv
in[tox]
sectionsetenv
and tox should respectsetenv
from[tox]
section?The text was updated successfully, but these errors were encountered: