mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-29 03:02:55 +00:00
Add support for path dependencies (#471)
## Summary This PR adds support for local path dependencies. The approach mostly just falls out of our existing approach and infrastructure for Git and URL dependencies. Closes https://github.com/astral-sh/puffin/issues/436. (We'll open a separate issue for editable installs.) ## Test Plan Added `pip-compile` tests that pre-download a wheel or source distribution, then install it via local path.
This commit is contained in:
parent
f1aa70d9d3
commit
17228ba04e
23 changed files with 580 additions and 24 deletions
|
|
@ -128,6 +128,10 @@ impl ResolveError {
|
|||
url: wheel.url.clone(),
|
||||
err,
|
||||
},
|
||||
Dist::Built(BuiltDist::Path(wheel)) => Self::UrlBuiltDist {
|
||||
url: wheel.url.clone(),
|
||||
err,
|
||||
},
|
||||
Dist::Source(SourceDist::Registry(sdist)) => Self::RegistrySourceDist {
|
||||
filename: sdist.file.filename.clone(),
|
||||
err,
|
||||
|
|
@ -140,6 +144,10 @@ impl ResolveError {
|
|||
url: sdist.url.clone(),
|
||||
err,
|
||||
},
|
||||
Dist::Source(SourceDist::Path(sdist)) => Self::UrlBuiltDist {
|
||||
url: sdist.url.clone(),
|
||||
err,
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue