From 77227799a48aebe409aa0eb253d5bce5d6a26748 Mon Sep 17 00:00:00 2001 From: Yehuda Chikvashvili Date: Wed, 12 Feb 2020 17:32:28 +0200 Subject: [PATCH] Add Makefile (#298) Added Makefile with some helpful utils such as build, lint and clean --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0c1db18 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +NAME := kube-hunter +SRC := kube_hunter + +.PHONY: deps +deps: + pip install -r requirements-dev.txt + +.PHONY: lint +lint: + flake8 $(SRC) + +.PHONY: build +build: + python setup.py sdist bdist_wheel + +.PHONY: install +install: + pip install -e . + +.PHONY: uninstall +uninstall: + pip uninstall $(NAME) + +.PHONY: publish +publish: + twine upload dist/* + +.PHONY: clean +clean: + rm -rf build/ dist/ *.egg-info/ .eggs/ .pytest_cache/ .coverage + find . -type d -name __pycache__ -exec rm -rf '{}' +