forked from juju/python-libjuju
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 799 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (31 loc) · 799 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
BIN := .tox/py3/bin
PY := $(BIN)/python
PIP := $(BIN)/pip
SCHEMAGEN := $(shell which schemagen)
VERSION=$(shell cat VERSION)
clean:
find . -name __pycache__ -type d -exec rm -r {} +
find . -name *.pyc -delete
rm -rf .tox
rm -rf docs/_build/
.tox:
tox -r --notest
client:
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
docs: .tox
$(PIP) install -r docs/requirements.txt
rm -rf docs/_build/
$(BIN)/sphinx-build -b html docs/ docs/_build/
cd docs/_build/ && zip -r docs.zip *
release:
git fetch --tags
$(PY) setup.py sdist upload
git tag ${VERSION}
git push --tags
upload: release
.PHONY: clean client test docs upload release