From b1add350d4d321d29b5c6d728bd7618d90faf55a Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Fri, 18 Aug 2023 11:20:27 +0100 Subject: [PATCH] Test on newer Python versions --- .github/workflows/python_ci.yml | 7 +++++-- .github/workflows/python_ci_linux.yml | 7 +++++-- .github/workflows/python_ci_macos.yml | 7 +++++-- pyproject.toml | 2 +- repo_helper.yml | 5 ++++- tox.ini | 23 +++++++++++++++++++++-- 6 files changed, 41 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index 857dadb..8bbb3e0 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: "windows-2019" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,pypy-3.6,pypy-3.7' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-rc.1,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -33,9 +33,12 @@ jobs: - {python-version: "3.8", testenvs: "py38,build", experimental: False} - {python-version: "3.9", testenvs: "py39,build", experimental: False} - {python-version: "3.10", testenvs: "py310,build", experimental: False} - - {python-version: "3.11", testenvs: "py311-dev,build", experimental: True} + - {python-version: "3.11", testenvs: "py311,build", experimental: False} + - {python-version: "3.12.0-rc.1", testenvs: "py312-dev,build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True} + - {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True} + - {python-version: "pypy-3.9", testenvs: "pypy39,build", experimental: True} steps: - name: Checkout 🛎️ diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index 5b5ce30..95d5619 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -23,7 +23,7 @@ jobs: runs-on: "ubuntu-20.04" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,pypy-3.6,pypy-3.7' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-rc.1,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -34,9 +34,12 @@ jobs: - {python-version: "3.8", testenvs: "py38,build", experimental: False} - {python-version: "3.9", testenvs: "py39,build", experimental: False} - {python-version: "3.10", testenvs: "py310,build", experimental: False} - - {python-version: "3.11", testenvs: "py311-dev,build", experimental: True} + - {python-version: "3.11", testenvs: "py311,build", experimental: False} + - {python-version: "3.12.0-rc.1", testenvs: "py312-dev,build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True} + - {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True} + - {python-version: "pypy-3.9", testenvs: "pypy39,build", experimental: True} steps: - name: Checkout 🛎️ diff --git a/.github/workflows/python_ci_macos.yml b/.github/workflows/python_ci_macos.yml index 8882cf9..e9420ea 100644 --- a/.github/workflows/python_ci_macos.yml +++ b/.github/workflows/python_ci_macos.yml @@ -22,7 +22,7 @@ jobs: runs-on: "macos-latest" continue-on-error: ${{ matrix.config.experimental }} env: - USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,pypy-3.7' + USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-rc.1,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False @@ -33,8 +33,11 @@ jobs: - {python-version: "3.8", testenvs: "py38,build", experimental: False} - {python-version: "3.9", testenvs: "py39,build", experimental: False} - {python-version: "3.10", testenvs: "py310,build", experimental: False} - - {python-version: "3.11", testenvs: "py311-dev,build", experimental: True} + - {python-version: "3.11", testenvs: "py311,build", experimental: False} + - {python-version: "3.12.0-rc.1", testenvs: "py312-dev,build", experimental: True} - {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True} + - {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True} + - {python-version: "pypy-3.9", testenvs: "pypy39,build", experimental: True} steps: - name: Checkout 🛎️ diff --git a/pyproject.toml b/pyproject.toml index 7ca776c..61d9652 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ base-classifiers = [ "Topic :: Utilities", "Typing :: Typed", ] -python-versions = [ "3.6", "3.7", "3.8", "3.9", "3.10",] +python-versions = [ "3.6", "3.7", "3.8", "3.9", "3.10", "3.11",] python-implementations = [ "CPython", "PyPy",] platforms = [ "Windows", "macOS", "Linux",] license-key = "MIT" diff --git a/repo_helper.yml b/repo_helper.yml index 8540227..f06433f 100644 --- a/repo_helper.yml +++ b/repo_helper.yml @@ -24,9 +24,12 @@ python_versions: - 3.8 - 3.9 - "3.10" - - 3.11-dev + - "3.11" + - 3.12-dev - pypy36 - pypy37 + - pypy38 + - pypy39 keywords: - sphinx diff --git a/tox.ini b/tox.ini index 41e6a33..ca28804 100644 --- a/tox.ini +++ b/tox.ini @@ -25,9 +25,12 @@ envlist = py38 py39 py310 - py311-dev + py311 + py312-dev pypy36 pypy37 + pypy38 + pypy39 mypy build skip_missing_interpreters = True @@ -39,7 +42,18 @@ requires = virtualenv!=20.16.0 [envlists] -test = py36, py37, py38, py39, py310, py311-dev, pypy36, pypy37 +test = + py36 + py37 + py38 + py39 + py310 + py311 + py312-dev + pypy36 + pypy37 + pypy38 + pypy39 qa = mypy, lint cov = py38, coverage @@ -58,6 +72,11 @@ setenv = PYTHONDEVMODE=1 PIP_DISABLE_PIP_VERSION_CHECK=1 +[testenv:py312-dev] +setenv = + PYTHONDEVMODE=1 + PIP_DISABLE_PIP_VERSION_CHECK=1 + [testenv:docs] setenv = SHOW_TODOS = 1 passenv = SPHINX_BUILDER