chore: Migrate from Poetry to uv for dependency management#68
Merged
Conversation
keelerm84
reviewed
Jun 22, 2026
1937cd1 to
7f2fe00
Compare
7f2fe00 to
7243f61
Compare
keelerm84
approved these changes
Jun 22, 2026
jsonbailey
added a commit
that referenced
this pull request
Jun 22, 2026
## Summary Drops support for Python 3.9, which is [end of life](https://devguide.python.org/versions/) as of October 2025. The new minimum supported version is **Python 3.10**. Dropping an EOL Python version is not considered a breaking change under our SDK support policy, so this is released as a `feat` (not `feat!`). ## What changed - `pyproject.toml`: `requires-python` `>=3.9` → `>=3.10`; removed the `Python :: 3.9` classifier; `[tool.mypy] python_version` `3.9` → `3.10` - `.github/workflows/ci.yml`: dropped `3.9` from the test matrix (now 3.10–3.14, both Linux and Windows jobs) - `README.md`: "compatible with Python 3.10 and higher" The release/publish workflows already run on Python 3.10 (set in #68), so they're now consistent with the floor. ## Test plan Verified locally on Python 3.10 (the new floor): - `make test` — 124 passed - `make lint` — mypy / isort / pycodestyle all pass feat: Drop support for Python 3.9 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Metadata and CI-only changes; users still on 3.9 will be blocked at install time but runtime library behavior is unchanged in this diff. > > **Overview** > Raises the **minimum supported Python version to 3.10**, dropping end-of-life **3.9** from packaging, docs, and CI. > > `pyproject.toml` now sets `requires-python = ">=3.10"`, removes the PyPI `Python :: 3.9` classifier, and points **mypy** at `python_version = "3.10"`. The **Linux and Windows** CI matrices test **3.10–3.14** only. **README** states compatibility with Python 3.10 and higher. > > No application/library source changes are in this diff—only support policy and tooling alignment. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 0328a25. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
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.
Summary
The
1.6.0release publish failed becauserelease-please.ymlinstalled Poetry viaactions-poetrywith the defaultpoetry-version: latest, and current Poetry requires Python 3.10+ while the release job ran on Python 3.9 (dataclass() got an unexpected keyword argument 'slots'). Rather than pin Poetry, this migrates the repo from Poetry to uv, matching launchdarkly/python-server-sdk#431.It also adds Python 3.14 to the test matrix and supported classifiers.
What changed
pyproject.toml[tool.poetry]→ standard PEP 621[project][tool.poetry.extras]async →[project.optional-dependencies][dependency-groups]poetry-core→hatchling, with the wheel scoped told_eventsourceand excludingld_eventsource/testing(preserving Poetry's behavior)requires-python = ">=3.9"and all version constraintspytestinternals (their source usesmatchsyntax newer than the project's 3.9 floor)Python :: 3.14classifierCI / release workflows
ci.yml,manual-publish.yml,release-please.yml,manual-publish-docs.yml: replacedactions/setup-python+abatilo/actions-poetrywithastral-sh/setup-uv(pinned to v8.2.0).github/actions/build/action.yml:poetry build→uv build --out-dir distOther
Makefile:poetry install/run→uv sync/uv runCONTRIBUTING.md: setup instructions useuv sync.readthedocs.yml: uv-based environment.gitignore: droppoetry.lock; ignoreuv.lockand.venv/(library — lockfile not committed)Test plan
Verified locally:
uv sync --all-extrasresolves and installs cleanlyuv buildproduces sdist + wheel;ld_eventsource/testingexcluded from the wheel, retained in the sdistmake test— 124 passed (also verified on Python 3.14)make lint— mypy / isort / pycodestyle all passmake docs— builds cleanly under uv