ci: pin poetry version to 1.8.5 for Python 3.9 compatibility#65
Merged
Conversation
The latest Poetry version has dependencies that use dataclass(slots=True), a Python 3.10+ feature. This caused CI failures on the Windows Python 3.9 matrix entry. Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com>
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com>
Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com>
Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com>
keelerm84
reviewed
Jun 8, 2026
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Install poetry |
Member
There was a problem hiding this comment.
Instead of installing poetry through pipx directly, you should be able to use the abatilo/actions-poetry directly.
- name: Install poetry
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
with:
poetry-version: ${{ matrix.poetry-version }}
Also heads up but I think Jason is switching all the python stuff over to uv.
Contributor
There was a problem hiding this comment.
Good call — updated to use abatilo/actions-poetry with poetry-version: "1.8.5", still placed before setup-python so pipx uses the system Python instead of the matrix Python (3.9). Pushed in eeabcd7.
Switch back to abatilo/actions-poetry action per review feedback, with poetry-version pinned to 1.8.5. Kept before setup-python to avoid Python 3.9 transitive dependency issue. Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com>
jsonbailey
approved these changes
Jun 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirements
Related issues
CI failing on Python 3.9 matrix entries due to Poetry installation error.
Describe the solution you've provided
Moves
pipx install poetry==1.8.5beforeactions/setup-pythonso pipx uses the system Python (3.12) instead of the matrix Python (3.9). Poetry 1.8.5's transitive dependencies now require Python 3.10+ (dataclass(slots=True)), so installing via pipx under Python 3.9 fails withTypeError: dataclass() got an unexpected keyword argument 'slots'.Describe alternatives you've considered
Additional context
Verified: 3/3 CI passes across all Python versions (3.9–3.13) on both Linux and Windows.
Link to Devin session: https://app.devin.ai/sessions/e40ffc3296dd45648f86ac10c42b6da5
Requested by: @kinyoklion
Note
Low Risk
CI workflow-only change with no application runtime impact; main risk is misordering steps on future workflow edits.
Overview
Fixes CI failures on Python 3.9 by changing when Poetry is installed in the Linux and Windows matrix jobs.
On both
linuxandwindows, the Install poetry step now runs beforeactions/setup-python, and Poetry is explicitly pinned to 1.8.5. That way Poetry is installed while the runner still uses a newer system Python, instead of under the matrix Python 3.9 where Poetry 1.8.5’s dependencies can fail (e.g.dataclass(slots=True)).Test and build steps still use the matrix Python after setup; only the Poetry install order and version pin change.
Reviewed by Cursor Bugbot for commit eeabcd7. Bugbot is set up for automated code reviews on this repo. Configure here.