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

Dependencies: Migrate from WhiteNoise to ServeStatic #562

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ Powered by `Starlette`_. That ``async`` declaration is optional.

The little program demonstrates an `ASGI`_ application using `Responder`_,
including production-ready components like the `uvicorn`_ webserver, based
on `uvloop`_, the static files server `WhiteNoise`_, and the `Jinja`_
on `uvloop`_, the static files server `ServeStatic`_, and the `Jinja`_
templating library pre-installed.

Features
@@ -165,10 +165,10 @@ Indices and tables
.. _Django REST Framework: https://www.django-rest-framework.org/
.. _f-string syntax: https://docs.python.org/3/whatsnew/3.6.html#pep-498-formatted-string-literals
.. _Jinja: https://jinja.palletsprojects.com/en/stable/
.. _ServeStatic: https://archmonger.github.io/ServeStatic/latest/
.. _Slowloris: https://en.wikipedia.org/wiki/Slowloris_(computer_security)
.. _Starlette: https://www.starlette.io/
.. _Responder: https://responder.kennethreitz.org/
.. _Two Scoops of Django: https://www.feldroy.com/two-scoops-press#two-scoops-of-django
.. _uvicorn: https://www.uvicorn.org/
.. _uvloop: https://uvloop.readthedocs.io/
.. _WhiteNoise: https://whitenoise.readthedocs.io/en/latest/
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -28,9 +28,12 @@
"requests",
"requests-toolbelt",
"rfc3986",
# ServeStatic is the successor to WhiteNoise.
# WhiteNoise is used for backward compatibility with Python <3.8.
"servestatic; python_version>='3.8'",
"starlette[full]",
"uvicorn[standard]",
"whitenoise",
"whitenoise; python_version<'3.8'",
]