-
Notifications
You must be signed in to change notification settings - Fork 66
/
poetry-install.sh
62 lines (46 loc) · 1.11 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)
function add_dependency {
package_name=$1
target_dir=$2
mkdir -p "$target_dir"
cp -R "$package_name" "$target_dir"
}
function add_dependencies {
add_dependency "packages/mlopspython-inference/" "production/api/packages"
add_dependency "packages/mlopspython-extraction/" "production/api/packages"
}
add_dependencies
POETRY_VERSION=1.8.3
python -m pip install --upgrade pip
python -m pip install --user "poetry==$POETRY_VERSION"
cd packages/mlopspython-inference/
python -m poetry install
python -m poetry build
cd $cwd
cd packages/mlopspython-extraction/
python -m poetry install
python -m poetry build
cd $cwd
cd train
python -m poetry install --no-root
cd $cwd
cd train/extraction
python -m poetry install --no-root
cd $cwd
cd train/test
python -m poetry install --no-root
cd $cwd
cd train/train
python -m poetry install --no-root
cd $cwd
cd train/label_split_data
python -m poetry install --no-root
cd $cwd
cd train/output
python -m poetry install --no-root
cd $cwd
cd production/api
python -m poetry install --no-root
cd $cwd
cd production/integration
python -m poetry install --no-root