imjoseangel / powerline-k8sstatus

A Powerline segment for showing the status of a K8s context
MIT License
2 stars 0 forks source link

Create Makefile for the project #18

Closed imjoseangel closed 3 years ago

imjoseangel commented 3 years ago

SUMMARY

Create Makefile

ISSUE TYPE

COMPONENT NAME

Makefile

ADDITIONAL INFORMATION

Add Makefile for the common task and to be used in CI

.DEFAULT_GOAL:=help
SHELL:=/bin/bash

.PHONY: help clean upload install uninstall

help:  ## Display this help
        @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n  make \033[36m\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf "  \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)

clean: ## Cleanup the project folders
        $(info Make: Cleaning up things)
        python setup.py clean

upload: clean ## Build and upload the project to Pypi
        $(info Make: Build and upload the project to Pypi)
        python setup.py clean
        python setup.py sdist bdist_wheel
        twine upload dist/*

install: ## Install in editable mode
        $(info Make: Install in editable mode)
        pip install -e ./

uninstall: ## Uninstall package
        $(info Make: Uninstall package.)
        pip uninstall powerline_k8sstatus