ci: pin setuptools<70 so homebrew-pypi-poet can import pkg_resources
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>
This commit is contained in:
parent
408d434e3b
commit
724ea188df
1 changed files with 6 additions and 1 deletions
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
|
|
@ -37,8 +37,13 @@ jobs:
|
|||
run: |
|
||||
python -m venv .poet-venv
|
||||
. .poet-venv/bin/activate
|
||||
pip install --upgrade pip setuptools wheel
|
||||
pip install --upgrade pip
|
||||
# homebrew-pypi-poet (last released 2018) still imports pkg_resources,
|
||||
# which setuptools >=81 no longer bundles. Pin to a setuptools that
|
||||
# still ships it.
|
||||
pip install 'setuptools<70' wheel
|
||||
pip install homebrew-pypi-poet .
|
||||
python -c "import pkg_resources; print('pkg_resources OK:', pkg_resources.__file__)"
|
||||
poet dsmview > resources.rb
|
||||
echo "--- resources.rb ---"
|
||||
cat resources.rb
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue