File tree Expand file tree Collapse file tree 6 files changed +311
-286
lines changed Expand file tree Collapse file tree 6 files changed +311
-286
lines changed Original file line number Diff line number Diff line change @@ -37,19 +37,18 @@ jobs:
37
37
38
38
with :
39
39
path : ~/.cache/pip
40
- key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-constraints.txt') }}-${{ hashFiles(' dev-requirements.txt') }}
40
+ key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev-requirements.txt') }}
41
41
restore-keys : |
42
42
${{ runner.os }}-pip-
43
43
44
44
- name : Install Dependencies
45
45
run : |
46
46
pip install -U pip wheel --progress-bar off
47
- # pip install -r requirements.txt
48
- # Have to do this because of a bug in the new pip resolver (grr!!)
49
- pip install -r dev-requirements.txt -r requirements-constraints.txt -r requirements.txt --progress-bar off
47
+ pip install -r requirements.txt --progress-bar off
50
48
51
49
- name : Run lints
52
50
run : |
51
+ pip install -r dev-requirements.txt --progress-bar off
53
52
black --check app.py
54
53
flake8 app.py
55
54
yarn prettier:check
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ front end.
32
32
To install dependencies:
33
33
34
34
```
35
+ pip install -r requirements.txt
35
36
pip install -r dev-requirements.txt
36
37
yarn install
37
38
```
@@ -76,3 +77,14 @@ This file will automatically be read when running the Python backend.
76
77
77
78
For the front-end, we check the output of ` yarn run build `
78
79
as a ` build.zip ` file. This is generated by running ` ./bin/build.sh ` .
80
+
81
+ ## Upgrade dependencies
82
+
83
+ To upgrade a dependency, edit ` requirements.in ` and then run:
84
+
85
+ ```
86
+ pip-compile --generate-hashes requirements.in
87
+ ```
88
+
89
+ Now you should have a change in ` requirements.in ` _ and_ in ` requirements.txt ` .
90
+ Check in both.
Original file line number Diff line number Diff line change 1
- -r requirements.txt
2
- -c requirements-constraints.txt
3
-
4
- black==21.5b0 \
5
- --hash=sha256:0e80435b8a88f383c9149ae89d671eb2095b72344b0fe8a1d61d2ff5110ed173 \
6
- --hash=sha256:9dc2042018ca10735366d944c2c12d9cad6dec74a3d5f679d09384ea185d9943
7
- flake8==3.9.2 \
8
- --hash=sha256:07528381786f2a6237b061f6e96610a4167b226cb926e2aa2b6b1d78057c576b \
9
- --hash=sha256:bf8fd333346d844f616e8d47905ef3a3384edae6b4e9beb0c5101e25e3110907
1
+ black==21.5b0
2
+ flake8==3.9.2
3
+ pip-tools==6.1.0
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments