From cdbb55294f930ee39d2a5f195c416c41808525e8 Mon Sep 17 00:00:00 2001 From: gmuloc Date: Wed, 25 Oct 2023 09:57:15 +0200 Subject: [PATCH 1/2] Chore: Add support for python 3.12 --- .pre-commit-config.yaml | 2 +- pyproject.toml | 19 ++++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5af0e1f..61dd8f6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -71,7 +71,7 @@ repos: name: Check for changes when running isort on all python files - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.10.1 hooks: - id: black name: Check for changes when running Black on all python files diff --git a/pyproject.toml b/pyproject.toml index c1d1ba0..7821513 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,6 +18,11 @@ classifiers = [ "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing", ] @@ -39,7 +44,7 @@ test = [ "pytest-cov>=4.1.0", ] lint = [ - "black>=23.7.0", + "black>=23.10.1", "isort[colors]>=5.12.0", "pylint>=2.17.5", "flake8==6.1.0", @@ -77,9 +82,11 @@ legacy_tox_ini = """ [tox] envlist = clean, - py38 - py39 + py38, + py39, py310, + py311, + py312, lint, type, report @@ -90,7 +97,9 @@ isolated_build = True python = 3.8: py38 3.9: py39 - 3.10: py310, coverage, report + 3.10: py310 + 3.11: py311, coverage, report + 3.12: py312 [testenv] description = run the test driver with {basepython} @@ -128,7 +137,7 @@ deps = coverage[toml] commands = coverage report --rcfile=pyproject.toml # add the following to make the report fail under some percentage # commands = coverage report --fail-under=80 -depends = py310 +depends = py311 """ [tool.pytest.ini_options] From 488102d6f80ffe4e1f023ffb183fbdf9d09f07f3 Mon Sep 17 00:00:00 2001 From: gmuloc Date: Wed, 25 Oct 2023 10:00:37 +0200 Subject: [PATCH 2/2] CI: Update workflow to 3.12 --- .github/workflows/pull-request-management.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull-request-management.yml b/.github/workflows/pull-request-management.yml index 7851345..8102788 100644 --- a/.github/workflows/pull-request-management.yml +++ b/.github/workflows/pull-request-management.yml @@ -12,7 +12,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: pip install tox tox-gh-actions - name: "Run lint" @@ -25,7 +25,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: pip install tox tox-gh-actions - name: "Run mypy" @@ -35,7 +35,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python: ["3.8", "3.9", "3.10"] + python: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - name: Setup Python