mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Enable projects to opt-out of workspace management (#4565)
## Summary You can now add `managed = false` under `[tool.uv]` in a `pyproject.toml` to explicitly opt out of the project and workspace APIs. If a project sets `managed = false`, we will (1) _not_ discover it as a workspace root, and (2) _not_ discover it as a workspace member (similar to using `exclude` in the workspace parent). Closes https://github.com/astral-sh/uv/issues/4551.
This commit is contained in:
parent
be2a67cd9b
commit
a4417eba4a
8 changed files with 120 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
[project]
|
||||
name = "seeds"
|
||||
version = "1.0.0"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = ["idna==3.6"]
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.uv]
|
||||
managed = false
|
|
@ -0,0 +1,5 @@
|
|||
import idna
|
||||
|
||||
|
||||
def seeds():
|
||||
print("sunflower")
|
Loading…
Add table
Add a link
Reference in a new issue