Skip to content

Commit

Permalink
feat: add Python 3.12 support
Browse files Browse the repository at this point in the history
Add Python 3.12 support and update tox.ini accordingly.

Signed-off-by: Roald Nefs <info@roaldnefs.com>
  • Loading branch information
roaldnefs committed Jan 2, 2024
1 parent 9fd0b62 commit 0f7fa17
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -31,7 +31,7 @@ jobs:
run: tox -e lint
# Skip linting on EOL Python version because the pre-commit actions
# required supported versions.
if: ${{ matrix.python != '3.6' }}
if: ${{ matrix.python != '3.6' && matrix.python != '3.12' }}

- name: Run Tox
# Run tox using the version of Python in `PATH`
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

## [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))
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0f7fa17

Please sign in to comment.