From be878f8949e42b9989cabfb955147fdded59e8d8 Mon Sep 17 00:00:00 2001 From: Alex Levy Date: Mon, 29 Jan 2024 08:56:40 -0800 Subject: [PATCH 1/3] Include Python 3.12 in CI --- setup.cfg | 1 + tox.ini | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index fd968f11..b70ab5f4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,6 +22,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Programming Language :: Python :: Implementation :: CPython Topic :: Software Development diff --git a/tox.ini b/tox.ini index 978a3a99..c04d7b18 100644 --- a/tox.ini +++ b/tox.ini @@ -3,8 +3,8 @@ envlist = pre-commit mypy mypy-pydantic1 - py3{8,9,10,11}-requests{min,max} - py3{8,9,10,11}-pydantic1 + py3{8,9,10,11,12}-requests{min,max} + py3{8,9,10,11,12}-pydantic1 coverage [gh-actions] @@ -13,6 +13,7 @@ python = 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 [testenv:pre-commit] deps = pre-commit From 03d42eeb3c171d9d6855c8beb965ce1a0523d0ce Mon Sep 17 00:00:00 2001 From: Alex Levy Date: Mon, 29 Jan 2024 16:58:59 -0800 Subject: [PATCH 2/3] Clean up tox envlist --- tox.ini | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tox.ini b/tox.ini index c04d7b18..9d762972 100644 --- a/tox.ini +++ b/tox.ini @@ -2,9 +2,7 @@ envlist = pre-commit mypy - mypy-pydantic1 - py3{8,9,10,11,12}-requests{min,max} - py3{8,9,10,11,12}-pydantic1 + py3{8,9,10,11,12}{,-pydantic1,-requestsmin} coverage [gh-actions] @@ -33,7 +31,6 @@ commands = python -m pytest {posargs} deps = -r requirements-test.txt requestsmin: requests==2.22.0 # Keep in sync with setup.cfg - requestsmax: requests>=2.22.0 # Keep in sync with setup.cfg pydantic1: pydantic<2 # Lots of projects still use 1.x [testenv:coverage] From ef4647ce0f379ba8c38f6d8040922a266de52702 Mon Sep 17 00:00:00 2001 From: Alex Levy Date: Wed, 31 Jan 2024 21:26:19 -0800 Subject: [PATCH 3/3] Add Python 3.12 to GitHub Actions --- .github/workflows/test_lint_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_lint_deploy.yml b/.github/workflows/test_lint_deploy.yml index 15b7270e..0f747dd7 100644 --- a/.github/workflows/test_lint_deploy.yml +++ b/.github/workflows/test_lint_deploy.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ["3.8", "3.9", "3.10", "3.11"] + python: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3