-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
52 lines (40 loc) · 1.3 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
PROJECT=fancy_ray_tracer
.PHONY: install-poetry
install-poetry:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
# for windows comment the line above and uncomment the next line, for powershell only the next line
# powershell "(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python"
poetry install
.PHONY: install-packages
install-packages:
poetry install
.PHONY: update-packages
update:
poetry update
.PHONY: lock
lock:
poetry lock
.PHONY: build
build:
poetry build
.PHONY: lint
lint:
poetry run pylint ${PROJECT} -f colorized -d missing-module-docstring,missing-class-docstring,missing-function-docstring,invalid-name
.PHONY: test
test:
poetry run pytest ${PROJECT} tests --doctest-modules --cov=${PROJECT} --cov-report=xml --cov-config=.coveragerc -v
.PHONY: test-fast
test-fast:
poetry run pytest ${PROJECT} tests -v
.PHONY: coverage
coverage:
poetry run pytest ${PROJECT} tests --doctest-modules --cov=${PROJECT} --cov-config=.coveragerc --cov-report=html -v
.PHONY: cov
cov:
poetry run codecov
.PHONY: build-ext-win
build-ext-win:
poetry run python build.py build_ext -v --inplace -DMS_WIN64
.PHONY: build-ext
build-ext:
poetry run python build.py build_ext -v --inplace