Skip to content

Commit 0b1750c

Browse files
relsunkaevRamazan Elsunkaev
authored andcommitted
Added explicit python3.9 and 3.10 support (Kludex#224)
* Added python3.9 and 3.10 support; - Added python3.9 and 3.10 tests to CI; - Added python3.9 and 3.10 classifiers to `setup.py`; - Changed `quart` python version constraint; - Adjusted tests to reflect the former; * Fixed `Quart` import conditions in `test_lifespan.py`; Co-authored-by: Ramazan Elsunkaev <ramazan@up-linq.com>
1 parent 54e3e3e commit 0b1750c

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: [3.6, 3.7, 3.8]
14+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
1515
steps:
1616
- uses: actions/checkout@v2
1717
- name: Set up Python ${{ matrix.python-version }}

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pytest-cov
55
black
66
flake8
77
starlette
8-
quart; python_version == '3.7'
8+
quart; python_version >= '3.7'
99
moto[server]
1010
mypy
1111
brotli

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@ def get_long_description():
2626
"Programming Language :: Python :: 3.6",
2727
"Programming Language :: Python :: 3.7",
2828
"Programming Language :: Python :: 3.8",
29+
"Programming Language :: Python :: 3.9",
30+
"Programming Language :: Python :: 3.10",
2931
],
3032
)

tests/test_lifespan.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
from mangum import Mangum
99
from mangum.exceptions import LifespanFailure
1010

11-
# One (or more) of Quart's dependencies does not support Python 3.8, ignore this case.
12-
IS_PY38 = sys.version_info[:2] == (3, 8)
11+
# Quart no longer support python3.6.
1312
IS_PY36 = sys.version_info[:2] == (3, 6)
1413

15-
if not (IS_PY38 or IS_PY36):
14+
if not IS_PY36:
1615
from quart import Quart
1716
else:
1817
Quart = None
@@ -269,9 +268,6 @@ def homepage(request):
269268
}
270269

271270

272-
@pytest.mark.skipif(
273-
IS_PY38, reason="One (or more) of Quart's dependencies does not support Python 3.8."
274-
)
275271
@pytest.mark.skipif(IS_PY36, reason="Quart does not support Python 3.6.")
276272
@pytest.mark.parametrize(
277273
"mock_aws_api_gateway_event", [["GET", None, None]], indirect=True

0 commit comments

Comments
 (0)