mirror of
https://github.com/rio-labs/rio.git
synced 2026-02-10 23:59:10 -06:00
simplified build hooks, tested on windows, mac and linux
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user