-
Notifications
You must be signed in to change notification settings - Fork 4
/
generate_requirements.sh
executable file
·44 lines (36 loc) · 1.17 KB
/
generate_requirements.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
mkdir reqs
cp base/constraints.txt reqs/constraints.txt
cp base/requirements.in reqs/requirements.in
cp pytorch/requirements.in reqs/pytorch.in
cp quantum/requirements.in reqs/quantum.in
cp geo/requirements.in reqs/geo.in
docker run --rm -it \
-v $(pwd):/app -w /app \
databaseline/pip-compile /app/reqs/requirements.in \
--upgrade --no-allow-unsafe \
--strip-extras --no-header \
--resolver=backtracking
docker run --rm -it \
-v $(pwd):/app -w /app \
databaseline/pip-compile /app/reqs/pytorch.in \
--upgrade --no-allow-unsafe \
--strip-extras --no-header \
--resolver=backtracking
docker run --rm -it \
-v $(pwd):/app -w /app \
databaseline/pip-compile /app/reqs/quantum.in \
--upgrade --allow-unsafe \
--strip-extras --no-header \
--resolver=backtracking
docker run --rm -it \
-v $(pwd):/app -w /app \
databaseline/pip-compile /app/reqs/geo.in \
--upgrade --allow-unsafe \
--strip-extras --no-header \
--resolver=backtracking
mv reqs/requirements.txt base/requirements.txt
mv reqs/pytorch.txt pytorch/requirements.txt
mv reqs/quantum.txt quantum/requirements.txt
mv reqs/geo.txt geo/requirements.txt
rm -rf reqs