-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile
60 lines (49 loc) · 958 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
60
AUTHOR := thombashi
PACKAGE := pytablewriter
DOCS_DIR := docs
DOCS_BUILD_DIR := $(DOCS_DIR)/_build
BUILD_WORK_DIR := _work
PKG_BUILD_DIR := $(BUILD_WORK_DIR)/$(PACKAGE)
.PHONY: build-remote
build-remote:
@rm -rf $(BUILD_WORK_DIR)
@mkdir -p $(BUILD_WORK_DIR)
@cd $(BUILD_WORK_DIR) && \
git clone https://github.com/$(AUTHOR)/$(PACKAGE).git && \
cd $(PACKAGE) && \
tox -e build
ls -lh $(PKG_BUILD_DIR)/dist/*
.PHONY: build
build:
@make clean
@tox -e build
ls -lh dist/*
.PHONY: check
check:
travis lint
@tox -e lint
.PHONY: clean
clean:
@rm -rf $(BUILD_WORK_DIR)
@tox -e clean
.PHONY: docs
docs:
@tox -e docs
.PHONY: idocs
idocs:
@pip install --upgrade .
@make docs
.PHONY: fmt
fmt:
@tox -e fmt
.PHONY: readme
readme:
@cd $(DOCS_DIR) && tox -e readme
.PHONY: release
release:
@cd $(PKG_BUILD_DIR) && python setup.py release --sign
@make clean
.PHONY: setup
setup:
@pip install --upgrade -e .[test] releasecmd tox
pip check