From 67d6104bece30485990be2d1d2c5b66748dd7d2e Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Wed, 18 Oct 2023 17:22:43 +0200 Subject: [PATCH] Add support for Python 3.12 (#155) --- .github/workflows/integration_tests.yaml | 2 +- .github/workflows/lint_and_type_checks.yaml | 2 +- .github/workflows/unit_tests.yaml | 2 +- CHANGELOG.md | 3 +++ pyproject.toml | 29 +++++++++++---------- 5 files changed, 21 insertions(+), 17 deletions(-) diff --git a/.github/workflows/integration_tests.yaml b/.github/workflows/integration_tests.yaml index 847346b7..4fc49d65 100644 --- a/.github/workflows/integration_tests.yaml +++ b/.github/workflows/integration_tests.yaml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] max-parallel: 1 # no concurrency on this level, to not overshoot the test user limits steps: diff --git a/.github/workflows/lint_and_type_checks.yaml b/.github/workflows/lint_and_type_checks.yaml index c2cc2e1f..935d92dc 100644 --- a/.github/workflows/lint_and_type_checks.yaml +++ b/.github/workflows/lint_and_type_checks.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - name: Checkout repository diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml index 016b5242..b5074a9c 100644 --- a/.github/workflows/unit_tests.yaml +++ b/.github/workflows/unit_tests.yaml @@ -9,7 +9,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] runs-on: ${{ matrix.os }} steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index 870c7d20..099767b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,10 @@ Changelog [1.5.0](../../releases/tag/v1.5.0) - Unreleased ----------------------------------------------- + ### Added + +- added support for Python 3.12 - added DELETE to Actor runs - added DELETE to Actor builds diff --git a/pyproject.toml b/pyproject.toml index 4da5ea61..2f5bae09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,6 +18,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Libraries", ] @@ -29,30 +30,30 @@ dependencies = [ [project.optional-dependencies] dev = [ - "autopep8 ~= 2.0.2", - "build ~= 0.10.0", - "flake8 ~= 6.0.0", - "flake8-bugbear ~= 23.5.9", - "flake8-commas ~= 2.1.0", - "flake8-comprehensions ~= 3.12.0", + "autopep8 ~= 2.0.4", + "build ~= 1.0.3", + "flake8 ~= 6.1.0", + "flake8-bugbear ~= 23.9.16", + "flake8-commas ~= 2.1.0; python_version < '3.12'", + "flake8-comprehensions ~= 3.14.0", "flake8-datetimez ~= 20.10.0", "flake8-docstrings ~= 1.7.0", "flake8-encodings ~= 0.5.0", - "flake8-isort ~= 6.0.0", - "flake8-noqa ~= 1.3.1", + "flake8-isort ~= 6.1.0", + "flake8-noqa ~= 1.3.1; python_version < '3.12'", "flake8-pytest-style ~= 1.7.2", - "flake8-quotes ~= 3.3.2", - "flake8-simplify ~= 0.20.0", + "flake8-quotes ~= 3.3.2; python_version < '3.12'", + "flake8-simplify ~= 0.21.0", "flake8-unused-arguments ~= 0.0.13", "isort ~= 5.12.0", - "mypy ~= 1.3.0", + "mypy ~= 1.5.1", "pep8-naming ~= 0.13.3", - "pre-commit ~= 3.3.2", + "pre-commit ~= 3.4.0", "pydoc-markdown ~= 4.8.2", - "pytest ~= 7.3.1", + "pytest ~= 7.4.2", "pytest-asyncio ~= 0.21.0", "pytest-only ~= 2.0.0", - "pytest-timeout ~= 2.1.0", + "pytest-timeout ~= 2.2.0", "pytest-xdist ~= 3.3.1", "redbaron ~= 0.9.2", "twine ~= 4.0.2",