Open jamesbraza opened 3 weeks ago
What do you have in the pyproject.toml
for file:///path/to/repo/packages/bird-feeder
?
Here is that pyproject.toml
:
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=64", "setuptools_scm>=8"]
[project]
dependencies = [
"albatross",
]
dynamic = ["version"]
name = "bird-feeder"
requires-python = ">=3.11"
[tool.ruff]
extend = "../../pyproject.toml"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
root = "../.."
version_file = "src/bird-feeder/version.py"
Cool, so in that pyproject.toml
, you should include:
[tool.uv.sources]
albatross = { workspace = true }
The sources should be defined wherever the dependencies are included. Does that make sense?
Yeah that makes sense! Thanks for working through it
I think then we should update the example pyproject.toml
's in https://docs.astral.sh/uv/concepts/workspaces/#getting-started to include that
Good idea!
With
uv==0.4.0
looking at https://docs.astral.sh/uv/concepts/workspaces/#workspace-layouts, it details:albatross
insrc
bird-feeder
inpackages/bird-feeder/src
seeds
inpackages/seeds/src
The docs don't mention if:
albatross
should be added totool.uv.sources
workspace = true
is required, and when to usepath
The below is what I got working, but it does not match the example shown here: https://docs.astral.sh/uv/concepts/workspaces/#workspace-sources
More specifically,
albatross = {workspace = true}
is not shown in the docs. But when I remove it and runuv lock
, I get: