-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
67 lines (48 loc) · 1.37 KB
/
Makefile
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
62
63
64
65
66
67
default: pytest
# default: pylint pytest
# pylint:
# find . -iname "*.py" -not -path "./tests/test_*" | xargs -n1 -I {} pylint --output-format=colorized {}; true
pytest:
echo "no tests"
# ----------------------------------
# LOCAL SET UP
# ----------------------------------
install_requirements:
@pip install -r requirements.txt
# ----------------------------------
# HEROKU COMMANDS
# ----------------------------------
streamlit:
-@streamlit run app.py
heroku_login:
-@heroku login
heroku_upload_public_key:
-@heroku keys:add ~/.ssh/id_ed25519.pub
heroku_create_app:
-@heroku create --ssh-git ${APP_NAME}
deploy_heroku:
-@git push heroku master
-@heroku ps:scale web=1
# ----------------------------------
# LOCAL INSTALL COMMANDS
# ----------------------------------
install:
@pip install . -U
clean:
@rm -fr */__pycache__
@rm -fr __init__.py
@rm -fr build
@rm -fr dist
@rm -fr *.dist-info
@rm -fr *.egg-info
-@rm model.joblib
#upload on cloud
LOCAL_PATH = "/home/giorgio_frisenda/code/giofrisenda94/speech-emotion-recognition/raw_data/Ravdess/"
BUCKET_NAME = 220905-spe-rec
PACKAGE_NAME = functions
FILE_NAME = data_process_functions
upload_data:
# @gsutil -m cp -r ${LOCAL_PATH} gs://${BUCKET_NAME}/${BUCKET_FOLDER}/${BUCKET_FILE_NAME}
-@gsutil -m cp -r ${LOCAL_PATH} gs://${BUCKET_NAME}
run_locally:
-@python -m ${PACKAGE_NAME}.${FILENAME}