Merge pull request #39 from juju/bug/show-controller
[osm/N2VC.git] / Makefile
1 BIN := .tox/py35/bin
2 PY := $(BIN)/python3.5
3 PIP := $(BIN)/pip
4
5 clean:
6 find . -name __pycache__ -type d -exec rm -r {} +
7 find . -name *.pyc -delete
8 rm -rf .tox
9
10 .tox:
11 tox -r --notest
12
13 client:
14 $(PY) -m juju.client.facade -s juju/client/schemas.json -o juju/client/_client.py
15
16 test:
17 tox
18
19 docs: .tox
20 $(PIP) list | grep Sphinx || $(PIP) install -U sphinx
21 rm -rf docs/api/* docs/_build/
22 $(BIN)/sphinx-apidoc -o docs/api/ juju/
23 $(BIN)/sphinx-build -b html docs/ docs/_build/
24
25 upload: docs
26 $(PY) setup.py sdist upload upload_docs --upload-dir=docs/_build
27
28 .PHONY: clean client test docs upload