Преглед на файлове

Use built-in venv module to create virtualenv

master
Anthony Ricaud преди 5 години
родител
ревизия
68ae8a2488
променени са 2 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. 1
    1
      Makefile
  2. 2
    3
      docs/source/internals/contributing/running-tests.rst

+ 1
- 1
Makefile Целия файл

28
 	npm install
28
 	npm install
29
 
29
 
30
 venv: ## Create a virtual env and install test and production requirements
30
 venv: ## Create a virtual env and install test and production requirements
31
-	virtualenv --python=$(shell which python3) $(VENV)
31
+	$(shell which python3) -m venv $(VENV)
32
 	$(VENV)/bin/pip install -e .[test]
32
 	$(VENV)/bin/pip install -e .[test]
33
 	$(VENV)/bin/pip install -r docs/requirements.txt
33
 	$(VENV)/bin/pip install -r docs/requirements.txt
34
 
34
 

+ 2
- 3
docs/source/internals/contributing/running-tests.rst Целия файл

25
 Details
25
 Details
26
 ~~~~~~~
26
 ~~~~~~~
27
 
27
 
28
-First we create a virtualenv and install the required dependencies::
28
+First we create a virtualenv, install the required dependencies and activate it::
29
 
29
 
30
-    $ virtualenv venv
30
+    $ make venv
31
     $ source venv/bin/activate
31
     $ source venv/bin/activate
32
-    $ pip install -e .[test]
33
 
32
 
34
 Then we invoke pytest using ::
33
 Then we invoke pytest using ::
35
 
34
 

Loading…
Отказ
Запис