Permalink
Browse files

Regen schema to pick up missing APIs

Due to some portions of the API living in a different location in the
Juju source, they were missed.  The schema gen code has been factored
out into its own repo (https://github.com/juju/schemagen) and the
missing APIs fixed.
  • Loading branch information...
1 parent 5cf8d29 commit ef59035b2596a1998615cb0ad3f73fe539531898 @johnsca johnsca committed Mar 10, 2017
Showing with 4,705 additions and 1,420 deletions.
  1. +5 −0 Makefile
  2. +1,653 −189 juju/client/_client.py
  3. +6 −2 juju/client/facade.py
  4. +3,041 −1,229 juju/client/schemas.json
View
@@ -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,6 +12,10 @@ clean:
tox -r --notest
client:
+ifndef SCHEMAGEN
+ $(error "schemagen is not available, please install from https://github.com/juju/schemagen")
+endif
+ schemagen > juju/client/schemas.json
$(PY) -m juju.client.facade -s juju/client/schemas.json -o juju/client/_client.py
test:
Oops, something went wrong.

0 comments on commit ef59035

Please sign in to comment.