Skip to content

Commit

Permalink
Added support for Python 3.9
Browse files Browse the repository at this point in the history
Details:

* Added Python 3.9 to .travis.yml and disabled Python 3.8 there.

* In .travis.yml, enabled coveralls for all Python versions but
  only for latest package levels.

* In .travis.yml, disabled 'make sanity' when on Ansible 2.9 and
  on Python 3.9 (or higher) because it is not supported by
  Ansible and not likely to be added.

Signed-off-by: Andreas Maier <maiera@de.ibm.com>
  • Loading branch information
andy-maier committed Nov 10, 2020
1 parent 5175e8a commit 23f7944
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .travis.yml
Expand Up @@ -68,20 +68,36 @@ jobs:
# python: "3.7"
# env:
# - PACKAGE_LEVEL=latest
# cache: pip

# - os: linux
# dist: xenial
# language: python
# python: "3.8"
# env:
# - PACKAGE_LEVEL=minimum
# cache: pip

# - os: linux
# dist: xenial
# language: python
# python: "3.8"
# env:
# - PACKAGE_LEVEL=latest
# cache: pip

- os: linux
dist: xenial
language: python
python: "3.8"
python: "3.9"
env:
- PACKAGE_LEVEL=minimum
cache: pip

- os: linux
dist: xenial
language: python
python: "3.8"
python: "3.9"
env:
- PACKAGE_LEVEL=latest
cache: pip
Expand Down Expand Up @@ -208,12 +224,13 @@ install:
- pip list

# commands to run builds & tests
# Note: make sanity is excluded on Ansible 2.9 and Python 3.9 (or higher) because it is not supported.
script:
- make docs
- make test
- make sanity
- if [[ "$PACKAGE_LEVEL" == "latest" || $(python --version 2>&1) =~ ([[:space:]])(2\.7|3\.[45678])(\.[0-9]) ]]; then make sanity; fi

after_success:
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PYTHON_VERSION" == "3.8" && "$PACKAGE_LEVEL" == "latest" ]]; then
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$PACKAGE_LEVEL" == "latest" ]]; then
coveralls;
fi
1 change: 1 addition & 0 deletions docs_source/intro.rst
Expand Up @@ -75,6 +75,7 @@ The following versions of Python are currently supported:
- Python 3.6
- Python 3.7
- Python 3.8
- Python 3.9

Higher versions of Python 3.x have not been tested at this point, but are
expected to work.
Expand Down

0 comments on commit 23f7944

Please sign in to comment.