File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 12
12
FLAGS := "-s"
13
13
endif
14
14
15
- .PHONY : mypy test all clean dev load frontend timeseries-docker
15
+ .PHONY : mypy test all clean dev load frontend timeseries-docker deps
16
16
17
17
all : env mypy lint test
18
18
19
19
env : env/bin/activate
20
20
21
21
env/bin/activate : requirements.txt
22
22
test -d env || python3.8 -m venv env
23
- . env/bin/activate; pip install --upgrade pip; pip install pip-tools wheel; pip-sync requirements.txt requirements-dev.txt
23
+ . env/bin/activate; pip install --upgrade pip; pip install pip-tools wheel -e . ; pip-sync requirements.txt requirements-dev.txt
24
24
touch env/bin/activate
25
25
26
26
mypy : env
@@ -39,6 +39,14 @@ clean:
39
39
dev : env
40
40
. env/bin/activate; FLASK_ENV=development FLASK_APP=$(APP ) FLASK_DEBUG=1 flask run --port=$(PORT ) --host=0.0.0.0
41
41
42
+ requirements.txt : requirements.in
43
+ pip-compile requirements.in > requirements.txt
44
+
45
+ requirements-dev.txt : requirements-dev.in
46
+ pip-compile requirements-dev.in > requirements-dev.txt
47
+
48
+ deps : requirements-dev.txt requirements.txt
49
+
42
50
frontend : env
43
51
cd frontend; npm run build
44
52
rm -rf redisolar/static
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ Install the app and its dependencies by running the following commands from the
52
52
base directory of the project:
53
53
54
54
pip install --upgrade pip
55
- pip install wheel pip-tools
55
+ pip install wheel pip-tools -e .
56
56
pip-sync requirements.txt requirements-dev.txt
57
57
58
58
### Redis
Original file line number Diff line number Diff line change @@ -10,4 +10,3 @@ click==7.1.1
10
10
redistimeseries==0.8.0
11
11
python-dotenv==0.15.0
12
12
cryptography<3.4 # Last version without a Rust dependency
13
- -e .
Original file line number Diff line number Diff line change 4
4
#
5
5
# pip-compile requirements.in
6
6
#
7
- -e file:///Users/andrewbrookins/src/ru102py
8
- # via -r requirements.in
9
7
aniso8601 == 8.1.1
10
8
# via flask-restful
11
9
cffi == 1.14.4
You can’t perform that action at this time.
0 commit comments