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

Fix support for CPython development releases. #2655

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Jan 30, 2025

Fix a long-standing bug handling development versions of CPython (any
non-tagged release of the interpreter). These interpreters report a full
version of X.Y.Z+ and the trailing + leads to a non PEP-440
compliant version number. This, in turn, causes issues with the
packaging library leading to failures to evaluate markers for these
interpreters which surface as inscrutable Pex errors.

Apply the same workaround as used in packaging >= 24.1. See:

Fix a long-standing bug handling development versions of CPython (any
non-tagged release of the interpreter). These interpreters report a full
version of `X.Y.Z+` and the trailing `+` leads to a non PEP-440
compliant version number. This, in turn, causes issues with the
`packaging` library leading to failures to evaluate markers for these
interpreters which surface as inscrutable Pex errors.

Apply the same workaround as used in packaging >= 24.1.
See:
+ pypa/packaging#802
+ pypa/packaging#825
@jsirois jsirois requested a review from cburroughs January 30, 2025 15:53
@jsirois
Copy link
Member Author

jsirois commented Jan 30, 2025

@cburroughs you're on here since this fixes pantsbuild/pants#21851 which you had some interaction with.

# + https://github.com/pypa/packaging/pull/802
# + https://github.com/pypa/packaging/pull/825
#
# N.B.: We can't simply upgrade to packaging >= 24.1 since those changes unconditionally access
Copy link
Member Author

Choose a reason for hiding this comment

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

@jsirois
Copy link
Member Author

jsirois commented Jan 30, 2025

I'm going to push this through and get out a release.

@jsirois jsirois merged commit 76c3da6 into pex-tool:main Jan 30, 2025
23 checks passed
@jsirois jsirois deleted the CPython/support-dev-releases branch January 30, 2025 18:15
@cburroughs
Copy link
Collaborator

@cburroughs you're on here since this fixes pantsbuild/pants#21851 which you had some interaction with.

Thanks! PR to update Pants main on the way.

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.

2 participants