forked from amadeus4dev/amadeus-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 657 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (29 loc) · 657 Bytes
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
SOURCES=amadeus specs setup.py
DOC_SOURCES=amadeus docs README.rst
test:
mamba --format=documentation --enable-coverage
coverage:
coverage html
open htmlcov/index.html
watch:
make run
make coverage
fswatch -o ${SOURCES} | xargs -n1 -I{} make run
run:
make lint
make test
coverage html
lint:
flake8 $(SOURCES) --exit-zero
docs:
rm -rf _docs
sphinx-build -b html docs _docs
clean:
rm -rf _docs build dist
build:
python setup.py sdist bdist_wheel
watchdocs:
make docs
open _docs/index.html
fswatch -o ${DOC_SOURCES} | xargs -n1 -I{} make docs
.PHONY: test coverage watch run lint docs clean build