Skip to content

Commit 5c5b17c

Browse files
committed
Tweak install options and update installation instructions in readme
1 parent 9c1d80a commit 5c5b17c

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Uvicorn currently supports HTTP/1.1 and WebSockets. Support for HTTP/2 is planne
3131
Install using `pip`:
3232

3333
```shell
34-
$ pip install uvicorn
34+
$ pip install uvicorn[pure] # Install pure Python deps (works anywhere)
35+
$ pip install uvicorn[fast] # Install fast deps (not for e.g. Windows or Pypy)
3536
```
3637

3738
Create an application, in `example.py`:

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
click
2+
3+
# Pure
24
h11
35

46
# Optional

setup.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import os
55
import re
6-
import sys
76

87
from setuptools import setup
98

@@ -60,17 +59,10 @@ def get_packages(package):
6059
author_email='[email protected]',
6160
packages=get_packages('uvicorn'),
6261
data_files = [("", ["LICENSE.md"])],
63-
install_requires=[
64-
'click'
65-
'h11',
66-
'wsproto'
67-
],
62+
install_requires=['click'],
6863
extras_require={
69-
'full': [
70-
'uvloop',
71-
'httptools',
72-
'websockets>=6.0'
73-
]
64+
'pure': ['h11', 'wsproto==0.13.*'],
65+
'fast': ['uvloop', 'httptools', 'websockets>=6.0'],
7466
},
7567
classifiers=[
7668
'Development Status :: 4 - Beta',

0 commit comments

Comments
 (0)