-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
44 lines (32 loc) · 926 Bytes
/
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
.PHONY: build up tests flake8 ci tests-with-cov
all:
# PySpark only knows eggs, not wheels
python setup.py sdist
setup_conda:
# Install all dependencies and setup repo in dev mode
conda env update -n taar-37 -f environment.yml
python setup.py develop
conda_update:
# Actualize env after .yml file was modified
conda env update -n taar-37 -f environment.yml --prune
conda_export:
conda env export > environment.yml
upload:
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
pytest:
python setup.py develop
python setup.py test
flake8 taar tests
build:
docker build . -t taar:latest
up:
docker-compose up
test-container:
docker run -e CODECOV_TOKEN=${CODECOV_TOKEN} -it taar:latest test
run_local:
. bin/test_env.sh && python taar/flask_app.py -H 0.0.0.0 -P 8001
run_package_test:
python setup.py develop
python bin/run_package_test.py
shell:
docker run -it taar:latest bash