-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (24 loc) · 668 Bytes
/
Makefile
File metadata and controls
43 lines (24 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: dist tests
PYTHON = python3
PROJECT := smsapi-client
EGG_INFO := $(subst -,_,$(PROJECT)).egg-info
venv:
@${PYTHON} --version || (echo "Python is not installed."; exit 1)
virtualenv --python=${PYTHON} venv
install: venv
. venv/bin/activate; pip install .
tests:
. venv/bin/activate; python runtests.py
clean-venv:
rm -rf venv
clean:
rm -rf dist build
rm -rf $(EGG_INFO)
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete
clean-all: clean clean-venv
dist: clean
. venv/bin/activate; python setup.py sdist
. venv/bin/activate; python setup.py bdist_wheel
release: dist
. venv/bin/activate; python -m twine upload dist/*