forked from flamapy/flamapy_fw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (33 loc) · 788 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
.ONESHELL:
.PHONY: build
build:
rm -rf dist
python3 setup.py sdist bdist_wheel
upload-testpypi:
python3 -m twine upload --repository testpypi dist/*
upload-pypi:
python3 -m twine upload --repository pypi dist/*
lint:
prospector
mypy:
mypy flamapy
test:
python -m pytest -sv
cov:
coverage run --source=flamapy -m pytest
coverage report
coverage html
start:
hug -f flamapy/endpoint/diverso-lab.py
start-cli:
hug -f flamapy/endpoint/diverso-lab.py -c
dev:
python3.9 -m venv env
. ./env/bin/activate
pip install -e .[dev] $(shell echo "${PLUGIN_PATHS}" | sed "s/:/ /g")
PLUGIN_PATHS=${PLUGIN_PATHS} python3 configure_plugins.py
git-pull:
echo ${PLUGIN_PATHS} | awk -F: '{ for (i=1; i<=NF; i++) {cd $i;git pull}}'
clean:
rm -rf ./env
rm -rf ./flamapy/metamodels/