-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (28 loc) · 855 Bytes
/
Makefile
File metadata and controls
51 lines (28 loc) · 855 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
44
45
46
47
48
49
50
51
.PHONY: dist tests build-deps release-deps
PYTHON = python3
PROJECT := smsapi-client
EGG_INFO := $(subst -,_,$(PROJECT)).egg-info
venv:
@${PYTHON} --version || (echo "Python is not installed."; exit 1)
${PYTHON} -m venv 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
build-deps: venv
. venv/bin/activate; pip install --upgrade setuptools wheel
release-deps: venv
. venv/bin/activate; pip install --upgrade twine
dist: clean build-deps
. venv/bin/activate; python setup.py sdist
. venv/bin/activate; python setup.py bdist_wheel
release: dist release-deps
. venv/bin/activate; python -m twine upload dist/*