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
Merged
2 changes: 1 addition & 1 deletion .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ It is production-ready, and gives you the following:

## Requirements

Python 3.6+
Python 3.7+ (For Python 3.6 support, install version 0.17.1)

## Installation

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ It is production-ready, and gives you the following:

## Requirements

Python 3.6+
Python 3.7+ (For Python 3.6 support, install version 0.17.1)

## Installation

Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
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.4.0,<5",
"typing_extensions>=3.10.0; python_version < '3.10'",
"contextlib2 >= 21.6.0; python_version < '3.7'",
],
extras_require={
"full": [
Expand All @@ -60,7 +59,6 @@ def get_long_description():
"Topic :: Internet :: WWW/HTTP",
"Framework :: AnyIO",
"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
62 changes: 0 additions & 62 deletions starlette/_pep562.py

This file was deleted.

5 changes: 0 additions & 5 deletions starlette/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import warnings
from typing import List

from starlette._pep562 import pep562

__all__ = (
"HTTP_100_CONTINUE",
"HTTP_101_SWITCHING_PROTOCOLS",
Expand Down Expand Up @@ -201,6 +199,3 @@ def __getattr__(name: str) -> int:

def __dir__() -> List[str]:
return sorted(list(__all__) + list(__deprecated__.keys())) # pragma: no cover


pep562(__name__)