From 705e8b41004dba4f9a2dda0993205f9d610c7161 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 2 Sep 2021 23:58:52 +0100 Subject: [PATCH] Added support for Python 3.9 (#144) Signed-off-by: Graham Campbell --- .github/workflows/main.yml | 4 ++-- .pre-commit-config.yaml | 2 +- setup.py | 1 + tox.ini | 6 +++--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e0d0b48d..8d7bb55c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v1 with: - python-version: 3.8 + python-version: '3.9' - name: Install tox run: python -m pip install tox - name: Run linting @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: [3.6, 3.7, 3.8] + python: ['3.6', '3.7', '3.8', '3.9'] steps: - uses: actions/checkout@v2 - name: Setup Python diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed9f8e11..3deea520 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,4 +7,4 @@ repos: rev: 19.10b0 hooks: - id: black - language_version: python3.8 + language_version: python3.9 diff --git a/setup.py b/setup.py index dea6015c..af942387 100644 --- a/setup.py +++ b/setup.py @@ -38,6 +38,7 @@ "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", ], packages=find_packages(exclude=["cloudevents.tests"]), version=pypi_config["version_target"], diff --git a/tox.ini b/tox.ini index 76d8dc30..0b42cc74 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{36,37,38},lint +envlist = py{36,37,38,39},lint skipsdist = True [testenv] @@ -13,7 +13,7 @@ setenv = commands = pytest {env:PYTESTARGS} {posargs} [testenv:reformat] -basepython=python3.8 +basepython=python3.9 deps = black isort @@ -22,7 +22,7 @@ commands = isort cloudevents samples [testenv:lint] -basepython = python3.8 +basepython = python3.9 deps = black isort