better naming for make targets

This commit is contained in:
Manuel Barkhau 2019-02-16 17:20:34 +01:00
parent 4e0b8f073e
commit 3d26d49d4f

View file

@ -487,16 +487,16 @@ bump_version:
## Create python sdist and bdist_wheel files ## Create python sdist and bdist_wheel files
.PHONY: build_dists .PHONY: dist_build
build_dists: dist_build:
$(DEV_ENV_PY) setup.py sdist; $(DEV_ENV_PY) setup.py sdist;
$(DEV_ENV_PY) setup.py bdist_wheel --python-tag=$(BDIST_WHEEL_PYTHON_TAG); $(DEV_ENV_PY) setup.py bdist_wheel --python-tag=$(BDIST_WHEEL_PYTHON_TAG);
@rm -rf src/*.egg-info @rm -rf src/*.egg-info
## Upload sdist and bdist files to pypi ## Upload sdist and bdist files to pypi
.PHONY: upload_dists .PHONY: dist_upload
upload_dists: dist_upload:
@if [[ "1" != "1" ]]; then \ @if [[ "1" != "1" ]]; then \
echo "FAILSAFE! Not publishing a private package."; \ echo "FAILSAFE! Not publishing a private package."; \
echo " To avoid this set IS_PUBLIC=1 in bootstrap.sh and run it."; \ echo " To avoid this set IS_PUBLIC=1 in bootstrap.sh and run it."; \
@ -508,9 +508,9 @@ upload_dists:
$(DEV_ENV)/bin/twine upload $$($(SDIST_FILE_CMD)) $$($(BDIST_WHEEL_FILE_CMD)); $(DEV_ENV)/bin/twine upload $$($(SDIST_FILE_CMD)) $$($(BDIST_WHEEL_FILE_CMD));
## bump_version build_dists upload_dists ## bump_version dist_build dist_upload
.PHONY: publish .PHONY: dist_publish
publish: bump_version build_dists upload_dists dist_publish: bump_version dist_build dist_upload
## Build docker images. Must be run when dependencies are added ## Build docker images. Must be run when dependencies are added