File tree Expand file tree Collapse file tree 1 file changed +27
-10
lines changed Expand file tree Collapse file tree 1 file changed +27
-10
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ echo protocol. Read more about uvloop
37
37
Installation
38
38
------------
39
39
40
- uvloop requires Python 3.5 and is available on PyPI.
40
+ uvloop requires Python 3.5 or greater and is available on PyPI.
41
41
Use pip to install it::
42
42
43
43
$ pip install uvloop
@@ -53,23 +53,40 @@ loop policy:
53
53
54
54
import asyncio
55
55
import uvloop
56
+
56
57
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
57
58
58
59
59
- Development of uvloop
60
- ---------------------
60
+ Building From Source
61
+ --------------------
62
+
63
+ To build uvloop, you'll need Python 3.5 or greater:
64
+
65
+ 1. Clone the repository:
66
+
67
+ .. code ::
68
+
69
+ $ git clone --recursive [email protected] :MagicStack/uvloop.git
70
+ $ cd uvloop
71
+
72
+ 2. Create a virtual environment and activate it, for example:
73
+
74
+ .. code ::
75
+
76
+ $ python3.7 -m venv uvloop-dev
77
+ $ source uvloop-dev/bin/activate
78
+
79
+ 3. Install development dependencies:
61
80
62
- To build uvloop, you'll need Cython and Python 3.5. The best way
63
- is to create a virtual env, so that you'll have ``cython `` and
64
- ``python `` commands pointing to the correct tools.
81
+ .. code ::
65
82
66
- 1. `` git clone --recursive [email protected] :MagicStack/uvloop.git ``
83
+ $ pip install -r requirements.dev.txt
67
84
68
- 2. `` cd uvloop ``
85
+ 4. Build and run tests:
69
86
70
- 3. `` make ``
87
+ .. code ::
71
88
72
- 4. `` make test ``
89
+ $ make && make test
73
90
74
91
75
92
License
You can’t perform that action at this time.
0 commit comments