astral-uv:konsti/thishow

Last commit made on 2024-05-23
Get this branch:
git clone -b konsti/thishow https://git.launchpad.net/astral-uv

Branch merges

Branch information

Name:
konsti/thishow
Repository:
lp:astral-uv

Recent commits

eecdf37... by konstin

Thishow

5bebadd... by Charlie Marsh <email address hidden>

Make `anyhow` a dev dependency in `pypi-types` (#3801)

4db468e... by konstin

Use `VerbatimParsedUrl` in `pep508_rs` (#3758)

When parsing requirements from any source, directly parse the url parts
(and reject unsupported urls) instead of parsing url parts at a later
stage. This removes a bunch of error branches and concludes the work
parsing url parts once and passing them around everywhere.

Many usages of the assembled `VerbatimUrl` remain, but these can be
removed incrementally.

Please review commit-by-commit.

0d2f3fc... by Ibraheem Ahmed <email address hidden>

Add airflow benchmark (#3643)

## Summary

This seems to be one of the most consistent benchmark cases we have in
terms of standard deviation:
```
➜ hyperfine "target/profiling/main pip compile scripts/requirements/airflow.in" --runs 200
Benchmark 1: target/profiling/main pip compile scripts/requirements/airflow.in
  Time (mean ± σ): 292.6 ms ± 6.6 ms [User: 414.1 ms, System: 194.2 ms]
  Range (min … max): 282.7 ms … 320.1 ms 200 runs
```

For smaller benchmarks, scispacy and dtlssocket seem to be a bit more
consistent than our current jupyter benchmark, but it hasn't given us
any problems so I'll leave it for now.

8f0f4d2... by Zanie Blue <email address hidden>

Improve logging during interpreter discovery (#3790)

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

Avoid displaying log for satisfied editables if none are requested (#3795)

e.g. in `uv pip install anyio -v` this message is just noise

```
DEBUG Requirement satisfied: anyio
DEBUG Requirement satisfied: idna>=2.8
DEBUG Requirement satisfied: sniffio>=1.1
DEBUG All editables satisfied:
```

306a4d7... by Zanie Blue <email address hidden>

Improve logging of interpreter implementation (#3791)

```
Found Python interpreter CPython 3.12.3 at...
```

instead of

```
Found Python interpreter cpython 3.12.3 at
```

81eff0e... by Zanie Blue <email address hidden>

Improve logging for environment locking (#3792)

```
DEBUG Acquired lock for `.venv`
```

instead of

```
DEBUG Trying to lock if free: .venv/.lock
```

At trace level, this includes the pre-lock message as well

```
TRACE Checking lock for `.venv`
DEBUG Acquired lock for `.venv`
```

We'll still display the lock file path when something goes wrong

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

Add `InterpreterRequest::Any` instead of using `VersionRequest::Any` (#3789)

A follow-up to #3266 addressing some awkwardness where there was no
"empty" or default interpreter request kind.

91ed1c6... by konstin

Fix interpreter discovery for tests (#3785)

The venv subcommand requires a system interpreter. The tests python path
discovery would previously allow a venv interpreter, failing the venv
tests that don't have system interpreter anymore.

---------

Co-authored-by: Zanie Blue <email address hidden>