uv/crates/uv-python
konsti 62bf92132b
Add a 5 min default timeout for deadlocks (#16342)
When a process is running and another calls `uv cache clean` or `uv
cache prune` we currently deadlock - sometimes until the CI timeout
(https://github.com/astral-sh/setup-uv/issues/588). To avoid this, we
add a default 5 min timeout waiting for a lock. 5 min balances allowing
in-progress builds to finish, especially with larger native
dependencies, while also giving timely errors for deadlocks on (remote)
systems.

Commit 1 is a refactoring.

This branch also fixes a problem with the logging where acquired and
released resources currently mismatch:

```
DEBUG Acquired lock for `https://github.com/tqdm/tqdm`
DEBUG Using existing Git source `https://github.com/tqdm/tqdm`
DEBUG Released lock at `C:\Users\Konsti\AppData\Local\uv\cache\git-v0\locks\16bb813afef8edd2`
```
2025-12-04 14:59:04 +01:00
..
python Fix Pyston tags (#16972) 2025-12-04 10:18:41 +01:00
src Add a 5 min default timeout for deadlocks (#16342) 2025-12-04 14:59:04 +01:00
.gitignore minify and filter embed managed pythons json on compile time (#12967) 2025-04-30 15:51:03 -04:00
Cargo.toml chore(🧹): const env var usage cleanup (#16950) 2025-12-02 22:16:46 -08:00
README.md Link to the uv version in crates.io member READMEs (#16939) 2025-12-02 20:02:22 +00:00
build.rs chore(🧹): const env var usage cleanup (#16950) 2025-12-02 22:16:46 -08:00
download-metadata.json Add CPython 3.14.1 and 3.13.10 (#16941) 2025-12-02 23:36:44 +00:00
fetch-download-metadata.py Allow selection of debug build interpreters (#11520) 2025-09-12 13:32:22 +00:00

README.md

uv-python

This crate is an internal component of uv. The Rust API exposed here is unstable and will have frequent breaking changes.

This version (0.0.4) is a component of uv 0.9.14. The source can be found here.

See uv's crate versioning policy for details on versioning.