astral-sh
uv
BlogDocsChangelog

Fix dropped support of `-` in pip constraints/overrides/excludes/build_constraints

#17188
Comparing
EndPositive:fix/stdin-redirection-pip-install
(
676e7f0
) with
main
(
1d9672c
)
CodSpeed Performance Gauge
+1%
Untouched
5
Ignored
1

Benchmarks

Passed

resolve_warm_jupyter
crates/uv-bench/benches/uv.rs::uv::resolve_warm_jupyter
CodSpeed Performance Gauge
+7%
77.3 ms72.1 ms
resolve_warm_jupyter_universal
crates/uv-bench/benches/uv.rs::uv::resolve_warm_jupyter_universal
CodSpeed Performance Gauge
0%
207.3 ms208.1 ms
resolve_warm_jupyter
crates/uv-bench/benches/uv.rs::uv::resolve_warm_jupyter
CodSpeed Performance Gauge
-1%
41.3 ms41.7 ms
resolve_warm_airflow
crates/uv-bench/benches/uv.rs::uv::resolve_warm_airflow
CodSpeed Performance Gauge
-1%
460.2 ms465.8 ms
resolve_warm_jupyter_universal
crates/uv-bench/benches/uv.rs::uv::resolve_warm_jupyter_universal
CodSpeed Performance Gauge
-1%
138.6 ms140.5 ms

Ignored

resolve_warm_airflow
crates/uv-bench/benches/uv.rs::uv::resolve_warm_airflow
Ignored
CodSpeed Performance Gauge
0%
801.5 ms800.3 ms

Commits

Click on a commit to change the comparison range
Base
main
1d9672c
+1.11%
Handle "-" path as extensionless Since #16923, `-` stdin paths are only supported on the `RequirementsSource::Extensionless`. However, parsing of cli arguments using `from_requirements_txt`, `from_constraints_txt` `from_overrides_txt` would always output a `RequirementsSource::RequirementsTxt`. I've added a small check in those for the `-` paths to use `ExtensionLess`. I'm not too sure about this change, as it would also implicitly start allowing PEP 723 scripts as input to overrides/constraints. I don't see the direct issue in that, but then maybe we should explicitly handle it so that an `--overrides=script.py` would also be supported.
43394e3
17 hours ago
by EndPositive
-1.57%
Add tests
28cd5a4
12 hours ago
by EndPositive
+1.04%
clippy clip
676e7f0
12 hours ago
by EndPositive
© 2025 CodSpeed Technology
Home Terms Privacy Docs