astral-uv:zb/pr-scene

Last commit made on 2024-02-23
Get this branch:
git clone -b zb/pr-scene https://git.launchpad.net/astral-uv

Branch merges

Branch information

Name:
zb/pr-scene
Repository:
lp:astral-uv

Recent commits

8579a3c... by Zanie <email address hidden>

Add scenarios for pre-releases on specifier range boundaries

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

Retain authentication when making range requests (#1902)

Needs https://github.com/prefix-dev/async_http_range_reader/pull/9
Closes https://github.com/astral-sh/uv/issues/1709

bd59076... by Jonathan

Fix windows py spurious stderr failure (#1885)

<!--
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

On Windows `10.0.19045` the `py` command prints to `stderr` even when
working correctly. This means that uv should not treat this as a
failure.

Fixes https://github.com/astral-sh/uv/issues/1904

## Test Plan

I ran the modified code and it worked. I expect the pull request to run
automated tests.

829e147... by Micha Reiser <email address hidden>

Ignore Python 2 installations when querying for interpreters (#1905)

## Summary

Fixes https://github.com/astral-sh/uv/issues/1693

`uv` currently fails when a user has `python` 2 or older installed on
their system without a `python3` or `python3.exe` on their path because
the `get_interpreter_info.py` script fails executing (it uses some
Python 3+ APIs).

This PR fixes this by:

* Returning an explicit error code in `get_interpreter_info` if the
Python version isn't supported
* Skipping over this error in `python_query` if the user requested ANY
python version or a version >= 3.
* Error if the user requested a Python 2 version.

## Test Plan

Error if the user requests a legacy python version.

```
uv venv -p 2
  × Python 2 or older is not supported. Please use Python 3 or newer.
```

Ignore any python 2 installation when querying newer python
installations (using v4 here because I have python3 on the path and that
takes precedence over querying python)
```
 uv_interpreter::python_query::find_python selector=Major(4)
      0.005541s 0ms DEBUG uv_interpreter::interpreter Detecting markers for: /home/micha/.pyenv/shims/python
      0.059730s 54ms DEBUG uv_interpreter::python_query Found a Python 2 installation that isn't supported by uv, skipping.
      0.059983s 54ms DEBUG uv_interpreter::interpreter Using cached markers for: /usr/bin/python
  × No Python 4 In `PATH`. Is Python 4 installed?

```

73ed0f0... by Charlie Marsh <email address hidden>

Omit `--find-links` from annotation header unless requested (#1898)

## Summary

Like #1835, but for `--find-links` (for consistency).

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

Write to stdout when `--output-file` is present (#1892)

## Summary

This matches `pip-compile` and is, I think, intuitive. If you want to
suppress output, you can always pipe it away.

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

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

Add #1835 to the changelog (#1894)

a7b5c55... by Evgeniy

Hide index URLs from header if not emitted (#1835)

## Summary

Hey guys! The motivation described in #1834

## Test Plan

Changed snapshot of the existing tests. `--index-url` and
`--extra-index-url` occur pretty often, so no extra testing is required,
imo.

0212cb7... by Charlie Marsh <email address hidden>

Bump version to v0.1.9 (#1891)

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

Add support for `config_settings` in PEP 517 hooks (#1833)

## Summary

Adds `--config-setting` / `-C` (with a `--config-settings` alias for
convenience) to the CLI.

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