Skip to content

Commit

Permalink
build(tests): Python 3.10 support
Browse files Browse the repository at this point in the history
Adding Python 3.10 to our test suite

Refs GH-1273
  • Loading branch information
antonpirker committed Jan 24, 2022
1 parent bebd815 commit cb82d85
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def get_file_text(file_name):
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules",
],
options={"bdist_wheel": {"universal": "1"}},
Expand Down
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pytest
pytest-forked==1.1.3
pytest-forked==1.4.0
tox==3.7.0
Werkzeug
pytest-localserver==0.5.0
Expand Down
50 changes: 25 additions & 25 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[tox]
envlist =
# === Core ===
py{2.7,3.4,3.5,3.6,3.7,3.8,3.9}
py{2.7,3.4,3.5,3.6,3.7,3.8,3.9,3.10}
pypy


Expand All @@ -24,29 +24,28 @@ envlist =
{pypy,py2.7,py3.5}-django-{1.8,1.9,1.10}
{pypy,py2.7}-django-{1.8,1.9,1.10,1.11}
{py3.5,py3.6,py3.7}-django-{2.0,2.1}
{py3.7,py3.8,py3.9}-django-{2.2,3.0,3.1,3.2}
{py3.7,py3.8,py3.9,py3.10}-django-{2.2,3.0,3.1,3.2}

{pypy,py2.7,py3.4,py3.5,py3.6,py3.7,py3.8,py3.9}-flask-{0.10,0.11,0.12,1.0}
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-flask-1.1
{py3.6,py3.8,py3.9}-flask-2.0
{pypy,py2.7,py3.4,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-flask-{0.10,0.11,0.12,1.0}
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-flask-1.1
{py3.6,py3.8,py3.9,py3.10}-flask-2.0

{py3.7,py3.8,py3.9}-quart
{py3.7,py3.8,py3.9,py3.10}-quart

{pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-bottle-0.12
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-bottle-0.12

{pypy,py2.7,py3.5,py3.6,py3.7}-falcon-1.4
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-falcon-2.0
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-falcon-2.0

{py3.5,py3.6,py3.7}-sanic-{0.8,18}
{py3.6,py3.7}-sanic-19
{py3.6,py3.7,py3.8}-sanic-20
{py3.7,py3.8,py3.9}-sanic-21
{py3.7,py3.8,py3.9,py3.10}-sanic-21

# TODO: Add py3.9
{pypy,py2.7}-celery-3
{pypy,py2.7,py3.5,py3.6}-celery-{4.1,4.2}
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8}-celery-{4.3,4.4}
{py3.6,py3.7,py3.8}-celery-5.0
{py3.6,py3.7,py3.8,py3.9,py3.10}-celery-5.0

py3.7-beam-{2.12,2.13,2.32,2.33}

Expand All @@ -55,37 +54,37 @@ envlist =

py3.7-gcp

{pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-pyramid-{1.6,1.7,1.8,1.9,1.10}
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-pyramid-{1.6,1.7,1.8,1.9,1.10}

{pypy,py2.7,py3.5,py3.6}-rq-{0.6,0.7,0.8,0.9,0.10,0.11}
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-rq-{0.12,0.13,1.0,1.1,1.2,1.3}
{py3.5,py3.6,py3.7,py3.8,py3.9}-rq-{1.4,1.5}
{py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-rq-{1.4,1.5}

py3.7-aiohttp-3.5
{py3.7,py3.8,py3.9}-aiohttp-3.6
{py3.7,py3.8,py3.9,py3.10}-aiohttp-3.6

{py3.7,py3.8,py3.9}-tornado-{5,6}
{py3.7,py3.8,py3.9,py3.10}-tornado-{5,6}

{py3.5,py3.6,py3.7,py3.8,py3.9}-trytond-{4.6,5.0,5.2}
{py3.6,py3.7,py3.8,py3.9}-trytond-{5.4}
{py3.6,py3.7,py3.8,py3.9,py3.10}-trytond-{5.4}

{py2.7,py3.8,py3.9}-requests

{py2.7,py3.7,py3.8,py3.9}-redis
{py2.7,py3.7,py3.8,py3.9}-rediscluster-{1,2}

py{3.7,3.8,3.9}-asgi
py{3.7,3.8,3.9,py3.10}-asgi

{py2.7,py3.7,py3.8,py3.9}-sqlalchemy-{1.2,1.3}
{py2.7,py3.7,py3.8,py3.9,py3.10}-sqlalchemy-{1.2,1.3}


{py3.5,py3.6,py3.7,py3.8,py3.9}-pure_eval
{py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-pure_eval

{py3.6,py3.7,py3.8}-chalice-{1.16,1.17,1.18,1.19,1.20}

{py2.7,py3.6,py3.7,py3.8}-boto3-{1.9,1.10,1.11,1.12,1.13,1.14,1.15,1.16}

{py3.6,py3.7,py3.8,py3.9}-httpx-{0.16,0.17}
{py3.6,py3.7,py3.8,py3.9,py3.10}-httpx-{0.16,0.17}

[testenv]
deps =
Expand All @@ -96,9 +95,9 @@ deps =

django-{1.11,2.0,2.1,2.2,3.0,3.1,3.2}: djangorestframework>=3.0.0,<4.0.0

{py3.7,py3.8,py3.9}-django-{1.11,2.0,2.1,2.2,3.0,3.1,3.2}: channels>2
{py3.7,py3.8,py3.9}-django-{1.11,2.0,2.1,2.2,3.0,3.1,3.2}: pytest-asyncio
{py2.7,py3.7,py3.8,py3.9}-django-{1.11,2.2,3.0,3.1,3.2}: psycopg2-binary
{py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.0,2.1,2.2,3.0,3.1,3.2}: channels>2
{py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.0,2.1,2.2,3.0,3.1,3.2}: pytest-asyncio
{py2.7,py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.2,3.0,3.1,3.2}: psycopg2-binary

django-{1.6,1.7}: pytest-django<3.0
django-{1.8,1.9,1.10,1.11,2.0,2.1}: pytest-django<4.0
Expand Down Expand Up @@ -140,7 +139,7 @@ deps =
sanic-19: sanic>=19.0,<20.0
sanic-20: sanic>=20.0,<21.0
sanic-21: sanic>=21.0,<22.0
{py3.7,py3.8,py3.9}-sanic-21: sanic_testing
{py3.7,py3.8,py3.9,py3.10}-sanic-21: sanic_testing
{py3.5,py3.6}-sanic: aiocontextvars==0.2.1
sanic: aiohttp
py3.5-sanic: ujson<4
Expand All @@ -163,7 +162,7 @@ deps =
celery-5.0: Celery>=5.0,<5.1

py3.5-celery: newrelic<6.0.0
{pypy,py2.7,py3.6,py3.7,py3.8,py3.9}-celery: newrelic
{pypy,py2.7,py3.6,py3.7,py3.8,py3.9,py3.10}-celery: newrelic

requests: requests>=2.0

Expand Down Expand Up @@ -295,6 +294,7 @@ basepython =
py3.7: python3.7
py3.8: python3.8
py3.9: python3.9
py3.10: python3.10

# Python version is pinned here because flake8 actually behaves differently
# depending on which version is used. You can patch this out to point to
Expand Down

0 comments on commit cb82d85

Please sign in to comment.