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

feat: install only partial prefix for solving pypi deps #2994

Closed
wants to merge 18 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: some more renaming
  • Loading branch information
tdejager committed Jan 27, 2025
commit 8327f56575751dec097e1fddecdc255a2b68550b
6 changes: 3 additions & 3 deletions crates/pixi_uv_conversions/src/requirements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn create_uv_url(
url.parse()
}

fn to_version_specificers(
fn manifest_version_to_version_specifiers(
version: &VersionOrStar,
) -> Result<VersionSpecifiers, uv_pep440::VersionSpecifiersParseError> {
match version {
Expand Down Expand Up @@ -91,7 +91,7 @@ pub fn as_uv_req(
PyPiRequirement::Version { version, index, .. } => {
// TODO: implement index later
RequirementSource::Registry {
specifier: to_version_specificers(version)?,
specifier: manifest_version_to_version_specifiers(version)?,
index: index.clone(),
conflict: None,
}
Expand Down Expand Up @@ -180,7 +180,7 @@ pub fn as_uv_req(
ext: DistExtension::from_path(url.path())?,
},
PyPiRequirement::RawVersion(version) => RequirementSource::Registry {
specifier: to_version_specificers(version)?,
specifier: manifest_version_to_version_specifiers(version)?,
index: None,
conflict: None,
},
Expand Down
Loading