ci: install poet into the same venv as dsmview, add setuptools
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>
This commit is contained in:
parent
498803b116
commit
408d434e3b
1 changed files with 3 additions and 12 deletions
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
|
|
@ -19,11 +19,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
|
|
||||||
- name: Install build tooling
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install build homebrew-pypi-poet
|
|
||||||
|
|
||||||
- name: Compute release metadata
|
- name: Compute release metadata
|
||||||
id: meta
|
id: meta
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -37,17 +32,13 @@ jobs:
|
||||||
echo "tarball_url=${TARBALL_URL}" >> "$GITHUB_OUTPUT"
|
echo "tarball_url=${TARBALL_URL}" >> "$GITHUB_OUTPUT"
|
||||||
echo "source_sha=${SOURCE_SHA}" >> "$GITHUB_OUTPUT"
|
echo "source_sha=${SOURCE_SHA}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Install dsmview into a venv (for poet)
|
|
||||||
run: |
|
|
||||||
python -m venv .poet-venv
|
|
||||||
. .poet-venv/bin/activate
|
|
||||||
pip install --upgrade pip
|
|
||||||
pip install .
|
|
||||||
|
|
||||||
- name: Generate Python resource blocks
|
- name: Generate Python resource blocks
|
||||||
id: poet
|
id: poet
|
||||||
run: |
|
run: |
|
||||||
|
python -m venv .poet-venv
|
||||||
. .poet-venv/bin/activate
|
. .poet-venv/bin/activate
|
||||||
|
pip install --upgrade pip setuptools wheel
|
||||||
|
pip install homebrew-pypi-poet .
|
||||||
poet dsmview > resources.rb
|
poet dsmview > resources.rb
|
||||||
echo "--- resources.rb ---"
|
echo "--- resources.rb ---"
|
||||||
cat resources.rb
|
cat resources.rb
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue