astral-uv:charlie/python-global

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

Branch merges

Branch information

Name:
charlie/python-global
Repository:
lp:astral-uv

Recent commits

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

Make --python a global argument

47db418... by Charlie Marsh <email address hidden>

Bump version to v0.2.5 (#3885)

78c43c6... by Charlie Marsh <email address hidden>

Move editable discovery behind `--preview` for now (#3884)

## Summary

Just reduces the risk of shipping stable regressions for now.

f924477... by konstin

Support x86 windows (#3873)

Add trampolines for x86 windows.

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

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

Remove some unused `pub` functions (#3872)

## Summary

I wrote a bad Python script to find these.

1fc6a59... by Charlie Marsh <email address hidden>

Remove special-casing for editable requirements (#3869)

## Summary

There are a few behavior changes in here:

- We now enforce `--require-hashes` for editables, like pip. So if you
use `--require-hashes` with an editable requirement, we'll reject it. I
could change this if it seems off.
- We now treat source tree requirements, editable or not (e.g., both `-e
./black` and `./black`) as if `--refresh` is always enabled. This
doesn't mean that we _always_ rebuild them; but if you pass
`--reinstall`, then yes, we always rebuild them. I think this is an
improvement and is close to how editables work today.

Closes #3844.

Closes #2695.

063a0a4... by konstin

Add context to failed `uv tool run` (#3882)

These are not covered by `fs_err` and a missing binary otherwise only
give a generic "file not found" error.

b12b25d... by Tim de Jager <email address hidden>

fix: remove unused `Result` in uv-cache (#3875)

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->
It removes the unused result when creating the Cache with the
`from_path` constructor. I don't believe it does any io operations any
more at least.

a89e146... by konstin

Initial workspace support (#3705)

Add workspace support when using `-r <path>/pyproject.toml` or `-e
<path>` in the pip interface. It is limited to all-editable
static-metadata workspaces, and tests only include a single main
workspace, ignoring path dependencies in another workspace. This can be
considered the MVP for workspace support: You can create a workspace,
you can install from it, but some options and conveniences are still
missing. I'll file follow-up tickets (support in lockfiles, support path
deps in other workspace, #3625)

There is also support in `uv run`, but we need
https://github.com/astral-sh/uv/issues/3700 first to properly support
using different current projects in the bluejay interface, currently the
resolution and therefore the lockfile depends on the current project.
I'd do this change first (it's big enough already), then #3700, and then
add workspace support properly to bluejay.

Fixes #3404

89cfece... by Charlie Marsh <email address hidden>

Add support for `prepare_metadata_for_build_editable` hook (#3870)

## Summary

See:
https://peps.python.org/pep-0660/#prepare-metadata-for-build-editable