uv/scripts/workspaces/albatross-in-example/check_installed_albatross.py
konsti 2ffd453003
Discover workspaces without using them in resolution (#3585)
Add minimal support for workspace discovery, only used for determining
paths in the bluejay commands.

We can now discover the workspace structure, namely that the
`pyproject.toml` of a package belongs to a workspace `pyproject.toml`
with members and exclusion. The globbing logic is inspired by cargo. We
don't resolve `workspace = true` metadata declarations yet.
2024-05-21 17:17:26 +00:00

11 lines
174 B
Python

from albatross import fly
try:
from bird_feeder import use
raise RuntimeError("bird-feeder installed")
except ModuleNotFoundError:
pass
fly()
print("Success")