astral-uv:zb/range-fmt

Last commit made on 2024-01-09
Get this branch:
git clone -b zb/range-fmt https://git.launchpad.net/astral-uv

Branch merges

Branch information

Name:
zb/range-fmt
Repository:
lp:astral-uv

Recent commits

287a5b0... by Zanie <email address hidden>

Remove spaces from display of ranges

With the goal of disambiguating ranges from other clauses in the sentence. There remain problems with understanding the meaning of the `,` and `|` operators as well as precedence and general readability

52f72d2... by Zanie <email address hidden>

Wrap `Range` types in reporter for customizable display impl

ee6d809... by konstin

Remove unused `Result` (#849)

Remove some dead code, seems to be a refactoring oversight

643e5e4... by konstin

Use pdm for black editable as PEP 621 test case (#848)

This gives us a PEP 621 test package in tree and increases the diversity
for the editable tests a bit.

5b0b072... by konstin

Allow files >4GB on 32-bit platforms (#847)

Changes `File::size` from a `usize` to a `u64`.

The motivations are that with tensorflow wheels being 475 MB
(https://pypi.org/project/tensorflow/2.15.0.post1/#files), we're already
only one order of magnitude away and to avoid target dependent failures.

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

Show available pre-releases in error hints (#844)

## Summary

If pre-releases are available for a package that we otherwise couldn't
resolve, we now show a hint that includes one of the example versions.

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

b1edecd... by konstin

Filter out files with invalid requires python specifiers (#775)

Instead of trying to fixup _all_ the invalid version specifiers on pypi
and elsewhere, this filters out distributions with invalid
`requires-python` version specifiers that even
`LenientVersionSpecifiers` couldn't parse, as opposed to failing
entirely, which we currently do.

I would be nicer to model through an invalid distribution pubgrub type,
together with e.g. source dists with an unknown extension, so that the
version itself still shows up in the error trace.

At the same time, we reduce the log level for fixups from warning to
trace, as they are not actionable for the user.

64da1f0... by Zanie Blue <email address hidden>

Always pair package names with ranges in error messages (#838)

Adjusts display of "no versions available" in error messages to be
consistent with other package/range pairings i.e. we usually display
"<package-name><range>".

19c6d65... by Charlie Marsh <email address hidden>

Avoid duplicated source distribution handling in url (#841)

## Summary

Right now, both the callback _and_ the "We have no compatible wheel"
paths have a lot of repeated code. This PR changes the callback to
_just_ remove all the wheels and handle the download, and the rest of
the method following the callback is responsible for finding and
building any wheels.

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

Rename `metadata` to `built_wheel` in `source/mod.rs` (#840)