From 50c8cfdab67042ba921999e6eee6a82832113a0f Mon Sep 17 00:00:00 2001 From: Chris Pryer Date: Thu, 29 Feb 2024 12:34:58 -0500 Subject: [PATCH] Support path-based dependencies in virtual projects with `uv` enabled --- rye/src/cli/add.rs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/rye/src/cli/add.rs b/rye/src/cli/add.rs index 52162d3077..04e4099217 100644 --- a/rye/src/cli/add.rs +++ b/rye/src/cli/add.rs @@ -470,21 +470,8 @@ fn resolve_requirements_with_uv( } let sources = ExpandedSources::from_sources(&pyproject_toml.sources()?)?; sources.add_as_pip_args(&mut cmd); - let mut child = cmd - .stdin(Stdio::piped()) - .stdout(Stdio::piped()) - .stderr(Stdio::piped()) - .spawn()?; - let child_stdin = child.stdin.as_mut().unwrap(); - writeln!(child_stdin, "{}", req)?; - let rv = child.wait_with_output()?; - if !rv.status.success() { - let log = String::from_utf8_lossy(&rv.stderr); - bail!("failed to resolve packages:\n{}", log); - } - - let mut new_req: Requirement = String::from_utf8_lossy(&rv.stdout).parse()?; + let mut new_req = req.clone(); if let Some(ref mut version_or_url) = new_req.version_or_url { if let VersionOrUrl::VersionSpecifier(ref mut specs) = version_or_url { *version_or_url = VersionOrUrl::VersionSpecifier(VersionSpecifiers::from_iter({