From de64e991066625fdc942be12eb93e316a374ca58 Mon Sep 17 00:00:00 2001 From: Jordan Eremieff <1376648+jordaneremieff@users.noreply.github.com> Date: Mon, 7 Mar 2022 22:45:27 +1100 Subject: [PATCH] :pushpin: Remove references to Python 3.6, update setup.py. (#246) --- CONTRIBUTING.md | 2 +- docs/contributing.md | 2 +- setup.py | 2 +- tests/test_lifespan.py | 10 +--------- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1008f707..fe101090 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -65,7 +65,7 @@ python -m venv venv pip install -r requirements.txt ``` -This environment is used to run the tests. Python versions 3.6, 3.7, and 3.8 are supported. +This environment is used to run the tests for Python versions 3.7, 3.8, 3.9, and 3.10. ### Test diff --git a/docs/contributing.md b/docs/contributing.md index 1008f707..fe101090 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -65,7 +65,7 @@ python -m venv venv pip install -r requirements.txt ``` -This environment is used to run the tests. Python versions 3.6, 3.7, and 3.8 are supported. +This environment is used to run the tests for Python versions 3.7, 3.8, 3.9, and 3.10. ### Test diff --git a/setup.py b/setup.py index e58699b9..020fbc8b 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ def get_long_description(): url="https://github.com/jordaneremieff/mangum", description="AWS Lambda support for ASGI applications", long_description=get_long_description(), - python_requires=">=3.6", + python_requires=">=3.7", install_requires=["typing_extensions"], package_data={"mangum": ["py.typed"]}, long_description_content_type="text/markdown", diff --git a/tests/test_lifespan.py b/tests/test_lifespan.py index 410e5a31..2bac53e1 100644 --- a/tests/test_lifespan.py +++ b/tests/test_lifespan.py @@ -1,4 +1,3 @@ -import sys import logging import pytest @@ -9,13 +8,7 @@ from mangum import Mangum from mangum.exceptions import LifespanFailure -# Quart no longer support python3.6. -IS_PY36 = sys.version_info[:2] == (3, 6) - -if not IS_PY36: - from quart import Quart -else: - Quart = None +from quart import Quart @pytest.mark.parametrize( @@ -269,7 +262,6 @@ def homepage(request): } -@pytest.mark.skipif(IS_PY36, reason="Quart does not support Python 3.6.") @pytest.mark.parametrize( "mock_aws_api_gateway_event", [["GET", None, None]], indirect=True )