Skip to content

ci(publish): wheel con --wheel (uv build vía sdist perdía el frontend)#102

Merged
complexluise merged 1 commit into
devfrom
fix/testpypi-build-wheel
Jun 18, 2026
Merged

ci(publish): wheel con --wheel (uv build vía sdist perdía el frontend)#102
complexluise merged 1 commit into
devfrom
fix/testpypi-build-wheel

Conversation

@complexluise

Copy link
Copy Markdown
Owner

Fix del publish a TestPyPI. La corrida de publish-testpypi (v0.7.0) falló:

Building wheel from source distribution...
FileNotFoundError: Forced include not found: .../bib2graph-0.7.0/src/bib2graph/gui/static

Causa: uv build arma sdist → y el wheel desde el sdist. El sdist excluye gui/static (build output gitignored), así que el force-include no lo encuentra → falla. El pnpm build del workflow llena gui/static en el working tree, pero ese contenido se pierde al pasar por el sdist.

Fix: uv builduv build --wheel (construye el wheel directo del working tree, con el frontend ya buildeado). Wheel-only en TestPyPI; pip install bib2graph[gui] usa el wheel universal. Verificado local: unzip -l lista gui/static/index.html + assets.

ci: → no genera entrada en el CHANGELOG.

Para que llegue a producción del publish

  1. Merge este PR → dev.
  2. PR dev → main (merge commit) — solo trae este ci:, release-please NO corta versión nueva.
  3. Re-correr publish-testpypi desde main (sigue siendo v0.7.0).

…el frontend)

publish-testpypi corría `uv build`, que arma sdist y luego el wheel DESDE el
sdist. El sdist excluye `gui/static` (build output gitignored), así que el
force-include fallaba en el wheel-from-sdist (FileNotFoundError) y el publish
moría. `--wheel` construye el wheel directo del working tree, donde el paso
previo `pnpm build` ya dejó el frontend. Queda wheel-only en TestPyPI (pip usa
el wheel universal igual). Verificado: unzip -l lista gui/static/index.html + assets.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@complexluise
complexluise merged commit 6ee215a into dev Jun 18, 2026
4 checks passed
@complexluise
complexluise deleted the fix/testpypi-build-wheel branch June 18, 2026 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant