add build commands to support pip install from repo

This commit is contained in:
ilya-pevzner
2025-09-14 00:05:55 -04:00
committed by iap
parent bea7db537c
commit 032376a10f

View File

@@ -88,7 +88,7 @@ documentation = "https://rio.dev/docs"
rio = "rio.__main__:main"
[build-system]
requires = ["hatchling==1.27.0"]
requires = ["hatchling==1.27.0", "hatch-build-scripts", "uv"]
build-backend = "hatchling.build"
[dependency-groups]
@@ -119,6 +119,13 @@ artifacts = ["rio/frontend files/*"]
[tool.hatch.build.targets.sdist]
artifacts = ["rio/frontend files/*"]
[[tool.hatch.build.targets.sdist.hooks.build-scripts.scripts]]
commands = [
"uv sync",
"npm install",
"uv run python scripts/build.py",
]
[tool.ruff]
line-length = 80