Skip to content

Commit

Permalink
Add python 3.12 support, drop 3.7 (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath authored Dec 5, 2023
2 parents 41329e6 + 4eb4044 commit 8e1acde
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 275 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Checkout code
Expand All @@ -72,17 +72,9 @@ jobs:
poetry self add "poetry-dynamic-versioning[plugin]==1.1.1"
- name: Run tests
if: ${{ matrix.python-version != '3.7' }}
run: |
poetry run pytest --cov=auth0 --cov-report=term-missing:skip-covered --cov-report=xml
- name: Run tests 3.7
# Skip async tests in 3.7
if: ${{ matrix.python-version == '3.7' }}
run: |
poetry run pytest auth0/test
# bwrap ${{ env.BUBBLEWRAP_ARGUMENTS }} bash

# - name: Run lint
# run: |
# pipx install black==23.3.0
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,20 @@ For more code samples on how to integrate the auth0-python SDK in your Python ap
Our support lifecycle policy mirrors the [Python support schedule](https://devguide.python.org/versions/). We do not support running the SDK on unsupported versions of Python that have ceased to receive security updates. Please ensure your environment remains up to date and running the latest Python version possible.

| SDK Version | Python Version | Support Ends |
|-------------| -------------- | ------------ |
| 4.x | 3.11 | Oct 2027 |
|-------------|----------------|--------------|
| 4.x | 3.12 | Oct 2028 |
| | 3.11 | Oct 2027 |
| | 3.10 | Oct 2026 |
| | 3.9 | Oct 2025 |
| | 3.8 | Oct 2024 |
| | 3.7 | Oct 2023 |

> As `pip` [reliably avoids](https://packaging.python.org/en/latest/tutorials/packaging-projects/#configuring-metadata) installing package updates that target incompatible Python versions, we may opt to remove support for [end-of-life](https://en.wikipedia.org/wiki/CPython#Version_history) Python versions during minor SDK updates. These are not considered breaking changes by this SDK.
The following is a list of unsupported Python versions, and the last SDK version supporting them:

| Python Version | Last SDK Version Supporting |
| -------------- |-----------------------------|
|----------------|-----------------------------|
| <= 3.7 | 4.6.1 |
| >= 2.0, <= 3.6 | 3.x |

You can determine what version of Python you have installed by running:
Expand Down
Loading

0 comments on commit 8e1acde

Please sign in to comment.