Skip to content
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

Add support for --pip-version latest. #2116

Merged
merged 4 commits into from
Apr 17, 2023

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Apr 17, 2023

This allows an opt-in to always using the latest Pip supported by Pex
when upgrading through Pex versions. This is generally desirable for
most Pex consumers.

This allows an opt-in to always using the latest Pip supported by Pex
when upgrading through Pex versions. This is generally desirable for
most Pex consumers.
@jsirois jsirois mentioned this pull request Apr 17, 2023
2 tasks
@@ -68,7 +78,8 @@ def values(cls):
return cls._values

v20_3_4_patched = PipVersionValue(
version="20.3.4-patched",
name="20.3.4-patched",
version="20.3.4+patched",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't grok why the name/version distinction is necessary. For the currently supported versions at least ordering by the (pre-change) version seems like it would work? And I don't see anything in the versions of pip releases that would defeat it even if we added new versions in the future.

Copy link
Member Author

@jsirois jsirois Apr 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 20.3.4-patched is not a valid PEP-440 version (fails to parse with modern packaging). I did not want to break the CLI value though; so split the name from the version conceptually to handle this 1 case.

CI overrides the default Pip version; so this slightly off-topic test
becomes more trouble than it is worth.
@jsirois jsirois merged commit 2986c85 into pex-tool:main Apr 17, 2023
@jsirois jsirois deleted the pip_version/CLI_supports_latest branch April 17, 2023 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants