forked from synqs/pennylane-ls
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (26 loc) · 744 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
PYTHON := python3
TESTRUNNER := -m pytest tests --tb=native -vv -s
COVERAGE := --cov=pennylane_ls --cov-report term-missing --cov-report=html:coverage_html_report
.PHONY: help
help:
@echo "Usage: make [target] where [target] can be any of"
@echo " install - to install pennylane_ls"
@echo " test - to run the unittests"
@echo " coverage - to generate a coverage report"
@echo " benchmark - to run a few benchmarks"
.PHONY: install
install:
$(PYTHON) setup.py install
.PHONY: wheel
wheel:
$(PYTHON) setup.py bdist_wheel
.PHONY: dist
dist:
$(PYTHON) setup.py sdist
.PHONY: test
test:
$(PYTHON) $(TESTRUNNER)
.PHONY: coverage
coverage:
@echo "Generating coverage report..."
$(PYTHON) $(TESTRUNNER) $(COVERAGE)