mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Use 0.5.24
This commit is contained in:
parent
7ed168fc45
commit
a71438d0a1
4 changed files with 15 additions and 8 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
@ -108,11 +108,14 @@ jobs:
|
|||
run: rustup show
|
||||
|
||||
- uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: '0.5.24'
|
||||
|
||||
- name: "Install required Python versions"
|
||||
run: uv python install
|
||||
|
||||
- name: "Cargo build"
|
||||
run: cargo build --release
|
||||
# - name: "Cargo build"
|
||||
# run: cargo build --release
|
||||
|
||||
- name: "Clone basedpyright"
|
||||
run: git clone https://github.com/DetachHead/basedpyright.git
|
||||
|
@ -145,7 +148,7 @@ jobs:
|
|||
working-directory: basedpyright
|
||||
continue-on-error: true
|
||||
run: |
|
||||
../target/release/uv build --config-setting regenerate_docstubs=false --cache-dir foo
|
||||
uv build --config-setting regenerate_docstubs=false --cache-dir foo
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
|
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -4503,6 +4503,7 @@ dependencies = [
|
|||
"itertools 0.14.0",
|
||||
"jiff",
|
||||
"miette",
|
||||
"nanoid",
|
||||
"nix",
|
||||
"owo-colors",
|
||||
"petgraph",
|
||||
|
|
|
@ -56,6 +56,7 @@ uv-version = { workspace = true }
|
|||
uv-warnings = { workspace = true }
|
||||
uv-workspace = { workspace = true }
|
||||
|
||||
nanoid = { workspace = true }
|
||||
anstream = { workspace = true }
|
||||
anyhow = { workspace = true }
|
||||
axoupdater = { workspace = true, features = [
|
||||
|
|
|
@ -18,7 +18,7 @@ use crate::commands::ExitStatus;
|
|||
use crate::printer::Printer;
|
||||
use crate::settings::{ResolverSettings, ResolverSettingsRef};
|
||||
use uv_build_backend::check_direct_build;
|
||||
use uv_cache::{Cache, CacheBucket};
|
||||
use uv_cache::Cache;
|
||||
use uv_client::{BaseClientBuilder, Connectivity, FlatIndexClient, RegistryClientBuilder};
|
||||
use uv_configuration::{
|
||||
BuildKind, BuildOptions, BuildOutput, Concurrency, ConfigSettings, Constraints,
|
||||
|
@ -672,13 +672,15 @@ async fn build_package(
|
|||
let reader = fs_err::tokio::File::open(&path).await?;
|
||||
let ext = SourceDistExtension::from_path(path.as_path())
|
||||
.map_err(|err| Error::InvalidSourceDistExt(path.user_display().to_string(), err))?;
|
||||
let temp_dir = tempfile::tempdir_in(cache.bucket(CacheBucket::SourceDistributions))?;
|
||||
uv_extract::stream::archive(reader, ext, temp_dir.path()).await?;
|
||||
let tempdir_id = nanoid::nanoid!();
|
||||
let temp_dir = cache.root().join(tempdir_id);
|
||||
fs_err::tokio::create_dir_all(&temp_dir).await?;
|
||||
uv_extract::stream::archive(reader, ext, &temp_dir).await?;
|
||||
|
||||
// Extract the top-level directory from the archive.
|
||||
let extracted = match uv_extract::strip_component(temp_dir.path()) {
|
||||
let extracted = match uv_extract::strip_component(&temp_dir) {
|
||||
Ok(top_level) => top_level,
|
||||
Err(uv_extract::Error::NonSingularArchive(_)) => temp_dir.path().to_path_buf(),
|
||||
Err(uv_extract::Error::NonSingularArchive(_)) => temp_dir,
|
||||
Err(err) => return Err(err.into()),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue