astral-uv:charlie/stream-error

Last commit made on 2024-03-21
Get this branch:
git clone -b charlie/stream-error https://git.launchpad.net/astral-uv

Branch merges

Branch information

Name:
charlie/stream-error
Repository:
lp:astral-uv

Recent commits

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

Add HA requirements

8c99080... by Charlie Marsh <email address hidden>

Attempt to install PyTorch on CI

7c728a2... by Charlie Marsh <email address hidden>

Support unnamed requirements directly in pip uninstall (#2577)

## Summary

In `pip uninstall`, we shouldn't need to resolve unnamed requirements,
since we already index packages in `site-packages` by their URL.

This also changes `uninstall` to ignore editables, which matches pip's
behavior.

Part of: https://github.com/astral-sh/uv/issues/313.

## Test Plan

Run `cargo run pip install ./scripts/editable-installs/black_editable`,
followed by each of the following:

- `cargo run pip uninstall ./scripts/editable-installs/black_editable`
- `cargo run pip uninstall black`
- `cargo run pip uninstall ./scripts/editable-installs/black_editable
black`

34bef37... by Charlie Marsh <email address hidden>

Enable install audits without resolving named requirements (#2575)

## Summary

This PR ensures that if a package is already satisfied by the current
environment, we don't bother resolving the named requirement.

Part of: https://github.com/astral-sh/uv/issues/313.

## Test Plan

- `cargo run pip install ./scripts/editable-installs/black_editable`
- `cargo run pip install black --verbose`

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

Add support for unnamed local directory requirements (#2571)

## Summary

For example: `cargo run pip install .`

The strategy taken here is to attempt to extract the package name from
the distribution without executing the PEP 517 build steps. We could
choose to do that in the future if this proves lacking, but it adds
complexity.

Part of: https://github.com/astral-sh/uv/issues/313.

4d96255... by Charlie Marsh <email address hidden>

Enable unnamed requirements for direct URLs (#2569)

## Summary

This PR enables `uv pip install` to accept unnamed requirements, as long
as the requirement ends with the wheel or source distribution archive
name. For example: `cargo run pip install
~/Downloads/anyio-4.3.0.tar.gz`.

In subsequent PRs, I'll expand the scope of supported archives and
patterns.

Part of: https://github.com/astral-sh/uv/issues/313.

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

Add support for parsing unnamed URL requirements (#2567)

## Summary

First piece of https://github.com/astral-sh/uv/issues/313. In order to
support unnamed requirements, we need to be able to parse them in
`requirements-txt`, which in turn means that we need to introduce a new
type that's distinct from `pep508::Requirement`, given that these
_aren't_ PEP 508-compatible requirements.

Part of: https://github.com/astral-sh/uv/issues/313.

0af6a3d... by Charlie Marsh <email address hidden>

Bump version to v0.1.23 (#2580)

a873963... by konstin

Fix cargo warning (#2576)

70e0967... by konstin

Avoid repeating paths of workspace packages (#2573)

Scott schafer got me the idea: We can avoid repeating the path for
workspaces dependencies everywhere if we declare them in the virtual
package once and treat them as workspace dependencies from there on.