Skip to content

Commit 3dda26b

Browse files
authored
Add support for Python 3.12 (#859)
* 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
1 parent d6d230a commit 3dda26b

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/python-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
name: Python Tests
22
run-name: Run Tests by ${{ github.actor }}
3-
on: [push]
3+
on: [push, pull_request, workflow_dispatch]
44
jobs:
55
tests:
66
env:
7+
FORCE_COLOR: 1
78
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89
strategy:
910
matrix:
10-
python: ["3.8", "3.9", "3.10", "3.11"]
11+
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1112
runs-on: ubuntu-latest
1213
steps:
1314
- name: Set up Python ${{ matrix.python }}
1415
uses: actions/setup-python@v4
1516
with:
1617
python-version: ${{ matrix.python }}
18+
allow-prereleases: true
1719
- name: Check out repository code
1820
uses: actions/checkout@v3
1921
- name: Install prereq

docs/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ request that fails this test suite will be **rejected**.
152152
Testing multiple versions of Python
153153
-----------------------------------
154154

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

158158
.. sourcecode:: bash

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def fread(fn):
5858
'Programming Language :: Python :: 3.9',
5959
'Programming Language :: Python :: 3.10',
6060
'Programming Language :: Python :: 3.11',
61+
'Programming Language :: Python :: 3.12',
6162
'Programming Language :: Python :: 3 :: Only',
6263
'Programming Language :: Python :: Implementation',
6364
'Programming Language :: Python :: Implementation :: CPython',

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# require tox>=4
22
[tox]
3-
envlist = py38,py39,py310,py311,pypy3,docs,readme,bandit,isort
3+
envlist = py38,py39,py310,py311,py312,pypy3,docs,readme,bandit,isort
44

55
[testenv]
66
deps=

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy