add py312 support

This commit is contained in:
pacrob
2024-01-26 11:14:40 -07:00
committed by Paul Robinson
parent 8ffe3b8900
commit b853f5ccdf
3 changed files with 28 additions and 5 deletions

View File

@ -94,6 +94,12 @@ jobs:
- image: cimg/python:3.11 - image: cimg/python:3.11
environment: environment:
TOXENV: py311-core TOXENV: py311-core
py312-core:
<<: *common
docker:
- image: cimg/python:3.12
environment:
TOXENV: py312-core
py38-lint: py38-lint:
<<: *common <<: *common
@ -119,6 +125,12 @@ jobs:
- image: cimg/python:3.11 - image: cimg/python:3.11
environment: environment:
TOXENV: py311-lint TOXENV: py311-lint
py312-lint:
<<: *common
docker:
- image: cimg/python:3.12
environment:
TOXENV: py312-lint
py38-wheel: py38-wheel:
<<: *common <<: *common
@ -144,6 +156,12 @@ jobs:
- image: cimg/python:3.11 - image: cimg/python:3.11
environment: environment:
TOXENV: py311-wheel TOXENV: py311-wheel
py312-wheel:
<<: *common
docker:
- image: cimg/python:3.12
environment:
TOXENV: py312-wheel
py311-wheel-windows: py311-wheel-windows:
<<: *windows_steps <<: *windows_steps
@ -159,12 +177,15 @@ workflows:
- py39-core - py39-core
- py310-core - py310-core
- py311-core - py311-core
- py312-core
- py38-lint - py38-lint
- py39-lint - py39-lint
- py310-lint - py310-lint
- py311-lint - py311-lint
- py312-lint
- py38-wheel - py38-wheel
- py39-wheel - py39-wheel
- py310-wheel - py310-wheel
- py311-wheel - py311-wheel
- py312-wheel
- py311-wheel-windows - py311-wheel-windows

View File

@ -67,5 +67,6 @@ setup(
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
], ],
) )

11
tox.ini
View File

@ -1,8 +1,8 @@
[tox] [tox]
envlist= envlist=
py{38,39,310,311}-core py{38,39,310,311,312}-core
py{38,39,310,311}-lint py{38,39,310,311,312}-lint
py{38,39,310,311}-wheel py{38,39,310,311,312}-wheel
py311-wheel-windows py311-wheel-windows
docs docs
@ -23,18 +23,19 @@ basepython=
py39: python3.9 py39: python3.9
py310: python3.10 py310: python3.10
py311: python3.11 py311: python3.11
py312: python3.12
extras= extras=
test test
docs docs
allowlist_externals=make,pre-commit allowlist_externals=make,pre-commit
[testenv:py{38,39,310,311}-lint] [testenv:py{38,39,310,311,312}-lint]
deps=pre-commit deps=pre-commit
commands= commands=
pre-commit install pre-commit install
pre-commit run --all-files --show-diff-on-failure pre-commit run --all-files --show-diff-on-failure
[testenv:py{38,39,310,311}-wheel] [testenv:py{38,39,310,311,312}-wheel]
deps= deps=
wheel wheel
build[virtualenv] build[virtualenv]