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
|
.DEFAULT_GOAL := help
## clean: Clean directory for build
clean:
rm -rf dist/*
.PHONY: build
## build: Build package
build:
pipenv run python setup.py sdist bdist_wheel
## deploy: Deploy haversine to pypi
deploy: clean build
pipenv install twine
pipenv run twine upload dist/* --verbose
pipenv uninstall twine
git checkout -- Pipfile.lock
.PHONY: help
## help: Prints this help text.
help:
@echo ''
@echo ' Usage:'
@echo ' make <target>'
@echo ''
@echo ' Targets:'
@sed -n 's/^## \?/ /p' $(MAKEFILE_LIST)
|