Skip to content

Commit 5a6aa1a

Browse files
apundhirclaude
andcommitted
fix: replace hatch build with python -m build; remove duplicate _data force-include
hatch build fails on GitHub Actions due to virtualenv compatibility. python -m build (PEP 517 standard frontend) works with any build backend. Also remove redundant force-include that duplicated _data files in the wheel. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 698455f commit 5a6aa1a

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
tags: ["v*.*.*"]
66

77
permissions:
8-
id-token: write # PyPI OIDC trusted publishing (includes Sigstore provenance)
8+
id-token: write # PyPI OIDC trusted publishing
99
contents: write # GitHub Release creation
1010
attestations: write
1111

@@ -21,20 +21,21 @@ jobs:
2121
with:
2222
python-version: "3.11"
2323

24-
- name: Install build tools
25-
run: pip install hatch pip-audit bandit
26-
27-
- name: Security gates
24+
- name: Install dev dependencies + build frontend
2825
run: |
26+
pip install build pip-audit bandit
2927
pip install -e ".[dev]"
28+
29+
- name: Security gates (advisory)
30+
run: |
3031
bandit -ll -r src/ --exit-zero
3132
pip-audit --strict || true
3233
3334
- name: Run full test suite
3435
run: pytest --cov
3536

3637
- name: Build wheel + sdist
37-
run: hatch build
38+
run: python -m build
3839

3940
- name: List built artifacts
4041
run: ls -lh dist/

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ traceforge = "riskforge.adapters.traceforge:TraceForgeAdapter"
7575
[tool.hatch.build.targets.wheel]
7676
packages = ["src/riskforge"]
7777

78-
[tool.hatch.build.targets.wheel.force-include]
79-
"src/riskforge/_data" = "riskforge/_data"
80-
8178
[tool.ruff]
8279
line-length = 100
8380
target-version = "py311"

0 commit comments

Comments
 (0)