momegas commited on
Commit
51227cf
Β·
1 Parent(s): 00362bd

πŸ‘‰ Add a makefile and be cool

Browse files
Files changed (1) hide show
  1. Makefile +29 -0
Makefile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Define variables
2
+ PYTHON=python
3
+ PIP=pip
4
+ PACKAGE=qnabot
5
+
6
+ .PHONY: install test clean build publish
7
+
8
+ install:
9
+ $(PIP) install -r requirements.txt
10
+
11
+ test:
12
+ $(PYTHON) -m pytest
13
+
14
+ clean:
15
+ rm -rf build dist *.egg-info
16
+
17
+ build:
18
+ $(PYTHON) setup.py sdist bdist_wheel
19
+
20
+ publish: clean build
21
+ $(PYTHON) -m twine upload dist/*
22
+
23
+ help:
24
+ @echo "install - install dependencies"
25
+ @echo "test - run tests"
26
+ @echo "clean - remove build artifacts"
27
+ @echo "build - build package"
28
+ @echo "publish - publish package to PyPI"
29
+ @echo "help - show this help message"