forked from claranet/python-terrafile
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 648 Bytes
/
Makefile
File metadata and controls
34 lines (25 loc) · 648 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
$(eval NAME := $(shell python setup.py --name))
$(eval PY_NAME := $(shell python setup.py --name | sed 's/-/_/g'))
$(eval VERSION := $(shell python setup.py --version))
SDIST := dist/$(NAME)-$(VERSION).tar.gz
WHEEL := dist/$(PY_NAME)-$(VERSION)-py2.py3-none-any.whl
.PHONY: all
all: build
$(SDIST):
python setup.py sdist
$(WHEEL):
python setup.py bdist_wheel
.PHONY: build
build: $(SDIST) $(WHEEL)
.PHONY: install
install: $(WHEEL)
pip install --user $(WHEEL)
.PHONY: uninstall
uninstall:
pip uninstall $(NAME)
.PHONY: upload
upload: $(SDIST) $(WHEEL)
twine upload $(SDIST) $(WHEEL)
.PHONY: clean
clean:
rm -rf build dist *.egg-info