From b67002f989694d4021c222c75c0c398c8b068ac8 Mon Sep 17 00:00:00 2001 From: Nezar Abdennur Date: Fri, 21 Aug 2020 18:47:53 -0400 Subject: [PATCH] Add makefile --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..15f10df --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +.PHONY: install test clean build publish + +install: + pip install -e . + +test: + pytest + +clean: + find . -name '*.pyc' -exec rm --force {} + + find . -name '*.pyo' -exec rm --force {} + + find . -name '*~' -exec rm --force {} + + rm -rf build/ + rm -rf dist/ + rm -rf .pytest_cache/ + +build: clean + python setup.py sdist + python setup.py bdist_wheel + +publish: + twine upload dist/*