forked from vortex-exoplanet/VIP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (33 loc) · 905 Bytes
/
Makefile
File metadata and controls
40 lines (33 loc) · 905 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
40
.PHONY: help pypi pypi-test docs coverage test clean
help:
@echo "pypi - submit to PyPI server"
@echo "pypi-test - submit to TestPyPI server"
@echo "docs - generate Sphinx documentation"
@echo "coverage - check code coverage"
@echo "test - run unit tests"
@echo "clean - remove artifacts"
pypi:
python setup.py sdist bdist_wheel
twine upload dist/*
pypi-test:
python setup.py sdist bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
docs:
rm -rf docs/api
sphinx-apidoc -o docs/source vip_hci
cd docs/source/
$(MAKE) -C docs clean
$(MAKE) -C docs html
coverage:
coverage run --source=vip_hci -m pytest
coverage report -m
test:
pytest --cov=vip_hci/ --cov-report=xml
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '__pycache__' -exec rm -rf {} +
rm -rf build/
rm -rf dist/
rm -rf vip_hci.egg-info/
rm -rf .pytest_cache/
rm -f .coverage