-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (27 loc) · 743 Bytes
/
Makefile
File metadata and controls
42 lines (27 loc) · 743 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
39
40
41
42
NAME := $(shell python setup.py --name)
VERSION := $(shell python setup.py --version)
SDIST := dist/${NAME}-${VERSION}.tar.gz
WHEEL := dist/${NAME}-${VERSION}-py2.py3-none-any.whl
.PHONY: all test clean clean-docs upload-docs upload-pypi dist docs
all: docs dist
test:
tox
clean: clean-docs clean-sdist clean-wheel
clean-docs:
$(MAKE) -C docs/ clean
clean-sdist:
rm -f "${SDIST}"
clean-wheel:
rm -f "${WHEEL}"
docs:
$(MAKE) -C docs/ clean html
${SDIST}:
python setup.py sdist
${WHEEL}:
python setup.py bdist_wheel
dist: test ${SDIST} ${WHEEL}
upload: upload-pypi upload-docs
upload-pypi: ${SDIST} ${WHEEL}
twine upload "${WHEEL}" "${SDIST}"
upload-docs: docs/_build/
python setup.py upload_sphinx --upload-dir="$<html"