-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Stop using 'pip search' for ensure => latest #434
Conversation
f36dcae
to
c67438d
Compare
Note that this PR causes I am not sure if that is wrong though because I doubt that the previous code did work correctly with What do you think, @danquack ? |
e7021b4
to
a64d25e
Compare
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.
LGTM, is there somebody else that could review this?
@gdubicki can you check the failed travis tests? |
I did, but I can't find the cause.. I am using Centos 7 in my infra and the code runs fine on many nodes for a few weeks now. I have spin up a vm with Debian 9 to test why I don't really have much experience with tiny differences of Python-related stuff behaviour on various distros.. Do you have any ideas why it may be failing? PS I will of course squash the commits at the end. |
093190a
to
de235ae
Compare
de235ae
to
4fc979c
Compare
This should be rebased after #446 got merged |
0fedc38
to
9de15bc
Compare
because it does not work properly with devpi as own repo/PyPi mirror and is being considered to be deprecated in pip
9de15bc
to
69dea59
Compare
Ready for final review, @bastelfreak @danquack . |
Wouldn't it be cleaner to use pip's JSON API and get the latest version from there? Check e.g. https://pypi.org/pypi/click/json - getting the "version" from there seems like a better option than relying on certain output when installing an invalid version.. |
I don't like this method too, but I think that as of now this is how you do it in the python world - see https://stackoverflow.com/q/4888027/2693875 . JSON API looks great on pypi but it's not available when you are using pypi mirror, like devpi, which is one of the problems with #433, which this PR fixes, @ThiefMaster . |
Can we merge this now, after #446 got merged @bastelfreak @danquack ? |
Fixes #433