-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
59 lines (45 loc) · 986 Bytes
/
Makefile
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
52
53
54
55
56
57
58
59
CWD := $(shell pwd)
.PHONY: all
all: clean
.PHONY: start
start: env
@env/bin/python3 forkbuntu --src example
.PHONY: debug
debug: env
@env/bin/python3 forkbuntu --src example --debug
.PHONY: install
install: env
.PHONY: uninstall
uninstall:
-@rm -rf env >/dev/null || true
.PHONY: reinstall
reinstall: uninstall install
env:
@virtualenv env
@env/bin/pip3 install -r ./requirements.txt
@echo ::: ENV :::
.PHONY: freeze
freeze:
@env/bin/pip3 freeze > ./requirements.txt
@echo ::: FREEZE :::
.PHONY: build
build: dist
dist: clean install
@env/bin/python3 setup.py sdist
@env/bin/python3 setup.py bdist_wheel
@echo ran dist
.PHONY: publish
publish: dist
@twine upload dist/*
@echo published
.PHONY: link
link: install
@pip3 install -e .
.PHONY: unlink
unlink: install
@rm -r $(shell find . -name '*.egg-info')
.PHONY: clean
clean:
-@rm -rf */__pycache__ */*/__pycache__ README.rst dist build \
example/.tmp *.egg-info >/dev/null || true
@echo ::: CLEAN :::