mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Update README
This commit is contained in:
parent
28721cf5fc
commit
f395c9c98c
5 changed files with 36 additions and 1 deletions
|
@ -12,6 +12,7 @@ use puffin_resolve::resolve;
|
|||
|
||||
use crate::commands::ExitStatus;
|
||||
|
||||
/// Resolve a set of requirements into a set of pinned versions.
|
||||
pub(crate) async fn compile(src: &Path, cache: Option<&Path>) -> Result<ExitStatus> {
|
||||
// Read the `requirements.txt` from disk.
|
||||
let requirements_txt = std::fs::read_to_string(src)?;
|
||||
|
|
|
@ -15,6 +15,7 @@ use puffin_resolve::resolve;
|
|||
|
||||
use crate::commands::ExitStatus;
|
||||
|
||||
/// Install a set of requirements into the current Python environment.
|
||||
pub(crate) async fn install(src: &Path, cache: Option<&Path>) -> Result<ExitStatus> {
|
||||
// Read the `requirements.txt` from disk.
|
||||
let requirements_txt = std::fs::read_to_string(src)?;
|
||||
|
@ -46,6 +47,7 @@ pub(crate) async fn install(src: &Path, cache: Option<&Path>) -> Result<ExitStat
|
|||
};
|
||||
|
||||
// Resolve the dependencies.
|
||||
// TODO(charlie): When installing, assume `--no-deps`.
|
||||
let resolution = resolve(&requirements, markers, &tags, &client).await?;
|
||||
|
||||
// Create a temporary directory, in which we'll store the wheels.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue