Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Python 3.6 #1357

Merged
merged 15 commits into from Apr 22, 2022
2 changes: 1 addition & 1 deletion .github/workflows/test-suite.yml
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: "actions/checkout@v2"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -40,7 +40,7 @@ It is production-ready, and gives you the following:

## Requirements

Python 3.6+
Python 3.7+

## Installation

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Expand Up @@ -36,7 +36,7 @@ It is production-ready, and gives you the following:

## Requirements

Python 3.6+
Python 3.7+

## Installation

Expand Down
4 changes: 1 addition & 3 deletions setup.py
Expand Up @@ -25,7 +25,7 @@ def get_long_description():

setup(
name="starlette",
python_requires=">=3.6",
python_requires=">=3.7",
version=get_version("starlette"),
url="https://github.com/encode/starlette",
license="BSD",
Expand All @@ -40,7 +40,6 @@ def get_long_description():
install_requires=[
"anyio>=3.0.0,<4",
"typing_extensions; python_version < '3.8'",
"contextlib2 >= 21.6.0; python_version < '3.7'",
],
extras_require={
"full": [
Expand All @@ -59,7 +58,6 @@ def get_long_description():
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand Down
7 changes: 1 addition & 6 deletions starlette/concurrency.py
@@ -1,15 +1,10 @@
import contextvars
import functools
import typing
from typing import Any, AsyncGenerator, Iterator

import anyio

try:
import contextvars # Python 3.7+ only or via contextvars backport.
except ImportError: # pragma: no cover
contextvars = None # type: ignore


T = typing.TypeVar("T")


Expand Down