b8902e1...
by
Zanie Blue <email address hidden>
on 2024-04-19
Revert "Rewrite `uv-auth` (#2976)"
This reverts commit c0efeeddf6d7389 91d8f3149168ce5 7c52073f4e.
# Conflicts:
# crates/ uv-configuratio n/src/authentic ation.rs
# crates/ uv/src/ cli.rs
# crates/ uv/src/ main.rs
# Conflicts:
# crates/ uv-auth/ src/lib. rs
# crates/ uv/src/ commands/ pip_compile. rs
# crates/ uv/src/ commands/ pip_install. rs
# crates/ uv/src/ commands/ pip_sync. rs
# crates/ uv/src/ commands/ venv.rs
822ae19...
by
Zanie Blue <email address hidden>
on 2024-04-19
Restore seeding of authentication cache from index URLs (#3124)
Roughly reverts
https:/ /github. com/astral- sh/uv/pull/ 2976/commits/ f7820ceaa7a2461 3ce89da77c48a04 54c1e94616
to reduce possible race conditions for pre-authenticated index URLs
Part of:
- https:/ /github. com/astral- sh/uv/issues/ 3123
- https:/ /github. com/astral- sh/uv/issues/ 3122
5ca5d7d...
by
Charlie Marsh <email address hidden>
on 2024-04-19
Add test for avoiding irrelevant extras (#3107)
## Summary
This PR adds a test that currently leads to an error, but should
successfully resolve as of https:/ /github. com/astral- sh/uv/pull/ 3100 .
The core idea is that if we have a pinned package, we shouldn't try to
build other versions of that package if we have an unconstrained variant
with an extra.
3c9d925...
by
Charlie Marsh <email address hidden>
on 2024-04-19
Avoid treating localhost URLs as local file paths (#3132)
## Summary
Closes https:/ /github. com/astral- sh/uv/issues/ 3128 .
## Test Plan
- `python -m http.server`
- `cargo run pip install
"http:// localhost: 8000/werkzeug- 3.0.2-py3- none-any. whl "`
- `cargo run pip install
"http:// localhost: 8000/werkzeug- 3.0.2-py3- none-any. whl "`
0ce039d...
by
Charlie Marsh <email address hidden>
on 2024-04-18
Remove `Option<bool>` for `--no-cache` (#3129)
## Summary
This was unintended. We ended up reverting `Option<bool>` everywhere,
but I missed this once since it's in a separate file.
(If you use `Option<bool>`, Clap requires a value, like `--no-cache
true`.)
## Test Plan
`cargo run pip install flask --no-cache`
25deddd...
by
Charlie Marsh <email address hidden>
on 2024-04-18
Update list of shell environment variables (#3126)
822e3dc...
by
Charlie Marsh <email address hidden>
on 2024-04-18
Add `UV_REQUIRE_HASHES` environment variable (#3125)
Closes https:/ /github. com/astral- sh/uv/issues/ 3117 .
c9eefc0...
by
konstin
on 2024-04-18
Reset default `-v` level to debug (#3120)
Fixup from
https:/ /github. com/astral- sh/uv/pull/ 2815/files# diff-9b6f8f13cf c3c9d7ef554182f a52c7466fa6037d a54a97c03855b60 68b481848L127- R127
7688f46...
by
Charlie Marsh <email address hidden>
on 2024-04-18
Allow `--python` and `--system` on `pip compile` (#3115)
## Summary
I think these are useful to have for consistency, though the `--system`
variant requires some new threading.
Closes: https:/ /github. com/astral- sh/uv/issues/ 2242 .
37aefbd...
by
Charlie Marsh <email address hidden>
on 2024-04-18
Use `BoolishValuePa rser` for boolean environment variables (#3113)
## Summary
Right now, we only accept _exactly `UV_NATIVE_ TLS=true` and
`UV_NATIVE_ TLS=false` . `BoolishValuePa rser` accepts a wider range of
values:
```rust
/// True values are `y`, `yes`, `t`, `true`, `on`, and `1`.
pub(crate) const TRUE_LITERALS: [&str; 6] = ["y", "yes", "t", "true", "on", "1"];
/// False values are `n`, `no`, `f`, `false`, `off`, and `0`.
pub(crate) const FALSE_LITERALS: [&str; 6] = ["n", "no", "f", "false", "off", "0"];
```
I tend to use `0` and `1` personally so this surprised me.