Open scosman opened 4 weeks ago
What's the pyproject.toml
for kiln-ai
look like?
@zanieb that's here: https://github.com/Kiln-AI/Kiln/blob/uv/libs/core/pyproject.toml
Pretty stock I think. Full files in the links above.
Thanks!
Sorry I see it at https://github.com/Kiln-AI/Kiln/blob/uv/libs/core/pyproject.toml now
You'll want to mark the project as "packaged" by defining a build system https://docs.astral.sh/uv/concepts/projects/#build-systems
Otherwise, we don't install it into the environment.
Got it, and working. Many thanks!
That could be a bit more clear in the docs/error message. However I do see it's in the docs so totally user error. I'm just surprised uv add kiln-ai
warn me.
Yeah we should definitely add some sort of warning or hint here.
I'm trying to port a project to UV but I can't get it to work. The project is basically the described use case in the workspaces docs: a core library, and a FastAPI server depending on it, in another library project in the same repo.
Goal: be able to run commands like
uv run python3 -m pytest -q .
from the root (works great in conda, can't find the workspace dependency with UV)I've included snippets of the files in question below, but the full setup is in this branch: https://github.com/Kiln-AI/Kiln/tree/uv
Note: it works fine when I'm not using workspace mode, and just have 2 independent projects with a local path dependency (can run the tests of each independently). When I move it to workspace mode, I'm getting
ModuleNotFoundError: No module named 'kiln_ai'
(where kiln_ai is the workspace project dependency).Root pyproject.toml
The dependency project: /libs/core/pyproject.toml - https://github.com/Kiln-AI/Kiln/blob/uv/libs/core/pyproject.toml
The dependent project: /libs/server/pyproject.toml - https://github.com/Kiln-AI/Kiln/blob/uv/libs/server/pyproject.toml
Version Info
Command