From 234686064b1847d90fdfe3ccefa6c249262f76da Mon Sep 17 00:00:00 2001 From: ilya-pevzner Date: Fri, 19 Sep 2025 17:44:57 -0400 Subject: [PATCH] simplified build hooks, tested on windows, mac and linux --- pyproject.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6faef6de..acd438ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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]