astral-uv:zb/bootstrap-conda

Last commit made on 2024-01-24
Get this branch:
git clone -b zb/bootstrap-conda https://git.launchpad.net/astral-uv

Branch merges

Branch information

Name:
zb/bootstrap-conda
Repository:
lp:astral-uv

Recent commits

07d247e... by Zanie <email address hidden>

Add support for downloading conda binaries

85ec822... by Zanie <email address hidden>

Add script to download Python versions

1131341... by konstin

Support more formats in `puffin venv`, incl. windows support (#1039)

Mirroring `virtualenv -p` and driven by the lack of `pythonx.y` in
`PATH` on windows, this PR adds `-p x.y` support to `puffin venv` (first
commit).

Supported formats:
* NEW: `-p 3.10` searches for an installed Python 3.10 (Looking for
`python3.10` on linux/mac).
  Specifying a patch version is not supported
* `-p python3.10` or `-p python.exe` looks for a binary in `PATH`
* `-p /home/ferris/.local/bin/python3.10` uses this exact Python

In the second commit, we add python interpreter search on windows using
`py --list-paths`. On windows, all python are called `python.exe` so the
unix trick of looking for `python{}.{}` in `PATH` doesn't work. Instead,
we ask the python launcher for windows to tell us about all installed
packages. We should eventually migrate this to [PEP
514](https://peps.python.org/pep-0514/) by reading the registry entries
ourselves.

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

Hide `--exclude-newer` from the command line (#1058)

This exists for our own test suite.

5db81c7... by Zanie Blue <email address hidden>

Add `--color always|never|auto` interface (#1049)

Extends #1048 interface providing a more general interface that I think
should be standard.

Allows forcing colors to be on _or_ off. e.g. `NO_COLOR=1 pip install
pip-tools --color always` would be colored.

Hides the `--no-color` option as it only exists for compatibility (and
seems better than throwing an error when people assume it will exist).

Has a nice side-effect of documenting our coloring behaviors e.g.

```
--color <COLOR>
    Control colors in output

    [default: auto]

    Possible values:
    - auto: Enables colored output only when the output is going to a terminal or TTY with support
    - always: Enables colored output regardless of the detected environment
    - never: Disables colored output
```

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

Add `--force-reinstall` alias for `--reinstall` to match pip interface (#1045)

Tested with `cargo run -- pip install pip-tools --force-reinstall`.

The alias is hidden.

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

Add `--no-color` support for `pip` compatibility (#1048)

Adds `--no-color` as provided by `pip`.

See #1049 for follow-up.

81401a1... by Charlie Marsh <email address hidden>

Use `archive_mtime` in another call site (#1056)

_Not_ using this was an oversight.

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

Use `fs_err::tokio` consistently in distribution database (#1055)

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

Pin dependencies in scenario requirements to allow install with puffin (#1050)