astral-uv:ag/benchmark-patch

Last commit made on 2024-02-12
Get this branch:
git clone -b ag/benchmark-patch https://git.launchpad.net/astral-uv

Branch merges

Branch information

Name:
ag/benchmark-patch
Repository:
lp:astral-uv

Recent commits

66085a7... by Andrew Gallant <email address hidden>

temporary patch for benchmarking

c75eef2... by Charlie Marsh <email address hidden>

Upgrade to miette v6.0.0 (#1272)

b386590... by Charlie Marsh <email address hidden>

Add some compatibility arguments to `puffin venv` (#1282)

See: https://github.com/astral-sh/puffin/issues/1276.

93b7a11... by Charlie Marsh <email address hidden>

Allow virtualenv creation at existing, empty directories (#1281)

## Summary

If the directory exists but is empty, we should allow `puffin venv`
without erroring.

Also adds test cases for a variety of error cases.

b7e3933... by Charlie Marsh <email address hidden>

Place editable requirements before non-editable requirements (#1278)

## Summary

`pip-compile` puts the editable requirements first.

Closes https://github.com/astral-sh/puffin/issues/1275.

a16ec45... by Charlie Marsh <email address hidden>

Set an exclude cutoff for virtualenv tests (#1280)

## Summary

This test is failing since a new version of one of the seed packages was
uploaded.

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

Implement pip compatible `--no-binary` and `--only-binary` options (#1268)

Updates our `--no-binary` option and adds a `--only-binary` option for
compatibility with `pip` which uses `:all:`, `:none:` and `<name>` for
specifying packages.

This required adding support for `--only-binary <name>` into our
resolver, previously it was only a boolean toggle.

Retains`--no-build` which is equivalent to `--only-binary :all:`. This
is common enough for safety that I would prefer it is available without
pip's awkward `:all:` syntax.

---------

Co-authored-by: konsti <email address hidden>

d98b3c3... by Charlie Marsh <email address hidden>

Strip UNC prefix when setting working directory (#1277)

## Summary

For PEP 517 builds, the current working directory needs to be set to the
directory of the source distribution. It turns out that on Windows, if
you use a UNC path for the working directory, then relative paths are
interpreted relative to the root of the current drive
([source](https://www.fileside.app/blog/2023-03-17_windows-file-paths/#paths-relative-to-the-root-of-the-current-drive)).
So, when builds attempted to resolve relative paths, they always
errored...

This PR ensures that we remove the UNC prefix when setting the current
working directory.

Closes #1238.

## Test Plan

I tested this on my Windows machine by installing `ujson` with
`--no-binary ujson`. (I don't want to add that specific test, since it's
really slow to build.)

ba4c6e1... by Charlie Marsh <email address hidden>

Remove unused deps (#1273)

32aacc3... by Charlie Marsh <email address hidden>

Bump version to v0.0.4 (#1269)