Skip to content

Commit 534f595

Browse files
committed
fix(workspace): exclude gp-furo-theme static/ from root sdist
why: hatchling's root sdist walks the entire tree but only reads the root .gitignore — the nested packages/gp-furo-theme/.gitignore that excludes static/ is invisible. When uv sync creates furo.js as a side effect of editable-installing gp-furo-theme, the root sdist discovers it and crashes if the file is absent or mid-write. what: - Add [tool.hatch.build.targets.sdist] exclude for the Vite build artifact directory in the root pyproject.toml
1 parent 020fb97 commit 534f595

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ build-backend = "hatchling.build"
8888
[tool.hatch.build.targets.wheel]
8989
packages = ["src/gp_sphinx_workspace"]
9090

91+
[tool.hatch.build.targets.sdist]
92+
exclude = [
93+
"packages/gp-furo-theme/src/gp_furo_theme/theme/gp-furo/static/",
94+
]
95+
9196
[tool.mypy]
9297
strict = true
9398
python_version = "3.10"

0 commit comments

Comments
 (0)