-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (24 loc) · 1.21 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
# https://gist.github.com/prwhite/8168133
.DEFAULT_GOAL := help
.PHONY: help test test_unit test_int install_dev istall docs docs_notebooks badges notebook-reset notebooks dist pypi clean
help: ## show this help
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e "s/\\$$//" | sed -e "s/##//"
test: ## run tests
pytest
install: ## install local millipede package
conda env create -f environment.yml
badges: ## make the coverage badge
coverage-badge -o .github/imgs/coverage.svg -f
flake8 autoboost --exit-zero --htmldir=.github/imgs/ --format=html --statistics --tee --output-file .github/imgs/flake8stats.txt --exclude __init__.py
genbadge flake8 -i .github/imgs/flake8stats.txt -o .github/imgs/flake8.svg
genbadge tests -i .github/imgs/junit/junit.xml -o .github/imgs/tests.svg
pypi: clean ## prepare pypi release
pip install twine
python setup.py sdist bdist_wheel
twine upload dist/*
clean: ## clean up - remove docs, dist and build
rm -f -r dist
rm -f -r htmlcov
rm -f -r build
# conda packaging
# https://blog.gishub.org/how-to-publish-a-python-package-on-conda-forge