From d62e4cd80ce581921a65e5d6795cfb3aeaf068d8 Mon Sep 17 00:00:00 2001 From: Joe Testa Date: Sun, 22 Oct 2023 16:43:04 -0400 Subject: [PATCH] Added Python 3.12 to Tox tests. --- .github/workflows/tox.yaml | 2 +- README.md | 5 ++++- setup.cfg | 1 + tox.ini | 20 ++++++++++---------- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tox.yaml b/.github/workflows/tox.yaml index 6c40f0c..a8f25fe 100644 --- a/.github/workflows/tox.yaml +++ b/.github/workflows/tox.yaml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9, "3.10", 3.11] + python-version: [3.7, 3.8, 3.9, "3.10", 3.11, 3.12] steps: - uses: actions/checkout@v2 diff --git a/README.md b/README.md index 6046145..b2e7af3 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ - historical information from OpenSSH, Dropbear SSH and libssh; - policy scans to ensure adherence to a hardened/standard configuration; - runs on Linux and Windows; -- supports Python 3.7 - 3.11; +- supports Python 3.7 - 3.12; - no dependencies ## Usage @@ -178,6 +178,9 @@ For convenience, a web front-end on top of the command-line tool is available at ## ChangeLog +### v3.1.0-dev (???) + - Added Python 3.12 to Tox tests. + ### v3.0.0 (2023-09-07) - Results from concurrent scans against multiple hosts are no longer improperly combined; bug discovered by [Adam Russell](https://github.com/thecliguy). - Hostname resolution failure no longer causes scans against multiple hosts to terminate unexpectedly; credit [Dani Cuesta](https://github.com/daniel-cues). diff --git a/setup.cfg b/setup.cfg index 420ed77..987733e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -24,6 +24,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: PyPy Topic :: Security diff --git a/tox.ini b/tox.ini index 94651f8..2df9750 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] envlist = py{py3}-{test,pylint,flake8,vulture} - py{37,38,39,310,311}-{test,mypy,pylint,flake8,vulture} + py{37,38,39,310,311,312}-{test,mypy,pylint,flake8,vulture} cov skip_missing_interpreters = true @@ -9,11 +9,11 @@ skip_missing_interpreters = true deps = test: pytest test,cov: {[testenv:cov]deps} - test,py{37,38,39,310,311}-{type,mypy}: colorama - py{37,38,39,310,311}-{type,mypy}: {[testenv:mypy]deps} - py{py3,37,38,39,310,311}-{lint,pylint},lint: {[testenv:pylint]deps} - py{py3,37,38,39,310,311}-{lint,flake8},lint: {[testenv:flake8]deps} - py{py3,37,38,39,310,311}-{lint,vulture},lint: {[testenv:vulture]deps} + test,py{37,38,39,310,311,312}-{type,mypy}: colorama + py{37,38,39,310,311,312}-{type,mypy}: {[testenv:mypy]deps} + py{py3,37,38,39,310,311,312}-{lint,pylint},lint: {[testenv:pylint]deps} + py{py3,37,38,39,310,311,312}-{lint,flake8},lint: {[testenv:flake8]deps} + py{py3,37,38,39,310,311,312}-{lint,vulture},lint: {[testenv:vulture]deps} setenv = SSHAUDIT = {toxinidir}/src test: COVERAGE_FILE = {toxinidir}/.coverage.{envname} @@ -25,10 +25,10 @@ commands = test: coverage combine test: coverage report --show-missing test: coverage html -d {toxinidir}/reports/html/coverage.{envname} - py{37,38,39,310,311}-{type,mypy}: {[testenv:mypy]commands} - py{py3,37,38,39,310,311}-{lint,pylint},lint: {[testenv:pylint]commands} - py{py3,37,38,39,310,311}-{lint,flake8},lint: {[testenv:flake8]commands} - py{py3,37,38,39,310,311}-{lint,vulture},lint: {[testenv:vulture]commands} + py{37,38,39,310,311,312}-{type,mypy}: {[testenv:mypy]commands} + py{py3,37,38,39,310,311,312}-{lint,pylint},lint: {[testenv:pylint]commands} + py{py3,37,38,39,310,311,312}-{lint,flake8},lint: {[testenv:flake8]commands} + py{py3,37,38,39,310,311,312}-{lint,vulture},lint: {[testenv:vulture]commands} #ignore_outcome = # type: true # lint: true