-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (29 loc) · 791 Bytes
/
Makefile
File metadata and controls
40 lines (29 loc) · 791 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
PUBLISHING_DEPENDENCIES=wheel bumpversion twine
TOX=$(shell which detox || which tox)
.PHONY: test
test: lint
$(TOX)
.PHONY: lint
lint:
flake8 localmail tests twisted
.PHONY: publishing-dependencies
publishing-dependencies:
pip install -U $(PUBLISHING_DEPENDENCIES)
.PHONY: bump
bump: publishing-dependencies
$(eval OLD=$(shell python -c "import setup; print setup.__VERSION__"))
bumpversion minor
$(MAKE) __finish_bump OLD=$(OLD)
__finish_bump:
$(eval NEW=$(shell python -c "import setup; print setup.__VERSION__"))
bzr commit -m "bump version: $(OLD) to $(NEW)"
bzr tag "v$(NEW)"
.PHONY: update
update:
python setup.py register
.PHONY: upload
upload: publishing-dependencies
python setup.py sdist bdist_wheel
twine upload dist/*
.PHONY: release
release: bump upload