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:
Jan Vetesnik 2026-06-13 16:59:18 +02:00
parent 408d434e3b
commit 724ea188df

View file

@ -37,8 +37,13 @@ jobs:
run: | run: |
python -m venv .poet-venv python -m venv .poet-venv
. .poet-venv/bin/activate . .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 . pip install homebrew-pypi-poet .
python -c "import pkg_resources; print('pkg_resources OK:', pkg_resources.__file__)"
poet dsmview > resources.rb poet dsmview > resources.rb
echo "--- resources.rb ---" echo "--- resources.rb ---"
cat resources.rb cat resources.rb