Skip to content

Use optional package installs #298

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

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ Uvicorn currently supports HTTP/1.1 and WebSockets. Support for HTTP/2 is planne
Install using `pip`:

```shell
$ pip install uvicorn
$ pip install uvicorn # Install with minimal (pure Python) deps
$ pip install uvicorn[standard] # Install with fast deps (where possible)
```

Create an application, in `example.py`:
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Minimal
click
h11

Expand Down
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

import os
import re
import sys
import platform

from setuptools import setup

Expand Down Expand Up @@ -40,9 +38,12 @@ def get_packages(package):
" and platform_python_implementation != 'pypy'"
)

requirements = [
minimal_requirements = [
"click==7.*",
"h11==0.8.*",
]

extra_requirements = [
"websockets==8.*",
"httptools==0.0.13 ;" + env_marker,
"uvloop==0.14.0rc2 ;" + env_marker,
Expand All @@ -60,8 +61,9 @@ def get_packages(package):
author='Tom Christie',
author_email='[email protected]',
packages=get_packages('uvicorn'),
install_requires=requirements,
data_files = [("", ["LICENSE.md"])],
install_requires=minimal_requirements,
extras_require={'standard': extra_requirements},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
Expand Down