Skip to content

chore!: drop Python 3.9 support - #159

Merged
kishore7snehil merged 5 commits into
mainfrom
chore/drop-python-3.9
Nov 10, 2026
Merged

kishore7snehil merged 5 commits into
mainfrom
chore/drop-python-3.9

Conversation

@kishore7snehil

@kishore7snehil kishore7snehil commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Drops Python 3.9 support, which has reached end of life. The minimum supported version is now 3.10.

  • pyproject.toml: python is now >=3.10 and the two ada-url entries become a single ^1.30.0.
  • poetry.lock regenerated. It only removes the 3.9-only entries and updates the Python range and content hash, with no package upgrades.
  • requirements.txt: the two ada-url lines become a single ada-url>=1.32.0.
  • .github/workflows/test.yml: 3.9 is removed from the matrix, 3.13 and 3.14 are added, and runs-on goes back to ubuntu-latest. The ubuntu-24.04 pin from chore: Pinned test runner image to have support of python 3.9 #158 existed only because Ubuntu 26.04 has no Python 3.9 build, and Python 3.10 to 3.14 all have builds for it.
  • .ruff.toml: target-version is now py310.
  • README.md: now says Python 3.10+.

Breaking Changes

The minimum supported Python version goes from 3.9.2 to 3.10. Releases that include this change cannot be installed on Python 3.9, so projects on 3.9 need to upgrade Python or stay on 1.0.0b10, the last release that supports it.

References

Testing

Verified locally with poetry run pytest on Python 3.10, 3.13 and 3.14 (506 passed on each) and poetry run ruff check .. The Build and Test run on this PR covers 3.10 to 3.14.

  • This change adds unit test coverage
  • This change adds integration test coverage

Checklist

Python 3.9 has reached end of life. The minimum supported version is now 3.10, the ada-url constraint is a single entry, the CI matrix no longer includes 3.9, and the test runner returns to ubuntu-latest.
Apply the ruff pyupgrade fixes enabled by the py310 target, replacing Optional and Union with the X | Y syntax.
@kishore7snehil kishore7snehil changed the title chore: drop Python 3.9 support chore!: drop Python 3.9 support Nov 10, 2026
@kishore7snehil
kishore7snehil marked this pull request as ready for review November 10, 2026 08:17
@kishore7snehil
kishore7snehil requested a review from a team as a code owner November 10, 2026 08:17

@rmad17 rmad17 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few Optional[...] usages in docs and docstrings were missed. They're examples for people implementing CacheAdapter and AbstractTokenStore, so they'd be good to match the real signatures, which now use "X | None". None of these break anything.

  • src/auth0_api_python/cache.py (CacheAdapter docstring example)
  • docs/Caching.md
  • docs/TokenStorage.md

@kishore7snehil

Copy link
Copy Markdown
Contributor Author

Fixed in e8c3aed.

@rmad17

rmad17 commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Fixed in e8c3aed.

Hey @kishore7snehil , thanks for the fix. While this addresses the issue, it breaks the CacheAdapter API table. The pipe in the new union types is read as a column separator, even inside backticks. Can you take a look at it was well?

image

@kishore7snehil

Copy link
Copy Markdown
Contributor Author

Fixed in e270a76.

@kishore7snehil
kishore7snehil merged commit 146c976 into main Nov 10, 2026
8 checks passed
@kishore7snehil
kishore7snehil deleted the chore/drop-python-3.9 branch November 10, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants