forked from MarkusZehner/phenodata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (34 loc) · 1.29 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
# ============
# Main targets
# ============
# Release this piece of software
# Synopsis:
# make release bump=minor (major,minor,patch)
release: bumpversion push sdist pypi-upload
# Build the documentation
docs-html: install-doctools
$(eval venvpath := ".venv_project")
touch doc/index.rst
export SPHINXBUILD="`pwd`/$(venvpath)/bin/sphinx-build"; cd doc; make html
# ===============
# Utility targets
# ===============
bumpversion: install-releasetools
$(eval venvpath := ".venv_project")
@$(venvpath)/bin/bumpversion $(bump)
push:
git push && git push --tags
sdist:
$(eval venvpath := ".venv_project")
@$(venvpath)/bin/python setup.py sdist
pypi-upload: install-releasetools
$(eval venvpath := ".venv_project")
@$(venvpath)/bin/twine upload --skip-existing dist/*.tar.gz
install-doctools:
$(eval venvpath := ".venv_project")
@test -e $(venvpath)/bin/python || `command -v virtualenv` --python=`command -v python` --no-site-packages $(venvpath)
@$(venvpath)/bin/pip install --quiet --requirement requirements-docs.txt --upgrade
install-releasetools:
$(eval venvpath := ".venv_project")
@test -e $(venvpath)/bin/python || `command -v virtualenv` --python=`command -v python` --no-site-packages $(venvpath)
@$(venvpath)/bin/pip install --quiet --requirement requirements-release.txt --upgrade