fix build commands to support pip install from repo

This commit is contained in:
ilya-pevzner
2025-09-14 01:06:59 -04:00
committed by iap
parent 032376a10f
commit cf09b94e97

View File

@@ -119,11 +119,9 @@ artifacts = ["rio/frontend files/*"]
[tool.hatch.build.targets.sdist]
artifacts = ["rio/frontend files/*"]
[[tool.hatch.build.targets.sdist.hooks.build-scripts.scripts]]
[[tool.hatch.build.hooks.build-scripts.scripts]]
commands = [
"uv sync",
"npm install",
"uv run python scripts/build.py",
"test -d .venv || (uv sync && npm install && uv run python scripts/build.py)",
]
[tool.ruff]