-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (32 loc) · 793 Bytes
/
Makefile
File metadata and controls
46 lines (32 loc) · 793 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
43
44
45
46
.PHONY: all install dev-install check test build dist upload test-upload docs view clean-docs tidy clean
all: check test docs dist
install:
pip install -r requirements.txt
dev-install:
pip install -r dev-requirements.txt
check:
python setup.py check
test:
python setup.py test
build:
python setup.py build
dist: build
python setup.py sdist bdist_wheel
upload:
twine upload -u totalphase dist/*
test-upload:
twine upload -u totalphase --repository-url https://test.pypi.org/legacy/ dist/*
docs:
$(MAKE) -C docs html
view:
open docs/_build/html/index.html
clean-docs:
rm -rf docs/apidoc/
$(MAKE) -C docs clean
tidy:
find . -name \*.pyc -delete
find . -name __pycache__ -delete
clean: clean-docs tidy
python setup.py clean --all
rm -rf *.egg-info dist
rm -f *.html