-
-
Notifications
You must be signed in to change notification settings - Fork 533
tox doesn't strip line coments from dependencies #332
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
Original comment by @jayvdb i.e. pypa/pip#3667 was closed as wontfix; it is now up to tox to fix this. |
Original comment by @The-Compiler FWIW the underlying pip issue has been closed now and the behaviour won't be changed back on their side. |
Original comment by @jayvdb issue title spelling fix... coments -> comments |
Original comment by @jayvdb Note this the workaround doesnt work on pypy3-dev (5.2) as it requires virtualenv>15.0.2 |
Original comment by kalikaneko This PR fixes the problem https://bitbucket.org/hpk42/tox/pull-requests/202/strip-any-comment-from-the-dependencies/ |
Original comment by @RonnyPfannschmidt as far as i understand, pip urls only contain hashes as part of scm metadata, those dont have whitespace right before |
Hi @kalikeneko, interested in whipping you PR from bitbucket into shape and re open here? |
@obestwalter I'll take this |
With an up-to-date virtualenv (which downloads an up-to-date pip), since pip 8.1.2, tox breaks when there's a tox.ini like this:
output:
This is because pip doesn't handle comments as part of a commandline argument since that version anymore: pypa/pip#3667
They replied in that issue that it isn't really intended that it worked before, and I tend to agree.
Marking as critical as this completely breaks tox unless you set
VIRTUALENV_DOWNLOAD=no
and never upgrade virtualenv.I think tox should either strip those comments (no idea how tricky that is as pip URLs can include hashes as well), or write temporary requirement.txt files and direct pip to them.
The text was updated successfully, but these errors were encountered: