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: respect three components Python version #1295

Merged
merged 3 commits into from
Mar 7, 2024

Conversation

p15r
Copy link
Contributor

@p15r p15r commented Mar 5, 2024

Prior to this PR, a requires-python version constraint of three components (e.g. ==3.11.4) caused hatchling to fail detecting the supported Python versions and create invalid wheel filenames such as mypackage-0.1.0--none-any.whl. This fix takes micro versions into account as well and produces for the above three components version constraint the expected filename mypackage-0.1.0-py3-none-any.whl.

Related discussion: #1277

p15r added 2 commits March 5, 2024 21:53
Prior to this commit, a `requires-python` version constraint
of three components (e.g. `==3.11.4`) caused hatchling to fail
detecting the supported Python versions and create invalid wheel
filenames such as `mypackage-0.1.0--none-any.whl`. This fix takes
micro versions into account as well and produces for the above three
components version constraint the expected filename
`mypackage-0.1.0-py3-none-any.whl`.
@ofek
Copy link
Collaborator

ofek commented Mar 7, 2024

This operation is really slow now so I'm going to push a commit to improve performance this evening.

Copy link
Collaborator

@ofek ofek left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@ofek ofek merged commit dd727c5 into pypa:master Mar 7, 2024
39 checks passed
github-actions bot pushed a commit that referenced this pull request Mar 7, 2024
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