-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
43 lines (32 loc) · 954 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
all: tests clean dist
.PHONY: tests # run test suite
tests:
pip install -r requirements/ci.txt
tox
.PHONY: clean # clean files generated by tests/package build process
clean:
@rm -rf build dist
@find . -name "*.pyc" -delete
@git clean -xdf
#####
.PHONY: dist # build pip packages
dist: sdist bdist_wheel
.PHONY: sdist # build source distribution for the pip package
sdist:
@python setup.py sdist
.PHONY: sdist # build binary (wheel) distribution for the pip package
bdist_wheel:
@python setup.py bdist_wheel
#####
.PHONY: install # install the python package
install:
@python setup.py install
.PHONY: release # upload source/binary distributions of the package to pypi
release: clean dist
@twine upload dist/* -s -i $(IDENTITY)
.PHONY: test_release # TODO undocumented
test_release: clean dist
@twine upload dist/* -r testpypi --skip-existing -s -i $(IDENTITY)
.PHONY: docs # build sphinx documentation
docs: clean
@tox -r -e docs