uv/crates
Charlie Marsh f13d0adbcd
Ensure that builds within the cache aren't considered Git repositories (#1782)
## Summary

Some packages encode logic to embed the current commit SHA in the
version tag, when built within a Git repo. This typically results in an
invalid (non-compliant) version. Here's an example from `pylzma`:
ccb0e7cff3/version.py (L45).

This PR adds a phony, empty `.git` to the cache root, to ensure that any
`git` commands fail.

Closes https://github.com/astral-sh/uv/issues/1768.

## Test Plan

- Create a tag on the current commit, like `v0.5.0`.
- Build `pylzma`, using a cache _within_ the repo:

```
rm -rf foo
cargo run venv
cargo run pip install "pylzma @ 10ef072c3c/pylzma-0.5.0.tar.gz" --verbose  --cache-dir bar
```
2024-02-20 15:37:05 -05:00
..
bench Rename to uv (#1302) 2024-02-15 11:19:46 -06:00
cache-key Avoid storing absolute URLs for files (#944) 2024-01-17 09:15:21 -05:00
distribution-filename Rename to uv (#1302) 2024-02-15 11:19:46 -06:00
distribution-types feat: add installer to InstalledDist (#1762) 2024-02-20 17:07:08 +00:00
gourgeist Add support for venv --prompt (#1570) 2024-02-20 00:43:20 +05:30
install-wheel-rs Support dotted function paths for script entrypoints (#1622) 2024-02-19 10:09:12 +00:00
once-map Remove unused deps (#1273) 2024-02-11 18:53:58 +00:00
pep440-rs Backport changes from publish crates (#1739) 2024-02-20 19:33:27 +01:00
pep508-rs Fix pep508-rs tests without features (#1778) 2024-02-20 19:35:36 +00:00
platform-host fix OS detection for Alpine Linux (#1545) 2024-02-16 16:37:18 -05:00
platform-tags Fix typos & add pre-commit configuration (#1487) 2024-02-17 18:16:50 +01:00
pypi-types Add support for >dev specifier (#1776) 2024-02-20 20:27:30 +00:00
requirements-txt Backport changes from publish crates (#1739) 2024-02-20 19:33:27 +01:00
uv Bump version to v0.1.6 (#1736) 2024-02-20 12:22:26 -05:00
uv-build Add support for venv --prompt (#1570) 2024-02-20 00:43:20 +05:30
uv-cache Ensure that builds within the cache aren't considered Git repositories (#1782) 2024-02-20 15:37:05 -05:00
uv-client uv-client: remove benign WARN log message 2024-02-20 10:57:51 -05:00
uv-dev Respect --index-url provided via requirements.txt (#1719) 2024-02-20 00:02:26 +00:00
uv-dispatch Rename to uv (#1302) 2024-02-15 11:19:46 -06:00
uv-distribution Allow non-nested archives for hexdump and others (#1564) 2024-02-16 23:17:36 -05:00
uv-extract uv-extract: call target.as_ref() once 2024-02-20 10:57:51 -05:00
uv-fs Apply percent-decoding to file-based URLs (#1541) 2024-02-16 16:11:16 -05:00
uv-git Rename to uv (#1302) 2024-02-15 11:19:46 -06:00
uv-installer Ensure extras trigger an install (#1727) 2024-02-20 03:37:35 +00:00
uv-interpreter strip trailing + from version number of local Python builds (#1771) 2024-02-20 12:57:28 -05:00
uv-normalize Backport changes from publish crates (#1739) 2024-02-20 19:33:27 +01:00
uv-resolver fix: expose DefaultResolverProvider (#1764) 2024-02-20 11:34:19 -05:00
uv-traits Fix diagram alignment (#1354) 2024-02-15 15:32:33 -06:00
uv-trampoline Add CMD support (#1523) 2024-02-17 16:47:40 -05:00
uv-warnings Rename to uv (#1302) 2024-02-15 11:19:46 -06:00
README.md Rename to uv (#1302) 2024-02-15 11:19:46 -06:00

Crates

bench

Functionality for benchmarking uv.

cache-key

Generic functionality for caching paths, URLs, and other resources across platforms.

distribution-filename

Parse built distribution (wheel) and source distribution (sdist) filenames to extract structured metadata.

distribution-types

Abstractions for representing built distributions (wheels) and source distributions (sdists), and the sources from which they can be downloaded.

gourgeist

A venv replacement to create virtual environments in Rust.

install-wheel-rs

Install built distributions (wheels) into a virtual environment.]

once-map

A waitmap-like concurrent hash map for executing tasks exactly once.

pep440-rs

Utilities for interacting with Python version numbers and specifiers.

pep508-rs

Utilities for interacting with PEP 508 dependency specifiers.

platform-host

Functionality for detecting the current platform (operating system, architecture, etc.).

platform-tags

Functionality for parsing and inferring Python platform tags as per PEP 425.

uv

Command-line interface for the uv package manager.

uv-build

A PEP 517-compatible build frontend for uv.

uv-cache

Functionality for caching Python packages and associated metadata.

uv-client

Client for interacting with PyPI-compatible HTTP APIs.

uv-dev

Development utilities for uv.

uv-dispatch

A centralized struct for resolving and building source distributions in isolated environments. Implements the traits defined in uv-traits.

uv-distribution

Client for interacting with built distributions (wheels) and source distributions (sdists). Capable of fetching metadata, distribution contents, etc.

uv-extract

Utilities for extracting files from archives.

uv-fs

Utilities for interacting with the filesystem.

uv-git

Functionality for interacting with Git repositories.

uv-installer

Functionality for installing Python packages into a virtual environment.

uv-interpreter

Functionality for detecting and leveraging the current Python interpreter.

uv-normalize

Normalize package and extra names as per Python specifications.

uv-package

Types and functionality for working with Python packages, e.g., parsing wheel files.

uv-resolver

Functionality for resolving Python packages and their dependencies.

uv-traits

Shared traits for uv, to avoid circular dependencies.

pypi-types

General-purpose type definitions for types used in PyPI-compatible APIs.

uv-warnings

User-facing warnings for uv.

requirements-txt

Functionality for parsing requirements.txt files.