Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

Commit 149c814

Browse files
committed
fix: attempt to pin setuptools to get builds working
Signed-off-by: Paul Horton <phorton@sonatype.com>
1 parent 2714bc8 commit 149c814

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ jobs:
137137
- name: Create reports directory
138138
run: mkdir ${{ env.REPORTS_DIR }}
139139

140+
- name: Install gettext (macOS)
141+
if: runner.os == 'macOS'
142+
run: brew install gettext
143+
140144
- name: Set up Python
141145
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
142146
with:
@@ -148,14 +152,20 @@ jobs:
148152
with:
149153
poetry-version: ${{ env.POETRY_VERSION }}
150154

151-
- name: Patch Poetry's internal virtualenv setuptools
155+
- name: Patch Poetry's internal virtualenv setuptools (Unix)
156+
if: runner.os != 'Windows'
152157
run: $HOME/.local/share/pypoetry/venv/bin/python -m pip install "setuptools<71.0.0"
153158

159+
- name: Patch Poetry's internal virtualenv setuptools (Windows)
160+
if: runner.os == 'Windows'
161+
shell: pwsh
162+
run: & "$env:APPDATA\pypoetry\venv\Scripts\python.exe" -m pip install "setuptools<71.0.0"
163+
154164
- name: Install dependencies
155165
run: poetry install --no-root
156166

157167
- name: Patch project virtualenv setuptools
158-
run: $(poetry env info --path)/bin/python -m pip install "setuptools<71.0.0"
168+
run: poetry run python -m pip install "setuptools<71.0.0"
159169

160170
- name: Ensure build successful
161171
run: poetry build

0 commit comments

Comments
 (0)