From a6b6905f3896b9ec3cc2bbc9515eb3a80de30d8e Mon Sep 17 00:00:00 2001 From: Mila Page Date: Tue, 23 Jul 2024 13:13:05 -0700 Subject: [PATCH] Add support for 3.12 in workflow files and configs. --- .github/workflows/integration.yml | 4 +++- .github/workflows/main.yml | 4 ++-- .pre-commit-config.yaml | 1 + setup.py | 1 + tox.ini | 6 +++--- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index b05fcb00d..5a320e258 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -76,6 +76,8 @@ jobs: python-version: "3.10" - os: ubuntu-22.04 python-version: "3.11" + - os: ubuntu-22.04 + python-version: "3.12" env: TOXENV: integration-redshift @@ -201,7 +203,7 @@ jobs: fail-fast: false max-parallel: 1 matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] env: TOXENV: integration-redshift diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e21d453fe..5acb4f7b5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -70,7 +70,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] env: TOXENV: "unit" @@ -174,7 +174,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-22.04, macos-12, windows-2022] - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - name: Set up Python ${{ matrix.python-version }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae249943d..a46d0f050 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,6 +27,7 @@ repos: - --target-version=py39 - --target-version=py310 - --target-version=py311 + - --target-version=py312 - repo: https://github.com/pycqa/flake8 rev: 7.0.0 diff --git a/setup.py b/setup.py index 036ac30fb..712da3870 100644 --- a/setup.py +++ b/setup.py @@ -71,6 +71,7 @@ def _plugin_version() -> str: "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ], python_requires=">=3.8", ) diff --git a/tox.ini b/tox.ini index 462bc8f07..fafa867a3 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,8 @@ [tox] skipsdist = True -envlist = py38,py39,py310,py311 +envlist = py38,py39,py310,py311,py312 -[testenv:{unit,py38,py39,py310,py311,py}] +[testenv:{unit,py38,py39,py310,py311,py312,py}] description = unit testing skip_install = true passenv = @@ -13,7 +13,7 @@ deps = -rdev-requirements.txt -e. -[testenv:{integration,py38,py39,py310,py311,py}-{redshift}] +[testenv:{integration,py38,py39,py310,py311,py312,py}-{redshift}] description = adapter plugin integration testing skip_install = true passenv =