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

Commit 123d4f7

Browse files
authored
fix: attempt to pin setuptools to get builds working (#24)
* fix: attempt to pin setuptools to get builds working Signed-off-by: Paul Horton <phorton@sonatype.com> * fix: attempt to pin setuptools to get builds working Signed-off-by: Paul Horton <phorton@sonatype.com> * fix: attempt to pin setuptools to get builds working Signed-off-by: Paul Horton <phorton@sonatype.com> * fix: attempt to pin setuptools to get builds working Signed-off-by: Paul Horton <phorton@sonatype.com> * fix: attempt to pin setuptools to get builds working Signed-off-by: Paul Horton <phorton@sonatype.com> * fix: attempt to pin setuptools to get builds working Signed-off-by: Paul Horton <phorton@sonatype.com> * fix: attempt to pin setuptools to get builds working Signed-off-by: Paul Horton <phorton@sonatype.com> * chore(ci): Attempt to ressurect GH workflows Signed-off-by: Paul Horton <phorton@sonatype.com> * chore(ci): Attempt to ressurect GH workflows Signed-off-by: Paul Horton <phorton@sonatype.com> * chore(ci): Attempt to ressurect GH workflows Signed-off-by: Paul Horton <phorton@sonatype.com> --------- Signed-off-by: Paul Horton <phorton@sonatype.com>
1 parent d61cdcf commit 123d4f7

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,15 @@ jobs:
5151
with:
5252
poetry-version: ${{ env.POETRY_VERSION }}
5353

54+
- name: Patch Poetry's internal virtualenv setuptools
55+
run: $HOME/.local/share/pypoetry/venv/bin/python -m pip install "setuptools<71.0.0"
56+
5457
- name: Install dependencies
5558
run: poetry install --no-root
5659

60+
- name: Patch project virtualenv setuptools
61+
run: $(poetry env info --path)/bin/python -m pip install "setuptools<71.0.0"
62+
5763
- name: Run tox
5864
run: poetry run tox -e flake8
5965

@@ -85,9 +91,15 @@ jobs:
8591
with:
8692
poetry-version: ${{ env.POETRY_VERSION }}
8793

94+
- name: Patch Poetry's internal virtualenv setuptools
95+
run: $HOME/.local/share/pypoetry/venv/bin/python -m pip install "setuptools<71.0.0"
96+
8897
- name: Install dependencies
8998
run: poetry install --no-root
9099

100+
- name: Patch project virtualenv setuptools
101+
run: $(poetry env info --path)/bin/python -m pip install "setuptools<71.0.0"
102+
91103
- name: Run tox
92104
run: poetry run tox -e mypy-${{ matrix.toxenv-factor }}
93105

@@ -125,6 +137,13 @@ jobs:
125137
- name: Create reports directory
126138
run: mkdir ${{ env.REPORTS_DIR }}
127139

140+
- name: Install gettext (macOS)
141+
if: runner.os == 'macOS'
142+
run: |
143+
brew install gettext
144+
sudo mkdir -p /usr/local/opt
145+
sudo ln -sfn $(brew --prefix gettext) /usr/local/opt/gettext
146+
128147
- name: Set up Python
129148
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
130149
with:
@@ -136,9 +155,22 @@ jobs:
136155
with:
137156
poetry-version: ${{ env.POETRY_VERSION }}
138157

158+
- name: Patch Poetry's internal virtualenv setuptools (Unix)
159+
if: runner.os != 'Windows'
160+
run: $HOME/.local/share/pypoetry/venv/bin/python -m pip install "setuptools<71.0.0"
161+
162+
- name: Patch Poetry's internal virtualenv setuptools (Windows)
163+
if: runner.os == 'Windows'
164+
shell: pwsh
165+
run: |
166+
& "$env:APPDATA\pypoetry\venv\Scripts\python.exe" -m pip install "setuptools<71.0.0"
167+
139168
- name: Install dependencies
140169
run: poetry install --no-root
141170

171+
- name: Patch project virtualenv setuptools
172+
run: poetry run python -m pip install "setuptools<71.0.0"
173+
142174
- name: Ensure build successful
143175
run: poetry build
144176

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
with:
5656
poetry-version: ${{ env.POETRY_VERSION }}
5757

58+
- name: Patch Poetry's internal virtualenv setuptools
59+
run: $(poetry env info --path)/bin/pip install "setuptools<71.0.0"
60+
5861
- name: Install dependencies
5962
run: poetry install --no-root
6063

0 commit comments

Comments
 (0)