astral-uv:zb/av-exclusions

Last commit made on 2024-04-09
Get this branch:
git clone -b zb/av-exclusions https://git.launchpad.net/astral-uv

Branch merges

Branch information

Name:
zb/av-exclusions
Repository:
lp:astral-uv

Recent commits

564e28e... by Zanie Blue <email address hidden>

Add tests to Windows Defender exclusions

07e3694... by Charlie Marsh <email address hidden>

Separate local archive vs. local source tree paths in source database (#2922)

## Summary

When you specify a source distribution via a path, it can either be a
path to an archive (like a `.tar.gz` file), or a source tree (a
directory). Right now, we handle both paths through the same methods in
the source database. This PR splits them up into separate handlers.

This will make hash generation a little easier, since we need to
generate hashes for archives, but _can't_ generate hashes for source
trees.

It also means that we can now store the unzipped source distribution in
the cache (in the case of archives), and avoid unzipping the source
distribution needlessly on every invocation; and, overall, let's un
enforce clearer expectations between the two routes (e.g., what errors
are possible vs. not), at the cost of duplicating some code.

Closes #2760 (incidentally -- not exactly the motivation for the change,
but it did accomplish it).

06e96a8... by Charlie Marsh <email address hidden>

DRY up source distribution fetching between wheel and metadata routes (#2921)

These will get more involved with hash-checking, so easiest to extract
them now.

No functional changes.

4f14e2a... by Charlie Marsh <email address hidden>

Rebrand `Manifest` as `Revision` in wheel database (#2920)

## Summary

I think this is a much clearer name for this concept: the set of
"versions" of a given wheel or source distribution. We also use
"Manifest" elsewhere to refer to the set of requirements, constraints,
etc., so this was overloaded.

1ab471d... by Charlie Marsh <email address hidden>

Reduce visibility of some methods in source database (#2919)

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

Disable CentOS system check (#2916)

This is broken (see https://github.com/astral-sh/uv/issues/2915) and not
a priority since we have Amazon Linux coverage

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

Restore lockfile (#2914)

Accidentally reverted the lockfile in
https://github.com/astral-sh/uv/commit/538c88130e9004202244348ffdf63a5e8404ff9c

Closes #2912
Closes #2910
Closes #2913

538c881... by Zanie Blue <email address hidden>

Group `pyo3` dependency updates (#2889)

Seems needed for https://github.com/astral-sh/uv/pull/2879

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

Use scheme parsing to determine absolute vs. relative URLs (#2904)

## Summary

We have a heuristic in `File` that attempts to detect whether a URL is
absolute or relative. However, `contains("://")` is prone to false
positive. In the linked issues, the URLs look like:

```
/packages/5a/d8/4d75d1e4287ad9d051aab793c68f902c9c55c4397636b5ee540ebd15aedf/pytz-2005k.tar.bz2?hash=597b596dc1c2c130cd0a57a043459c3bd6477c640c07ac34ca3ce8eed7e6f30c&remote=https://files.pythonhosted.org/packages/5a/d8/4d75d1e4287ad9d051aab793c68f902c9c55c4397636b5ee540ebd15aedf/pytz-2005k.tar.bz2#sha256=597b596dc1c2c130cd0a57a043459c3bd6477c640c07ac34ca3ce8eed7e6f30c
```

Which is relative, but includes `://`.

Instead, we should determine whether the URL has a _scheme_ which
matches the `Url` crate internally.

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

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

Add extract support for zstd (#2861)

We need this to extract toolchain downloads