forked from guillaume-chervet/MLOpsPython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
poetry-install.sh
61 lines (49 loc) · 1.94 KB
/
poetry-install.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
cwd=$(pwd)
python -m pip install -e packages/inference
cd packages/inference/
poetry install
poetry build
poetry export --without-hashes --format=requirements.txt > requirements.txt
cd dist
cp *.whl ../../../train/test/packages
cp *.whl ../../../production/api/packages
cd $cwd
python -m pip install -e packages/extraction
cd packages/extraction/
poetry install
poetry build
poetry export --without-hashes --format=requirements.txt > requirements.txt
cd dist
cp *.whl ../../../train/extraction/packages
cp *.whl ../../../production/api/packages
cd $cwd
cd train
poetry install --no-root
cd $cwd
cd train/extraction
poetry install --no-root
poetry export --without-hashes --format=requirements.txt > requirements.txt
sed -i 's#\(.*\)/packages/mlopspython_extraction-0.0.0-py3-none-any.whl\(.*\)#./packages/mlopspython_extraction-0.0.0-py3-none-any.whl\2#' requirements.txt
cd $cwd
cd train/test
poetry install --no-root
poetry export --without-hashes --format=requirements.txt > requirements.txt
sed -i 's#\(.*\)/packages/mlopspython_inference-0.0.0-py3-none-any.whl\(.*\)#./packages/mlopspython_inference-0.0.0-py3-none-any.whl\2#' requirements.txt
cd $cwd
cd train/train
poetry install --no-root
poetry export --without-hashes --format=requirements.txt > requirements.txt
cd $cwd
cd train/label_split_data
poetry install --no-root
poetry export --without-hashes --format=requirements.txt > requirements.txt
cd $cwd
cd production/api
poetry install --no-root
poetry export --without-hashes --format=requirements.txt > requirements.txt
sed -i 's#\(.*\)/packages/mlopspython_inference-0.0.0-py3-none-any.whl\(.*\)#./packages/mlopspython_inference-0.0.0-py3-none-any.whl\2#' requirements.txt
sed -i 's#\(.*\)/packages/mlopspython_extraction-0.0.0-py3-none-any.whl\(.*\)#./packages/mlopspython_extraction-0.0.0-py3-none-any.whl\2#' requirements.txt
cd $cwd
cd production/integration
poetry install --no-root
poetry export --without-hashes --format=requirements.txt > requirements.txt