File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -134,24 +134,25 @@ Start by forking the repository and then modify the code in your fork.
134
134
Clone the repository and go inside the code directory. Then you can get the
135
135
version with ` ./setup.py --version ` .
136
136
137
- We recommend that you use ` virtualenv ` for development:
137
+ We recommend that you use Python3's ` venv ` for development:
138
138
139
139
```
140
- $ virtualenv .venv
140
+ $ python3 -m venv .venv
141
141
$ . .venv/bin/activate
142
- # TODO add requirements.txt: pip install -r requirements.txt
143
142
$ pip install .
144
143
```
145
144
146
145
For development purpose, pip can reference the code you are modifying in a
147
- * virtualenv * :
146
+ * virtual env * :
148
147
149
148
```
150
- $ pip install -e .[tests]
149
+ $ pip install -e .
150
+ # To additionally install all dependencies for development run below command
151
+ $ pip install -e '.[tests]'
151
152
```
152
153
153
154
That way, you do not need to run ` pip install ` again to make your changes
154
- applied to the * virtualenv * .
155
+ applied to the * virtual env * .
155
156
156
157
When the code is ready, submit a Pull Request.
157
158
@@ -172,7 +173,7 @@ $ pytest tests/unit
172
173
173
174
Then you can pass options like ` --pdb ` or anything supported by ` pytest --help ` .
174
175
175
- To run the tests with different versions of Python in managed * virtualenvs * ,
176
+ To run the tests with different versions of Python in managed * virtual envs * ,
176
177
use ` tox ` (see the configuration in ` tox.ini ` ):
177
178
178
179
```
You can’t perform that action at this time.
0 commit comments