Skip to content

Commit

Permalink
Add support for py310
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Oct 6, 2021
1 parent af402d0 commit f033f56
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ jobs:
- 3.7
- 3.8
- 3.9
- "3.10"
# NOTE: Installing ansible under 3.10-dev is currently not
# NOTE: possible because compiling cffi explodes.
os:
Expand All @@ -131,12 +132,18 @@ jobs:
os: ubuntu-20.04
python-version: 3.9
devel: true
- tox_env: py310
os: ubuntu-20.04
python-version: "3.10"
devel: true
skip_ansible29: true
- tox_env: py36
os: macOS-latest
python-version: 3.6
- tox_env: py38
- tox_env: py310
os: macOS-latest
python-version: 3.8
python-version: "3.10"
skip_ansible29: true

env:
TOX_PARALLEL_NO_SPINNER: 1
Expand Down Expand Up @@ -194,6 +201,7 @@ jobs:
env:
TOXENV: ${{ matrix.tox_env }}-core
- name: "Test with tox: ${{ matrix.tox_env }}-ansible29"
if: ${{ !matrix.skip_ansible29 }}
run: |
python3 -m tox
env:
Expand Down
8 changes: 8 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ filterwarnings =

# Ansible originated
ignore:The _yaml extension module is now located at yaml._yaml and its location is subject to change:DeprecationWarning:
# Ansible insides on py310:
ignore:_SixMetaPathImporter:ImportWarning
ignore:_AnsibleCollectionFinder:ImportWarning
ignore:_AnsibleCollectionRootPkgLoader:ImportWarning
ignore:_AnsibleCollectionNSPkgLoader.exec_module:ImportWarning
ignore:_AnsibleCollectionPkgLoader.exec_module:ImportWarning
ignore:_AnsiblePathHookFinder.find_spec:ImportWarning
ignore:The distutils package is deprecated and slated for removal:DeprecationWarning

# TODO: delete the following ignores once Ansible that we support gets rid of `imp`
# Ref: https://github.com/ansible-community/ansible-lint/pull/734
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ classifiers =
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: Implementation
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: Jython
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ minversion = 3.16.1
envlist =
lint
packaging
py310-{core,devel}
py{39,38}-{core,ansible29,devel}
py{37,36}-{core,ansible29}
isolated_build = true
Expand Down

0 comments on commit f033f56

Please sign in to comment.