Skip to content

Commit 2e5b96b

Browse files
digrant
andauthored
Support Python 3.10 (#150)
* ci: test python3.10 Signed-off-by: Grant Timmerman <[email protected]> Signed-off-by: Dustin Ingram <[email protected]> * Remove hard pins in requirements Signed-off-by: Dustin Ingram <[email protected]> * Add sanic_testing dependency Signed-off-by: Dustin Ingram <[email protected]> * Constrain sanic/sanic-testing for 3.6 Signed-off-by: Dustin Ingram <[email protected]> Co-authored-by: Grant Timmerman <[email protected]>
1 parent 6f27322 commit 2e5b96b

File tree

6 files changed

+15
-12
lines changed

6 files changed

+15
-12
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Setup Python
1212
uses: actions/setup-python@v1
1313
with:
14-
python-version: '3.9'
14+
python-version: '3.10'
1515
- name: Install tox
1616
run: python -m pip install tox
1717
- name: Run linting
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
strategy:
2323
matrix:
24-
python: ['3.6', '3.7', '3.8', '3.9']
24+
python: ['3.6', '3.7', '3.8', '3.9', '3.10']
2525
steps:
2626
- uses: actions/checkout@v2
2727
- name: Setup Python

requirements/docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Sphinx==1.8.2
1+
Sphinx

requirements/publish.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
GitPython==3.1.7
2-
cloudevents
1+
GitPython
2+
cloudevents

requirements/test.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
flake8
2-
pep8-naming==0.5.0
2+
pep8-naming
33
flake8-import-order
44
flake8-print
55
flake8-strict
6-
pytest==4.0.0
7-
pytest-cov==2.4.0
6+
pytest
7+
pytest-cov
88
# web app tests
9-
sanic==20.12.3
9+
sanic<=20.12.4; python_version <= '3.6'
10+
sanic; python_version > '3.6'
11+
sanic-testing; python_version > '3.6'
1012
aiohttp
1113
Pillow
1214
requests

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"Programming Language :: Python :: 3.7",
4040
"Programming Language :: Python :: 3.8",
4141
"Programming Language :: Python :: 3.9",
42+
"Programming Language :: Python :: 3.10",
4243
],
4344
packages=find_packages(exclude=["cloudevents.tests"]),
4445
version=pypi_config["version_target"],

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{36,37,38,39},lint
2+
envlist = py{36,37,38,39,310},lint
33
skipsdist = True
44

55
[testenv]
@@ -13,7 +13,7 @@ setenv =
1313
commands = pytest {env:PYTESTARGS} {posargs}
1414

1515
[testenv:reformat]
16-
basepython=python3.9
16+
basepython=python3.10
1717
deps =
1818
black
1919
isort
@@ -22,7 +22,7 @@ commands =
2222
isort cloudevents samples
2323

2424
[testenv:lint]
25-
basepython = python3.9
25+
basepython = python3.10
2626
deps =
2727
black
2828
isort

0 commit comments

Comments
 (0)