Skip to content

Commit 301147c

Browse files
committed
chore: force-include SEA binaries in wheel
1 parent 1e51dd8 commit 301147c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,20 @@ jobs:
106106
STAGEHAND_WHEEL_TAG: py3-none-${{ matrix.wheel_platform_tag }}
107107
run: uv build --wheel
108108

109+
- name: Log SEA contents
110+
run: |
111+
echo "Contents of src/stagehand/_sea/"
112+
ls -al src/stagehand/_sea || true
113+
python - <<'PY'
114+
import pathlib, zipfile
115+
for wheel in sorted(pathlib.Path('dist').glob('*.whl')):
116+
print(f"Contents of {wheel.name} entries matching stagehand/_sea")
117+
with zipfile.ZipFile(wheel, 'r') as zf:
118+
for info in zf.infolist():
119+
if 'stagehand/_sea/' in info.filename:
120+
print(info.filename)
121+
PY
122+
109123
- name: Upload wheel artifact
110124
uses: actions/upload-artifact@v4
111125
with:

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ packages = ["src/stagehand"]
9494
include = [
9595
"src/stagehand/_sea/*"
9696
]
97+
[tool.hatch.build.targets.wheel.force-include]
98+
"src/stagehand/_sea" = "stagehand/_sea"
9799

98100
[tool.hatch.build.targets.sdist]
99101
# Basically everything except hidden files/directories (such as .github, .devcontainers, .python-version, etc)

0 commit comments

Comments
 (0)