-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (26 loc) · 1 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
.DEFAULT_GOAL := help
help: ## Show available options with this Makefile
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
.PHONY : test
test: ## Run all the tests
test:
python setup.py test
.PHONY : recreate_pyenv
recreate_pyenv: ## Create the python environment. Recreates if the env exists already.
recreate_pyenv:
conda env create --force -f dev_environment.yml && \
pip install -e .
.PHONY : readme_to_rst
readme_to_rst: ## Convert README.md to README.rst for the sake of pip documentation.
readme_to_rst:
m2r --overwrite README.md
.PHONY : upload_test_pypi
upload_test_pypi: ## Build and upload distribution to testpypi server
upload_test_pypi: readme_to_rst
python setup.py sdist && \
twine upload --skip-existing --repository testpypi dist/*
.PHONY : upload_pypi
upload_pypi: ## Build and upload distribution to pypi server
upload_pypi: readme_to_rst
python setup.py sdist && \
twine upload --skip-existing --repository pypi dist/*