imjoseangel / powerline-k8sstatus

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

feat(makefile): create makefile for ci #19

Closed imjoseangel closed 3 years ago

imjoseangel commented 3 years ago

Signed-off-by: imjoseangel josea.munoz@gmail.com

SUMMARY

Fixes #18

ISSUE TYPE

COMPONENT NAME

makefile

ADDITIONAL INFORMATION

.PHONY: help clean build 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)

all: build

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

build: 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