Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support tool.uv.workspace.default-packages #3625

Closed
konstin opened this issue May 16, 2024 · 0 comments
Closed

Support tool.uv.workspace.default-packages #3625

konstin opened this issue May 16, 2024 · 0 comments
Labels
preview Experimental behavior

Comments

@konstin
Copy link
Member

konstin commented May 16, 2024

When running commands such as uv run or uv pip install -e . in the root of a virtual workspace, we currently error because we don't know which package to install. Similar cargo, we should allow declaring a default target, in this case a package rather than a bin, as:

tool.uv.workspace.default-packages = ["<package name>", "<package name>"]
@konstin konstin added the preview Experimental behavior label May 16, 2024
@konstin konstin changed the title Support too.uv.workspace.default-package Support tool.uv.workspace.default-package May 16, 2024
konstin added a commit that referenced this issue May 28, 2024
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
#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
@konstin konstin changed the title Support tool.uv.workspace.default-package Support tool.uv.workspace.default-packages Jun 27, 2024
@konstin konstin changed the title Support tool.uv.workspace.default-packages Support tool.uv.workspace.default-package Jun 27, 2024
@konstin konstin changed the title Support tool.uv.workspace.default-package Support tool.uv.workspace.default-packages Jun 27, 2024
@konstin konstin closed this as completed Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Experimental behavior
Projects
None yet
Development

No branches or pull requests

1 participant