Skip to content

Commit

Permalink
Add support for Python 3.12 (#859)
Browse files Browse the repository at this point in the history
* Update docs to match supported versions

* Add support for Python 3.12

* Add colour to CI logs for readability

* Also test PRs and add manual trigger
  • Loading branch information
hugovk committed Aug 27, 2023
1 parent d6d230a commit 3dda26b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/python-build.yml
@@ -1,19 +1,21 @@
name: Python Tests
run-name: Run Tests by ${{ github.actor }}
on: [push]
on: [push, pull_request, workflow_dispatch]
jobs:
tests:
env:
FORCE_COLOR: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11"]
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ubuntu-latest
steps:
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Check out repository code
uses: actions/checkout@v3
- name: Install prereq
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.rst
Expand Up @@ -152,7 +152,7 @@ request that fails this test suite will be **rejected**.
Testing multiple versions of Python
-----------------------------------

OAuthLib supports Python 3.5, 3.6, 3.7 and PyPy 2.7 & PyPy 3. Testing
OAuthLib supports Python 3.6+ and PyPy3. Testing
all versions conveniently can be done using `Tox`_.

.. sourcecode:: bash
Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -58,6 +58,7 @@ def fread(fn):
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: Implementation :: CPython',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
@@ -1,6 +1,6 @@
# require tox>=4
[tox]
envlist = py38,py39,py310,py311,pypy3,docs,readme,bandit,isort
envlist = py38,py39,py310,py311,py312,pypy3,docs,readme,bandit,isort

[testenv]
deps=
Expand Down

0 comments on commit 3dda26b

Please sign in to comment.