astral-uv:konsti/lower-case-tool

Last commit made on 2024-04-12
Get this branch:
git clone -b konsti/lower-case-tool https://git.launchpad.net/astral-uv

Branch merges

Branch information

Name:
konsti/lower-case-tool
Repository:
lp:astral-uv

Recent commits

de170b4... by konstin

Add soft serve config

c6be41e... by konstin

Fix optional dep in distribution-filename

2d2a9be... by konstin

Lower case github repo urls in tests

Github only links the lower case version and this simplifies some testing i want to do.

98fd9d7... by samypr100 <email address hidden>

ci: re-enable centos compatible testing (#3005)

## Summary

Closes #2915

## Test Plan

Rocky Linux is a viable and more stable alternative to test
compatibility with Centos and RHEL systems.

3df8df6... by Charlie Marsh <email address hidden>

Replace `unwrap` with `?` in hash generation (#3003)

And add tests to catch it.

8507ba8... by Charlie Marsh <email address hidden>

Remove unnecessary hashing from IDs (#2998)

## Summary

In all of these ID types, we pass values to `cache_key::digest` prior to
passing to `DistributionId` or `ResourceId`. The `DistributionId` and
`ResourceId` are then hashed later, since they're used as keys in hash
maps.

It seems wasteful to hash the value, then hash the hashed value? So this
PR modifies those structs to be enums that can take one of a fixed set
of types.

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

Allow unnamed requirements for overrides (#2999)

## Summary

This PR lifts a constraint by allowing unnamed requirements in
`overrides.txt` files.

0d62e62... by Charlie Marsh <email address hidden>

Make hash-checking failure mode stricter and safer (#2997)

## Summary

If there are no hashes for a given package, we now return
`Validate(&[])` so that the policy is impossible to satisfy. Previously,
we returned `None`, which is always satisfied.

We don't really ever expect to hit this, because we detect this case in
the resolver and raise a different error. But if we have a bug
somewhere, it's better to fail with an error than silently let the
package through.

9d5467d... by Charlie Marsh <email address hidden>

Remove outdated comment on `IndexLocations` (#2996)

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

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

Add `UV_BREAK_SYSTEM_PACKAGES` environment variable (#2995)

## Summary

Requested here: https://github.com/astral-sh/uv/issues/2988. Seems
reasonable to me given that pip supports it and we already have
`UV_SYSTEM_PYTHON`.

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