astral-uv:zb/revert-auth

Last commit made on 2024-04-19
Get this branch:
git clone -b zb/revert-auth https://git.launchpad.net/astral-uv

Branch merges

Branch information

Name:
zb/revert-auth
Repository:
lp:astral-uv

Recent commits

b8902e1... by Zanie Blue <email address hidden>

Revert "Rewrite `uv-auth` (#2976)"

This reverts commit c0efeeddf6d738991d8f3149168ce57c52073f4e.

# Conflicts:
# crates/uv-configuration/src/authentication.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>

Restore seeding of authentication cache from index URLs (#3124)

Roughly reverts
https://github.com/astral-sh/uv/pull/2976/commits/f7820ceaa7a24613ce89da77c48a0454c1e94616
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>

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>

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>

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>

Update list of shell environment variables (#3126)

822e3dc... by Charlie Marsh <email address hidden>

Add `UV_REQUIRE_HASHES` environment variable (#3125)

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

c9eefc0... by konstin

Reset default `-v` level to debug (#3120)

Fixup from
https://github.com/astral-sh/uv/pull/2815/files#diff-9b6f8f13cfc3c9d7ef554182fa52c7466fa6037da54a97c03855b6068b481848L127-R127

7688f46... by Charlie Marsh <email address hidden>

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>

Use `BoolishValueParser` for boolean environment variables (#3113)

## Summary

Right now, we only accept _exactly `UV_NATIVE_TLS=true` and
`UV_NATIVE_TLS=false`. `BoolishValueParser` 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.