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

Error when direct URL requirements don't match Requires-Python #2196

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

charliermarsh
Copy link
Member

Summary

Closes #2195.

Test Plan

cargo test

@charliermarsh charliermarsh added bug Something isn't working error messages Messaging when something goes wrong labels Mar 5, 2024
if range.contains(&version) {
Ok(Some(ResolverVersion::Available(version)))
} else {
Ok(None)
Copy link
Member Author

Choose a reason for hiding this comment

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

We have to get rid of this "fast path", because we now need the Requires-Python here.

Alternatively, we could move the Requires-Python check into get_dependencies for URL dependencies.

@charliermarsh charliermarsh force-pushed the charlie/req-ii branch 2 times, most recently from ae0edee to 16fabe5 Compare March 5, 2024 04:43
@charliermarsh charliermarsh marked this pull request as ready for review March 5, 2024 04:46
@charliermarsh charliermarsh requested review from zanieb and removed request for zanieb March 7, 2024 04:40
crates/uv/tests/pip_sync.rs Outdated Show resolved Hide resolved
@charliermarsh charliermarsh enabled auto-merge (squash) March 14, 2024 02:28
@charliermarsh charliermarsh merged commit d29645c into main Mar 14, 2024
28 checks passed
@charliermarsh charliermarsh deleted the charlie/req-ii branch March 14, 2024 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working error messages Messaging when something goes wrong
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enforce Requires-Python for direct URL requirements
2 participants