Skip to content

Commit 5474cbd

Browse files
author
Andrew Brookins
committed
pip-compile cannot handle -e so move it elsewhere
1 parent 2395577 commit 5474cbd

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ else
1212
FLAGS := "-s"
1313
endif
1414

15-
.PHONY: mypy test all clean dev load frontend timeseries-docker
15+
.PHONY: mypy test all clean dev load frontend timeseries-docker deps
1616

1717
all: env mypy lint test
1818

1919
env: env/bin/activate
2020

2121
env/bin/activate: requirements.txt
2222
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
2424
touch env/bin/activate
2525

2626
mypy: env
@@ -39,6 +39,14 @@ clean:
3939
dev: env
4040
. env/bin/activate; FLASK_ENV=development FLASK_APP=$(APP) FLASK_DEBUG=1 flask run --port=$(PORT) --host=0.0.0.0
4141

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+
4250
frontend: env
4351
cd frontend; npm run build
4452
rm -rf redisolar/static

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Install the app and its dependencies by running the following commands from the
5252
base directory of the project:
5353

5454
pip install --upgrade pip
55-
pip install wheel pip-tools
55+
pip install wheel pip-tools -e .
5656
pip-sync requirements.txt requirements-dev.txt
5757

5858
### Redis

requirements.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ click==7.1.1
1010
redistimeseries==0.8.0
1111
python-dotenv==0.15.0
1212
cryptography<3.4 # Last version without a Rust dependency
13-
-e .

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#
55
# pip-compile requirements.in
66
#
7-
-e file:///Users/andrewbrookins/src/ru102py
8-
# via -r requirements.in
97
aniso8601==8.1.1
108
# via flask-restful
119
cffi==1.14.4

0 commit comments

Comments
 (0)