4 SCHEMAGEN
:= $(shell which schemagen
)
7 find .
-name __pycache__
-type d
-exec
rm -r
{} +
8 find .
-name
*.pyc
-delete
16 $(error
"schemagen is not available, please install from https://github.com/juju/schemagen")
18 $(PY
) -m juju.client.facade
-s
"juju/client/schemas*" -o juju
/client
/
24 $(PIP
) install -r docs
/requirements.txt
25 rm -rf docs
/api
/* docs
/_build
/
26 $(BIN
)/sphinx-apidoc
-o docs
/api
/ juju
/
27 $(BIN
)/sphinx-build
-b html docs
/ docs
/_build
/
28 cd docs
/_build
/ && zip
-r docs.zip
*
31 git remote | xargs
-L1 git fetch
--tags
32 $(PY
) setup.py sdist upload
34 git remote | xargs
-L1 git push
--tags
35 @echo
"Please manually upload docs/_build/docs.zip via the PyPI website"
40 .PHONY
: clean client
test docs upload release