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

Track supported Python range in lockfile #4065

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Jun 5, 2024

Summary

This PR adds the Requires-Python range to the user's lockfile. This will enable us to validate it when installing.

For now, we repeat the Requires-Python back to the user; alternatively, though, we could detect the supported Python range automatically.

See: #4052

@charliermarsh charliermarsh added the preview Experimental behavior label Jun 5, 2024
@charliermarsh charliermarsh marked this pull request as ready for review June 5, 2024 19:41
Comment on lines +277 to +278
// TODO(charlie): Infer the supported Python range from the `Requires-Python` of the
// included packages.
Copy link
Member

Choose a reason for hiding this comment

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

Yeah this seems nice

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's straightforward but need to try.

@charliermarsh charliermarsh merged commit 642cef0 into main Jun 5, 2024
46 checks passed
@charliermarsh charliermarsh deleted the charlie/requires-python branch June 5, 2024 20:22
Copy link
Member

@konstin konstin left a comment

Choose a reason for hiding this comment

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

💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants