-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
72 lines (54 loc) · 1.64 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
66
67
68
69
70
# Minimal makefile for Sphinx documentation
#
test:
coverage run -m python pytest -vv test
coverage report
coverage html
quicktest:
coverage run -m pytest -vv test
coverage report
coverage html
tutorials:
python clean.py docs/Tutorials/Advanced
python clean.py docs/Tutorials/Instrument
python clean.py docs/Tutorials/Quick
python clean.py docs/Tutorials/Tools
./Tutorials/tutorials
make html
fulltest:
python -m pytest -vv test
wheel:
python setup.py sdist
version ?= $(shell python cut.py $(shell ls -t dist/* | head -1))
upload:
twine upload $(shell ls -t dist/* | head -1) -r testpypi
twine upload $(shell ls -t dist/* | head -1) -r pypi
testVersion:
echo 'Creating test version $(version)'
python Update.py $(version)
python setup.py sdist
twine upload $(shell ls -t dist/* | head -1) -r testpypi
version:
echo 'Creating version $(version)'
python Update.py $(version)
make tutorials
git add setup.py docs/conf.py docs/Tutorials/* docs/index.rst MJOLNIR/__init__.py
git commit -m 'Update version'
git tag -a $(version) -m \'$(version)\'
make wheel
git push
git push --tags
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = MJOLNIR
SOURCEDIR = docs
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)