-
-
Notifications
You must be signed in to change notification settings - Fork 533
Tox fails to install package under test when it comes with virtualenv #467
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
Hi @jaraco I am sure you know about this already, but I better add it for reference: it is already possible to change the install command specifically for the project. I am not sure wether it is a good idea to change the default install command. |
In general, I think the |
Yes, @gaborbernat, you're right - such a default behavior would slow down things dramatically and would be prohibitively undesirable. So I withdraw my original suggestion. Perhaps instead tox should
Still, that's not great because it does cause the satisfactory packages to be checked/upgraded. What we really need is another way to signal to pip to definitely install the package I asked you to install. In many ways, this issue isn't a tox issue. Perhaps it's a six issue - where six should use something like Or perhaps it's a pip issue - that pip should provide a means to install |
@jaraco any progress? |
I've confirmed that pip 10+ will unconditionally install
And pip 9 has the reported behavior:
Therefore, this issue is fixed upstream. |
Workaround for tox-dev/tox#467
Workaround for tox-dev/tox#467
Workaround for tox-dev/tox#467
Now that setuptools includes six and because virtualenv upgrades setuptools, virtualenvs get installed with six. As a result, when using tox to invoke the six test suite before the version has been bumped, the code under test doesn't get installed, probably because pip considers the installed version to satisfy the requirement. Then, tests run against the released code. The issue doesn't occur if
usedevelop
is indicated or if the version under test has a different metadata version than the version installed.Probably, tox should install with
--upgrade --force-reinstall
(note that --force-reinstall doesn't work unless --upgrade is indicated) when installing the package under test.The text was updated successfully, but these errors were encountered: