Skip to content

Commit

Permalink
📌 Remove references to Python 3.6, update setup.py. (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordaneremieff authored Mar 7, 2022
1 parent 3a0a422 commit de64e99
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 1 addition & 9 deletions tests/test_lifespan.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import sys
import logging

import pytest
Expand All @@ -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(
Expand Down Expand Up @@ -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
)
Expand Down

0 comments on commit de64e99

Please sign in to comment.