`git checkout main` aborted on the v0.2.0 release because the
freshly-rendered Formula/dsmview.rb differed from the committed
version. Save it to /tmp first, then force-checkout main, then
restore. Release tap-push step already succeeded, so brew install
worked — only the back-commit refresh was missed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
poet (last release 2018) still hits the legacy pypi.io endpoint and
404s on names that don't normalize cleanly through PyPI's redirect.
Replace with a small inline Python script that walks the venv's
installed distributions, queries https://pypi.org/pypi/<name>/json,
picks the sdist file and emits Homebrew resource blocks. Hard-fails
when any package is missing an sdist.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
setuptools 81+ removed pkg_resources from the default install.
homebrew-pypi-poet is unmaintained and still does `import pkg_resources`
at module load, so we pin a setuptools that still ships it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The previous workflow installed homebrew-pypi-poet system-wide while
dsmview lived in a venv, so poet's `import pkg_resources` resolved
against a stripped-down Python that no longer ships setuptools by
default (3.12+).
Consolidate into one step: create the venv, install setuptools/wheel
explicitly, then poet and the project, then run poet from the venv.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>