Skip to content

Commit

Permalink
Run tests against Python 3.12 and add trove classifier
Browse files Browse the repository at this point in the history
According to https://docs.python.org/3.12/whatsnew/3.12.html,
setuptools is no longer installed by default in virtual environments:

    gh-95299: Do not pre-install setuptools in virtual environments
    created with venv. This means that distutils, setuptools,
    pkg_resources, and easy_install will no longer available by
    default; to access these run pip install setuptools in the
    activated virtual environment.

Therefore we have to add it as a dependency to tox.ini.
  • Loading branch information
michael-k committed Oct 5, 2023
1 parent 3583b42 commit 29d5e6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ classifiers =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
project_urls =
Changelog = https://github.com/cloudtools/awacs/blob/master/CHANGELOG.md
Source = https://github.com/cloudtools/awacs
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[tox]
envlist =
py{36,37,38,39,310,311}
py{36,37,38,39,310,311,312}
qa,package

[testenv]
deps =
setuptools
commands = python -W error::PendingDeprecationWarning setup.py test {posargs}

[testenv:mypy]
Expand Down

0 comments on commit 29d5e6d

Please sign in to comment.