Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Commit 84e3a58

Browse files
authored
Add py310 support (#103)
1 parent 8565ee3 commit 84e3a58

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

.github/workflows/tox.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,34 @@ jobs:
2121
matrix:
2222
include:
2323
- tox_env: linters
24+
python-version: "3.10"
2425
- tox_env: py36
2526
PREFIX: PYTEST_REQPASS=1
27+
python-version: 3.6
2628
- tox_env: py37
2729
PREFIX: PYTEST_REQPASS=1
30+
python-version: 3.7
2831
- tox_env: py38
2932
PREFIX: PYTEST_REQPASS=1
33+
python-version: 3.8
3034
- tox_env: py39
3135
PREFIX: PYTEST_REQPASS=1
36+
python-version: 3.9
37+
- tox_env: py310
38+
PREFIX: PYTEST_REQPASS=1
39+
python-version: "3.10"
3240
- tox_env: devel
3341
PREFIX: PYTEST_REQPASS=1
42+
python-version: "3.10"
3443
- tox_env: packaging
44+
python-version: "3.10"
3545

3646
steps:
3747
- uses: actions/checkout@v1
38-
- name: Find python version
39-
id: py_ver
40-
shell: python
41-
if: ${{ contains(matrix.tox_env, 'py') }}
42-
run: |
43-
v = '${{ matrix.tox_env }}'.split('-')[0].lstrip('py')
44-
print('::set-output name=version::{0}.{1}'.format(v[0],v[1:]))
45-
# Even our lint and other envs need access to tox
46-
- name: Install a default Python
47-
uses: actions/setup-python@v2
48-
if: ${{ ! contains(matrix.tox_env, 'py') }}
49-
# Be sure to install the version of python needed by a specific test, if necessary
50-
- name: Set up Python version
48+
- name: Set up Python ${{ matrix.python-version }}
5149
uses: actions/setup-python@v2
52-
if: ${{ contains(matrix.tox_env, 'py') }}
5350
with:
54-
python-version: ${{ steps.py_ver.outputs.version }}
51+
python-version: ${{ matrix.python-version }}
5552
- name: Install dependencies
5653
run: |
5754
python -m pip install -U pip

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ classifiers =
3333
Programming Language :: Python :: 3.7
3434
Programming Language :: Python :: 3.8
3535
Programming Language :: Python :: 3.9
36+
Programming Language :: Python :: 3.10
3637
Programming Language :: Python :: Implementation :: CPython
3738
Programming Language :: Python :: Implementation :: PyPy
3839
Topic :: Software Development :: Testing
@@ -70,6 +71,7 @@ setup_requires =
7071
# avoid installing versions that are not compatible.
7172
install_requires =
7273
molecule>=3.1.0
74+
molecule>=3.5.2; python_version>='3.10'
7375
pytest-html
7476

7577
[options.extras_require]

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ envlist =
55
linters
66
devel
77
packaging
8-
py{36,37,38,39}
8+
py{36,37,38,39,310}
99
skipsdist = True
1010
isolated_build = True
1111

@@ -30,7 +30,7 @@ extras =
3030
podman
3131
vagrant
3232
deps =
33-
py{36,37,38,39}: molecule[test,docker]
33+
py{36,37,38,39,310}: molecule[test,docker]
3434
devel: git+https://github.com/pycontribs/ansi2html.git#egg=ansi2html
3535
devel: git+https://github.com/pytest-dev/pytest-html.git#egg=pytest-html
3636
devel: git+https://github.com/ansible-community/molecule#egg=molecule[test,docker]

0 commit comments

Comments
 (0)