summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIvan Dolgov <ivan@dolgov.fi>2019-03-16 15:39:30 +0200
committerIvan Dolgov <ivan@dolgov.fi>2019-03-16 15:39:30 +0200
commitf09185c5c2bc327103a61ca4c9ed2f8ae2916802 (patch)
tree66ed50756e86a265c8bf08d0493bcc466c83d026 /Makefile
parent01bdba935a667e8c1606d6d040086488c82b0e38 (diff)
parent227c1ae67bb80a5e9b9036a9bdb9f11be073669f (diff)
downloadickapi-f09185c5c2bc327103a61ca4c9ed2f8ae2916802.tar.gz
Merge branch 'ivan/initial'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e7ec035
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+ENV_BIN=env/bin
+
+all: run
+
+env:
+ python3 -m venv env
+ ${ENV_BIN}/pip install --upgrade pip pip-tools setuptools
+ ${ENV_BIN}/pip install -e ".[tests]"
+ ${ENV_BIN}/pip install -e .
+
+lint:
+ pycodestyle ickapi
+ pylint -j0 -d missing-docstring ickapi
+
+test: lint
+
+run:
+ gunicorn --config gunicorn.conf --reload ickapi.main:app
+
+clean:
+ rm -rf dist/ ickapi.egg-info/
+ find . -type f -name "*~" -exec rm -f {} \;
+ find . -type d -name "__pycache__" -prune -exec rm -rf {} \;
+
+reset: clean
+ rm -rf env/
+
+.PHONY: all env lint test run clean reset