astral-uv:konsti/pubgrub-range

Last commit made on 2024-06-03
Get this branch:
git clone -b konsti/pubgrub-range https://git.launchpad.net/astral-uv

Branch merges

Branch information

Name:
konsti/pubgrub-range
Repository:
lp:astral-uv

Recent commits

c256073... by konstin

Use pubgrub reversed commit

48fb26b... by konstin

Override range to avoid patching pubgrub

Create a newtype `struct PubGrubRange(pubgrub::range::Range<Version>)` to avoid overriding the `Display` implementation on `Range` in pubgrub itself, reducing our diff with upstream. Used methods taking an `&Self` or returning `Self` were overridden, the rest of the methods succeeds through deref.

The alternative would be moving range formatting into the error formatter, but this would make pubgrub's api strange, deviating from rust's `Display` standard.

fbf562d... by Andrew Gallant <email address hidden>

uv {lock,sync}: propagate index URLs to registry client (#3986)

Otherwise the `uv lock` command wasn't respecting the index URL option.

This is a follow-up to #3984, and I believe should now allow #3970 to be
merged.

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

Extract index arguments into their own Clap group (#3985)

## Summary

Just removes a lot of repeated documentation. We can expand this
strategy in the future.

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

Add index URL parameters to Project CLI (#3984)

## Summary

For now, this exists to facilitate testing. We may remove it in the
future in favor of other APIs.

1b1600c... by Tim de Jager <email address hidden>

feat: add back the use of extra env vars to the build dispatch (#3981)

Seems like a recent Pull removed this, couldn't directly find out which.
I'm adding it back as we rely on this API, and I do not see another way
of accessing this, or am I mistaken?

Thanks!

5c77693... by Di-Is <email address hidden>

Add override namespace to pyproject.toml/uv.toml (#3839)

<!--
Thank you for contributing to uv! To help us out with reviewing, please
consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

See #3834 .

This PR adds a new namespace, `override-dependencies`, to
pyproject.toml/uv.toml.
This namespace assumes that the dependencies you want to override are
written in the form of `requirements.txt`.

a example of pyproject.toml
```toml
[project]
name = "example"
version = "0.0.0"
dependencies = [
  "flask==3.0.0"
]

[tool.uv]
override-dependencies = [
  "werkzeug==2.3.0"
]
```

This will improve usability by allowing you to override dependencies
without having to specify the --override option when running `uv pip
compile/install`.

## Test Plan

added test to `crates/uv/tests/pip_compile.rs`.

---------

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

1b769b0... by T-256 <email address hidden>

Windows: Statically linked C runtime (#3966)

314cdbb... by "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>

Update Rust crate axoupdater to v0.6.5 (#3972)

95d9bb5... by "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>

Update Rust crate tokio to v1.38.0 (#3976)