Open vvandk opened 1 hour ago
Thanks for the report! Can you try uv sync --reinstall --refresh-package kinit-config
?
$ uv pip list
Package Version
----------------- -------
annotated-types 0.7.0
anyio 4.4.0
exceptiongroup 1.2.2
fastapi 0.115.0
idna 3.10
loguru 0.7.2
markdown-it-py 3.0.0
mdurl 0.1.2
pydantic 2.9.2
pydantic-core 2.23.4
pydantic-settings 2.5.2
pygments 2.18.0
python-dotenv 1.0.1
rich 13.8.1
sniffio 1.3.1
starlette 0.38.5
typing-extensions 4.12.2
The kinit-config was not found.
I think you need to add a [build-system]
to kinit-config/pyproject.toml
.
For example:
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
Otherwise, we treat the project as a non-packed project. See https://docs.astral.sh/uv/concepts/projects/#creating-projects.
I thought we just did that for workspace members. Do we do that for path dependencies too? Or is this a workspace member and I'm missing it?
Anyway, we might want to sniff for [tool.setuptools]
and warn if we don't have a build-system and aren't going to package the project.
When I use
uv add <path>
to add a local package, no errors appear, but the installation is not successful.Below is my kinit-config and pyproject.toml configuration:
Here is the pyproject.toml configuration after I executed the uv add ../kinit-config/ command