@@ -27,37 +27,39 @@ Install spatialite and sqlite:
27
27
Installing for Development
28
28
--------------------------
29
29
30
- Fork and clone the forked repository :
30
+ Create project directory :
31
31
32
32
.. code-block :: shell
33
33
34
- git clone git://github.com/ < your_fork > / openwisp-firmware-upgrader
34
+ mkdir openwisp && cd openwisp
35
35
36
- Navigate into the cloned repository :
36
+ The directory structure will look like this :
37
37
38
- .. code-block :: shell
38
+ .. code-block :: text
39
39
40
- cd openwisp-firmware-upgrader/
40
+ openwisp/ # Main project folder
41
+ ├── env/ # Virtual environment
42
+ └── openwisp-firmware-upgrader/ # Cloned repository
41
43
42
- Launch Redis :
44
+ Fork and clone the forked repository :
43
45
44
46
.. code-block :: shell
45
47
46
- docker-compose up -d redis
48
+ git clone git://github.com/ < your_fork > /openwisp-firmware-upgrader
47
49
48
- Install test requirements :
50
+ Navigate into the cloned repository :
49
51
50
52
.. code-block :: shell
51
53
52
- pip install -r requirements-test.txt
54
+ cd openwisp-firmware-upgrader/
53
55
54
56
Setup and activate a virtual-environment (we'll be using `virtualenv
55
57
<https://pypi.org/project/virtualenv/> `_):
56
58
57
59
.. code-block :: shell
58
60
59
- python -m virtualenv env
60
- source env/bin/activate
61
+ python -m virtualenv ../ env
62
+ source ../ env/bin/activate
61
63
62
64
Make sure that your base python packages are up to date before moving to
63
65
the next step:
@@ -66,6 +68,18 @@ the next step:
66
68
67
69
pip install -U pip wheel setuptools
68
70
71
+ Install test requirements:
72
+
73
+ .. code-block :: shell
74
+
75
+ pip install -r requirements-test.txt
76
+
77
+ Launch Redis:
78
+
79
+ .. code-block :: shell
80
+
81
+ docker-compose up -d redis
82
+
69
83
Install development dependencies:
70
84
71
85
.. code-block :: shell
0 commit comments