diff --git a/requirements.txt b/requirements.txt index 024d87e30..0b54fa596 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,10 +2,10 @@ -e .[full] # Testing -autoflake==1.4 -black==22.6.0 +autoflake==1.5.3 +black==22.8.0 coverage==6.4.2 -databases[sqlite]==0.5.5 +databases[sqlite]==0.6.1 flake8==3.9.2 isort==5.10.1 mypy==0.971 @@ -20,7 +20,7 @@ greenlet==2.0.0a2; python_version >= "3.11" # Documentation mkdocs==1.3.1 -mkdocs-material==8.3.9 +mkdocs-material==8.4.2 mkautodoc==0.1.0 # Packaging diff --git a/setup.py b/setup.py new file mode 100644 index 000000000..1a990461f --- /dev/null +++ b/setup.py @@ -0,0 +1,29 @@ +import sys + +from setuptools import setup + +sys.stderr.write( + """ +=============================== +Unsupported installation method +=============================== +Starlette no longer supports installation with `python setup.py install`. +Please use `python -m pip install .` instead. +""" +) +sys.exit(1) + + +# The below code will never execute, however GitHub is particularly +# picky about where it finds Python packaging metadata. +# See: https://github.com/github/feedback/discussions/6456 +# +# To be removed once GitHub catches up. + +setup( + name="starlette", + install_requires=[ + "anyio>=3.4.0,<5", + "typing_extensions>=3.10.0; python_version < '3.10'", + ], +)