-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
63 lines (50 loc) · 1.23 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
62
63
build: clean lint test coverage
clean:
rm -rf *egg*
rm -rf .coverage
rm -rf htmlcov
rm -f pyaem2/*.pyc
rm -f test/*.pyc
rm -rf docs
rm -rf build
rm -rf dist
deps:
export PYCURL_SSL_LIBRARY=openssl
pip install -r requirements.txt
deps-dev:
export PYCURL_SSL_LIBRARY=openssl
pip install -r requirements-dev.txt
lint:
pylint --rcfile=.pylintrc pyaem2 test
test:
python setup.py test
coverage:
coverage run setup.py test
coverage html
coverage report --show-missing --fail-under=100
py.test --cov-report term --cov=test/
coverage-publish:
coverage
coveralls
codecov:
coverage
codecov
codecov-publish:
codecov
codecov
doc:
sphinx-apidoc -o docs --full -H PyAEM2 -A "Max Barrass" pyaem2
cd docs && \
SPHINXOPTS="-D html_theme=sphinx_rtd_theme \
-D extensions=sphinx.ext.autodoc,sphinx.ext.viewcode,sphinx.ext.todo,sphinx_rtd_theme" \
PYTHONPATH=../../pyaem2/ \
make html
touch docs/_build/html/.nojekyll
cd docs/_build/html && tar -cvf /tmp/pyaem2-doc.tar .
publish-test:
python setup.py sdist bdist_wheel
twine upload --skip-existing --repository-url https://upload.pypi.org/legacy/ dist/*
publish:
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*
.PHONY: build clean lint test coverage