uv/docs
Charlie Marsh eb14056e9c
Add support for virtual projects (#6585)
## Summary

The basic idea here is: any project can either be a package, or not
("virtual").

If a project is virtual, we don't build or install it.

A project is virtual if either of the following are true:

- `tool.uv.virtual = true` is set.
- `[build-system]` is absent.

The concept of "virtual projects" only applies to workspace member right
now; it doesn't apply to `path` dependencies which are treated like
arbitrary Python source trees.

TODOs that should be resolved prior to merging:

- [ ] Documentation
- [ ] How do we reconcile this with "virtual workspace roots" which are
a little different -- they omit `[project]` entirely and don't even have
a name?
- [x] `uv init --virtual` should create a virtual project rather than a
virtual workspace.
- [x] Running `uv sync` in a virtual project after `uv init --virtual`
shows `Audited 0 packages in 0.01ms`, which is awkward. (See:
https://github.com/astral-sh/uv/pull/6588.)

Closes https://github.com/astral-sh/uv/issues/6511.
2024-08-27 13:42:46 -04:00
..
.overrides/partials/integrations/analytics Migrate from MdBook to MkDocs (#5062) 2024-07-15 22:22:07 +00:00
assets docs: add uv run docs for gui scripts (#6478) 2024-08-22 19:44:37 -05:00
concepts Improve lockfile concept documentation, add coverage for upgrades (#6698) 2024-08-27 11:20:53 -05:00
configuration Add support for `--trusted-host` (#6591) 2024-08-27 09:36:50 -04:00
getting-started Bump version to v0.3.5 (#6696) 2024-08-27 16:30:12 +00:00
guides Fix some broken links (#6705) 2024-08-27 17:24:49 +00:00
js Improve copy of console command examples (#5397) 2024-07-31 14:52:02 +00:00
pip docs: use `python` to highlight requirements and use more content tabs (#6549) 2024-08-27 06:05:14 -05:00
reference Add support for virtual projects (#6585) 2024-08-27 13:42:46 -04:00
stylesheets Increase the size of nav entries (#6233) 2024-08-20 11:22:29 -05:00
.gitignore Add structured documentation (#4426) 2024-06-26 11:28:42 -05:00
index.md Fix some broken links (#6705) 2024-08-27 17:24:49 +00:00
requirements-insiders.in Reference the root requirements from the insiders requirements file (#5105) 2024-07-16 09:51:16 -05:00
requirements-insiders.txt Reference the root requirements from the insiders requirements file (#5105) 2024-07-16 09:51:16 -05:00
requirements.in Migrate from MdBook to MkDocs (#5062) 2024-07-15 22:22:07 +00:00
requirements.txt Migrate from MdBook to MkDocs (#5062) 2024-07-15 22:22:07 +00:00