From 29467c32c005de99fdce868fa551e728928a50bf Mon Sep 17 00:00:00 2001 From: Mila Page <67295367+VersusFacit@users.noreply.github.com> Date: Tue, 23 Jul 2024 10:42:05 -0700 Subject: [PATCH] Add Python 3.12 to list of supported version (#1144) * Adding 12 for migration testing * Cleanup other references and add changelog. --------- Co-authored-by: Mila Page --- .changes/unreleased/Under the Hood-20240722-143114.yaml | 6 ++++++ .github/scripts/integration-test-matrix.js | 2 +- .github/workflows/main.yml | 4 ++-- .pre-commit-config.yaml | 1 + setup.py | 1 + tox.ini | 6 +++--- 6 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 .changes/unreleased/Under the Hood-20240722-143114.yaml diff --git a/.changes/unreleased/Under the Hood-20240722-143114.yaml b/.changes/unreleased/Under the Hood-20240722-143114.yaml new file mode 100644 index 000000000..dc5c2dbb1 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20240722-143114.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: Add support for Python 3.12 +time: 2024-07-22T14:31:14.024865-07:00 +custom: + Author: versusfacit + Issue: "903" diff --git a/.github/scripts/integration-test-matrix.js b/.github/scripts/integration-test-matrix.js index ceb01cd2e..81386c54e 100644 --- a/.github/scripts/integration-test-matrix.js +++ b/.github/scripts/integration-test-matrix.js @@ -1,6 +1,6 @@ module.exports = ({ context }) => { const defaultPythonVersion = "3.8"; - const supportedPythonVersions = ["3.8", "3.9", "3.10", "3.11"]; + const supportedPythonVersions = ["3.8", "3.9", "3.10", "3.11", "3.12"]; const supportedAdapters = ["snowflake"]; // if PR, generate matrix based on files changed and PR labels diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 340af75c0..67b8d4e57 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -71,7 +71,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" @@ -175,7 +175,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-12, windows-latest] - 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 b6b26b559..e14455e28 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,6 +28,7 @@ repos: - --target-version=py39 - --target-version=py310 - --target-version=py311 + - --target-version=py312 additional_dependencies: [flaky] - repo: https://github.com/pycqa/flake8 diff --git a/setup.py b/setup.py index aa7b3772c..210c309b1 100644 --- a/setup.py +++ b/setup.py @@ -77,6 +77,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 4697044da..d6f040a61 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}-{snowflake}] +[testenv:{integration,py38,py39,py310,py311,py312,py}-{snowflake}] description = adapter plugin integration testing skip_install = true passenv =