diff --git a/.gitignore b/.gitignore index 1fc1db07..ad5be38d 100644 --- a/.gitignore +++ b/.gitignore @@ -206,9 +206,8 @@ cython_debug/ # Ruff stuff: .ruff_cache/ -# Generated static dashboard bundle +# Generated static dashboard bundle — run scripts/build-ui.sh before uv build src/authsome/ui/web/* -!src/authsome/ui/web/.gitkeep # PyPI configuration file .pypirc diff --git a/pyproject.toml b/pyproject.toml index 9fe24b07..a7ec111b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,6 +64,7 @@ authsome = "authsome.cli.main:cli" [tool.hatch.build.targets.wheel] packages = ["src/authsome"] +artifacts = ["src/authsome/ui/web/**"] [tool.hatch.build.targets.sdist.force-include] "src/authsome/ui/web" = "src/authsome/ui/web" diff --git a/scripts/build-ui.sh b/scripts/build-ui.sh index 4b106982..37acb217 100755 --- a/scripts/build-ui.sh +++ b/scripts/build-ui.sh @@ -12,4 +12,3 @@ UV_BIN="${UV:-uv}" rm -rf "${TARGET_DIR}" mkdir -p "${TARGET_DIR}" cp -R "${UI_DIR}/out/." "${TARGET_DIR}/" -printf '%s\n' "Generated static UI assets are copied here by scripts/build-ui.sh." > "${TARGET_DIR}/.gitkeep" diff --git a/src/authsome/ui/web/.gitkeep b/src/authsome/ui/web/.gitkeep deleted file mode 100644 index 196661a7..00000000 --- a/src/authsome/ui/web/.gitkeep +++ /dev/null @@ -1 +0,0 @@ -Generated static UI assets are copied here by scripts/build-ui.sh.