astral-uv:charlie/constraint

Last commit made on 2024-05-13
Get this branch:
git clone -b charlie/constraint https://git.launchpad.net/astral-uv

Branch merges

Branch information

Name:
charlie/constraint
Repository:
lp:astral-uv

Recent commits

2ed04f9... by Charlie Marsh <email address hidden>

Allow --constraint in pip sync

42c3bfa... by Charlie Marsh <email address hidden>

Make `Directory` its own distribution kind (#3519)

## Summary

I think this is overall good change because it explicitly encodes (in
the type system) something that was previously implicit. I'm not a huge
fan of the names here, open to input.

It covers some of https://github.com/astral-sh/uv/issues/3506 but I
don't think it _closes_ it.

6bbfe55... by Zanie Blue <email address hidden>

Add test case for `--only-binary` with editable requirement (#3521)

d2ee567... by Dimitri Papadopoulos Orfanos <email address hidden>

Fix a few typos found by codespell (#3543)

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

Just fix typos.

While `alpha-numeric` is not really a misspelling:
- it is missing from mainstream curated dictionaries, all of them
suggest `alphanumeric`;
- it is less used than `alphanumeric` (more than ⨉10 less) according to
the Google [Ngram
Viewer](https://books.google.com/ngrams/graph?content=alpha-numeric%2Calphanumeric&year_start=1900&year_end=2019&corpus=en-2019);
- it is [missing from
SCOWL](http://app.aspell.net/lookup?dict=en_US-large;words=alpha-numeric).

## Test Plan

CI jobs.

106c3b5... by Charlie Marsh <email address hidden>

Add HTTPS and SSH hints to scheme error (#3536)

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

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

Fix `cfg_attr` ignore for macOS (#3535)

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

Run `cargo shear` in CI (#3534)

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

Get `cargo shear` passing (#3533)

## Summary

Remove a few unused deps, and ignore `flate2` (which we include for
feature control).

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

Update Rust crate async-channel to v2.3.0 (#3532)

457d452... by Fred Stober <email address hidden>

Update activate_this.py to use runpy instead of exec in the docstring (#3442)

## Summary

runpy.run_path was added in python 2.7 and 3.2 - and every python that
is not EOL supports it.

It is arguably nicer to read and the path is only given once in the
command.

At least right now, runpy - unlike exec with S102 - is not flagged by
any bandit-derived ruff check.
(I guess because it loads from a file instead of a simple string...)

Because of the import, it is also not a one-liner anymore. (But that
could be fixed with an __import__('runpy').run_path...)

## Test Plan

import runpy
runpy.run_path('/path/to/venv/bin/activate_this.py')