X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=c4741757dcaf4b730c0521076ff7e69b90d3ad29;hb=refs%2Ftags%2F0.4.1;hp=ed9c3aaab0ae7a298c26e3432255dffd6ecc4c57;hpb=27f3e02cfe4caf9ddcd0613b57c8f4691004c9af;p=osm%2FN2VC.git diff --git a/Makefile b/Makefile index ed9c3aa..c474175 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ BIN := .tox/py35/bin PY := $(BIN)/python3.5 PIP := $(BIN)/pip +SCHEMAGEN := $(shell which schemagen) clean: find . -name __pycache__ -type d -exec rm -r {} + @@ -11,7 +12,10 @@ clean: tox -r --notest client: - $(PY) -m juju.client.facade -s juju/client/schemas.json -o juju/client/_client.py +ifndef SCHEMAGEN + $(error "schemagen is not available, please install from https://github.com/juju/schemagen") +endif + $(PY) -m juju.client.facade -s "juju/client/schemas*" -o juju/client/ test: tox @@ -23,7 +27,14 @@ docs: .tox $(BIN)/sphinx-build -b html docs/ docs/_build/ cd docs/_build/ && zip -r docs.zip * -upload: docs - $(PY) setup.py sdist upload upload_docs --upload-dir=docs/_build +release: docs + git remote | xargs -L1 git fetch --tags + $(PY) setup.py sdist upload + git tag ${VERSION} + git remote | xargs -L1 git push --tags + @echo "Please manually upload docs/_build/docs.zip via the PyPI website" -.PHONY: clean client test docs upload +upload: release + + +.PHONY: clean client test docs upload release