-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
65 lines (50 loc) · 1.28 KB
/
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
61
62
63
64
65
BIN_DIR := $(shell pwd)/bin
PYTHON := python3
BIN_CHANGELOG_FROM_RELEASE := $(BIN_DIR)/changelog-from-release
$(BIN_CHANGELOG_FROM_RELEASE):
GOBIN=$(BIN_DIR) go install github.com/rhysd/changelog-from-release/v3@latest
.PHONY: build
build: clean
@$(PYTHON) -m tox -e build
ls -lh dist/*
.PHONY: changelog
changelog: $(BIN_CHANGELOG_FROM_RELEASE)
$(BIN_CHANGELOG_FROM_RELEASE) > CHANGELOG.md
cp -a CHANGELOG.md docs/pages/CHANGELOG.md
.PHONY: check
check:
@$(PYTHON) -m tox -e lint
.PHONY: clean
clean:
rm -rf $(BIN_DIR)
$(PYTHON) -m tox -e clean
.PHONY: docs
docs:
@cd docs && ./update_command_help.py
@$(PYTHON) -m tox -e docs
.PHONY: idocs
idocs:
@$(PYTHON) -m pip install -q --disable-pip-version-check --upgrade .
@$(MAKE) docs
.PHONY: fmt
fmt:
@$(PYTHON) -m tox -e fmt
.PHONY: readme
readme:
@cd docs && ./update_command_help.py
@$(PYTHON) -m tox -e readme
.PHONY: release
release:
$(PYTHON) -m tox -e release
$(MAKE) clean
.PHONY: setup-ci
setup-ci:
$(PYTHON) -m pip install -q --disable-pip-version-check --upgrade pip
$(PYTHON) -m pip install -q --disable-pip-version-check --upgrade tox
.PHONY: setup-dev
setup-dev: setup-ci
$(PYTHON) -m pip install -q --disable-pip-version-check --upgrade -e .[test]
$(PYTHON) -m pip check
.PHONY: test
test:
$(PYTHON) -m tox -e py