-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Fix Tox configuration issue #9844
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
Conversation
I was getting errors from Tox about `base_path` replacement not existing. This was using `inv docker.test`, so I don't think this is limited to me.
Yeah, I've also got this errors. However, I didn't debug it 😅 . I suppose your PR is fine 👍🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds like another fall-out of the Tox 4 upgrade. I don't think it seems very well documented. In general, it seems like a lot of substitution variables with underscores _
have the underscore as an option but that the version without the underscore is the "main" documented variable name.
The Tox documentation does, however, still casually mention the "aliases" with underscores around in their docs.
https://tox.wiki/en/latest/config.html#python-options
https://tox.wiki/en/latest/faq.html#new-features-in-tox-4
It could appear like the base_python
isn't set automatically anymore from the environment, but only basepython
is... even though base_python
is documented to resolve the same way.
What made me suspicious that it's a Tox 4 regression is this entry in the release FAQ:
|
Also, weird that this works on our CI, guess the update that @benjaoming mentioned, or you may need to rebuild your docker env to install the latest version of tox. |
These tests were in Docker, via |
That command makes use of the web container, after requirements are updated, you need to run
|
Confirmed, another rebuild does resolve the issue, without this PR. I came across this in #9843, where I needed to |
I was getting errors from Tox about
base_path
replacement notexisting. This was using
inv docker.test
, so I don't think this islimited to me.