astral-sh
uv
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Add `--emit-index-url` and `--emit-find-links` to `uv export` (#18370) Closes #10008 ## Summary uv export now supports `--emit-index-url` and `--emit-find-links`, mirroring the equivalent flags on uv pip compile. When `--emit-index-url` is passed, the generated `requirements.txt` will include `--index-url` and `--extra-index-url` directives for indexes configured in `[tool.uv.index]`. Explicit indexes are emitted as global `--extra-index-url` entries so the exported requirements file can reference packages pinned via `[tool.uv.sources]`; because `requirements.txt` cannot represent uv's per-package index pinning semantics, uv warns when explicit indexes are emitted. When `--emit-find-links` is passed, `--find-links` entries are included. Neither is emitted by default, preserving existing behavior. Example output with `--emit-index-url`: ``` # This file was autogenerated by uv via the following command: # uv export --emit-index-url --index-url https://pypi.org/simple --extra-index-url https://download.pytorch.org/whl/cu121 anyio==3.7.0 \ --hash=sha256:... \ ... ``` ## Test Plan - Added `requirements_txt_emit_indexes` to cover default, extra, and explicit indexes alongside `--find-links` - Ran `cargo test --package uv --test it --features test-git export::requirements_txt_emit_indexes -- --exact` - Ran `cargo clippy --package uv --test it --features test-git --locked -- -D warnings` > **NOTE** This is my first time contributing to `uv` and I am also new to Rust to all feedback very welcome --------- Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
main
16 minutes ago
Simplify exported index handling
Bradley-McCallion:fix/10008
36 minutes ago
Emit explicit indexes in uv export
Bradley-McCallion:fix/10008
1 hour ago
Recognize `UV_NO_INSTALL_PROJECT`, `UV_NO_INSTALL_WORKSPACE`, `UV_NO_INSTALL_LOCAL` (#19323) ## Summary Adds environment variable support for `--no-install-project`, `--no-install-workspace`, and `--no-install-local` so the flags can be set when uv is invoked through a wrapper that doesn't expose flag pass-through (Pulumi's `pulumi install` is the example in the issue). The new env vars (`UV_NO_INSTALL_PROJECT`, `UV_NO_INSTALL_WORKSPACE`, `UV_NO_INSTALL_LOCAL`) are wired into both `uv sync` and `uv add`, and apply alongside the CLI flag. If the corresponding `--only-install-*` is passed on the CLI, the env var is ignored to keep the existing CLI conflict semantics intact. Closes #19315. ## Test Plan Added integration tests for each of the three flags in `crates/uv/tests/it/sync.rs`, including a check that `--only-install-project` overrides `UV_NO_INSTALL_PROJECT=1`. Also verified manually: ``` $ UV_NO_INSTALL_PROJECT=1 uv sync Installed 1 package in 4ms + packaging==26.2 $ uv sync Installed 2 packages in 5ms + demo==0.1.0 (from file:///tmp/demo) + packaging==26.2 ```
main
1 hour ago
Emit explicit indexes in uv export
Bradley-McCallion:fix/10008
1 hour ago
Avert the diffpocalypse Improve `diff_uv_snapshot` snapshots a bit: * Remove the completely useless file headers * Filter out the hunk headers (replaced with ellipses) Note: This averts the diffpocalypse * Improve the "unfiltered" output by printing just the unfiltered diff. Previously we'd print all the captures in their entirety. This didn't feel useful? Manually tested the relevant parts of the test suite, it felt like a waste of space to add tests for the test suite...
tk/avert-diffpocalypse-filter
2 hours ago
Recognize UV_NO_INSTALL_PROJECT, UV_NO_INSTALL_WORKSPACE, UV_NO_INSTALL_LOCAL
ChrisJr404:feat/uv-no-install-env-vars-19315
2 hours ago
Recognize UV_NO_INSTALL_PROJECT, UV_NO_INSTALL_WORKSPACE, UV_NO_INSTALL_LOCAL
ChrisJr404:feat/uv-no-install-env-vars-19315
3 hours ago
Latest Branches
CodSpeed Performance Gauge
+1%
Add `--emit-index-url` and `--emit-find-links` to `uv export`
#18370
46 minutes ago
a5e14fe
Bradley-McCallion:fix/10008
CodSpeed Performance Gauge
-5%
Avert the diffpocalypse
#19696
12 hours ago
f98730b
tk/avert-diffpocalypse-filter
CodSpeed Performance Gauge
0%
Recognize `UV_NO_INSTALL_PROJECT`, `UV_NO_INSTALL_WORKSPACE`, `UV_NO_INSTALL_LOCAL`
#19323
29 days ago
e507113
ChrisJr404:feat/uv-no-install-env-vars-19315
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs