Skip to content

Commit

Permalink
feat: add Python 3.10 support (#265)
Browse files Browse the repository at this point in the history
Add Python 3.10 support by:
- Adding Python 3.10 as supported version in the classifiers in
  `setup.py`.
- Adding it as a tox environment.
- Adding it as additional Python version in the GitHub workflow called
  `tests`.

Signed-off-by: Roald Nefs <info@roaldnefs.com>
  • Loading branch information
roaldnefs authored Oct 17, 2021
1 parent bd520d0 commit 4deeadd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.6, 3.7, 3.8, 3.9]
python: ['3.6', '3.7', '3.8', '3.9', '3.10']

steps:

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def long_description():
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Software Development :: Bug Tracking',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
Expand Down
10 changes: 5 additions & 5 deletions 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}-install,mypy
envlist = lint,{py36,py37,py38,py39,py310}-install,mypy
skip_missing_interpreters = True

[testenv]
Expand All @@ -27,10 +27,6 @@ commands =
python setup.py bdist_wheel
pip install --no-index --find-links=dist salt-lint

[testenv:py27-install]
skip_install = {[testenv:install]skip_install}
commands = {[testenv:install]commands}

[testenv:py36-install]
skip_install = {[testenv:install]skip_install}
commands = {[testenv:install]commands}
Expand All @@ -47,6 +43,10 @@ commands = {[testenv:install]commands}
skip_install = {[testenv:install]skip_install}
commands = {[testenv:install]commands}

[testenv:py310-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 4deeadd

Please sign in to comment.