forked from SoftwareQuTech/SimulaQron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
61 lines (42 loc) · 1.33 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
PYTHON = python3
PIP = pip3
EXAMPLES_DIR = examples
SIMULAQRON_DIR = simulaqron
GENERAL_DIR = simulaqron/cqc_backend
GENERAL_DIR = simulaqron/general
LOCAL_DIR = simulaqron/local
RUN_DIR = simulaqron/run
TESTS_DIR = simulaqron/tests
TOOLBOX_DIR = simulaqron/toolbox
VIRTNODE_DIR = simulaqron/virtNode
clean: _delete_pyc _delete_pid _clear_build _reset
_delete_pyc:
@find . -name '*.pyc' -delete
_delete_pid:
@find ${SIMULAQRON_DIR} -name '*.pid' -delete
lint:
@${PYTHON} -m flake8 ${SIMULAQRON_DIR} ${CQC_DIR} ${EXAMPLES_DIR} ${GENERAL_DIR} ${LOCAL_DIR} ${RUN_DIR} ${TESTS_DIR} ${TOOLBOX_DIR} ${VIRTNODE_DIR}
python-deps:
@cat requirements.txt | xargs -n 1 -L 1 $(PIP) install
_reset:
@${PYTHON} ${TOOLBOX_DIR}/reset.py
_tests:
@${PYTHON} ${SIMULAQRON_DIR}/tests_run.py --quick
tests: _tests _reset
_tests_all:
@${PYTHON} ${SIMULAQRON_DIR}/tests_run.py --full
tests_all: _tests_all _reset
_verified:
@echo "SimulaQron is verified!"
verify: clean python-deps lint tests _verified
_remove_build:
@rm -f -r build
_remove_dist:
@rm -f -r dist
_remove_egg_info:
@rm -f -r simulaqron.egg-info
_clear_build: _remove_build _remove_dist _remove_egg_info
_build:
@${PYTHON} setup.py sdist bdist_wheel
build: _clear_build _build
.PHONY: clean lint python-deps tests full_tests verify build