From f6a41f8d3247bb091aec35f62de8a8ff584a983f Mon Sep 17 00:00:00 2001 From: Roald Nefs Date: Tue, 2 Jan 2024 12:22:26 -0800 Subject: [PATCH] feat: add Python 3.12 support (#315) Add Python 3.12 support and update tox.ini accordingly. Signed-off-by: Roald Nefs --- .github/workflows/tox.yml | 8 ++++---- CHANGELOG.md | 4 ++++ setup.py | 1 + tox.ini | 6 +++++- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 8785658..85fe447 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] + python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] steps: @@ -29,9 +29,9 @@ jobs: - name: Run syntax checker using Tox run: tox -e lint - # Skip linting on EOL Python version because the pre-commit actions - # required supported versions. - if: ${{ matrix.python != '3.6' }} + # Skip linting on EOL and newer Python version because the pre-commit + # actions required supported versions. + if: ${{ matrix.python != '3.6' && matrix.python != '3.12' }} - name: Run Tox # Run tox using the version of Python in `PATH` diff --git a/CHANGELOG.md b/CHANGELOG.md index 40220e7..979daca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes in **salt-lint** are documented below. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] +### Added +- Add Python 3.12 support ([#315](https://github.com/warpnet/salt-lint/pull/315)). + ## [0.9.2] (2023-02-09) ### Fixed - Ensure version identification adheres to [PEP440](https://peps.python.org/pep-0440/) ([!304](https://github.com/warpnet/salt-lint/issues/304)) diff --git a/setup.py b/setup.py index 18f49ee..3a467c3 100644 --- a/setup.py +++ b/setup.py @@ -78,6 +78,7 @@ def long_description(): 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Topic :: Software Development :: Bug Tracking', 'Topic :: Software Development :: Quality Assurance', 'Topic :: Software Development :: Testing', diff --git a/tox.ini b/tox.ini index c3c99e1..093c1d8 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # install tox" and then run "tox" from this directory. [tox] -envlist = lint,{py36,py37,py38,py39,py310,py311}-install,mypy +envlist = lint,{py36,py37,py38,py39,py310,py311,py312}-install,mypy skip_missing_interpreters = True [testenv] @@ -51,6 +51,10 @@ commands = {[testenv:install]commands} skip_install = {[testenv:install]skip_install} commands = {[testenv:install]commands} +[testenv:py312-install] +skip_install = {[testenv:install]skip_install} +commands = {[testenv:install]commands} + [testenv:lint] description = Run all linters basepython = python3