simplified build hooks, tested on windows, mac and linux

This commit is contained in:
ilya-pevzner
2025-09-19 17:44:57 -04:00
committed by iap
parent cf09b94e97
commit 234686064b

View File

@@ -119,9 +119,13 @@ artifacts = ["rio/frontend files/*"]
[tool.hatch.build.targets.sdist]
artifacts = ["rio/frontend files/*"]
[tool.hatch.build.hooks.build-scripts.env]
PYTHONPATH = "."
[[tool.hatch.build.hooks.build-scripts.scripts]]
commands = [
"test -d .venv || (uv sync && npm install && uv run python scripts/build.py)",
"npm install",
"uvx --with-requirements pyproject.toml --verbose python -m scripts.build",
]
[tool.ruff]