Skip to content

Commit

Permalink
Merge pull request #1194 from dimaqq/chore-nuke-per-facade-schema
Browse files Browse the repository at this point in the history
#1194

Individual _clientNN.py files don't need the schemata inlined, remove that field from codegen.
  • Loading branch information
jujubot authored Nov 20, 2024
2 parents 271657a + e9b942b commit 651e36a
Show file tree
Hide file tree
Showing 16 changed files with 5 additions and 18,857 deletions.
868 changes: 0 additions & 868 deletions juju/client/_client1.py

Large diffs are not rendered by default.

1,432 changes: 0 additions & 1,432 deletions juju/client/_client10.py

Large diffs are not rendered by default.

860 changes: 0 additions & 860 deletions juju/client/_client11.py

Large diffs are not rendered by default.

829 changes: 0 additions & 829 deletions juju/client/_client12.py

Large diffs are not rendered by default.

1,396 changes: 0 additions & 1,396 deletions juju/client/_client17.py

Large diffs are not rendered by default.

1,545 changes: 0 additions & 1,545 deletions juju/client/_client19.py

Large diffs are not rendered by default.

787 changes: 0 additions & 787 deletions juju/client/_client2.py

Large diffs are not rendered by default.

1,487 changes: 0 additions & 1,487 deletions juju/client/_client20.py

Large diffs are not rendered by default.

1,026 changes: 0 additions & 1,026 deletions juju/client/_client3.py

Large diffs are not rendered by default.

1,072 changes: 0 additions & 1,072 deletions juju/client/_client4.py

Large diffs are not rendered by default.

679 changes: 0 additions & 679 deletions juju/client/_client5.py

Large diffs are not rendered by default.

2,564 changes: 0 additions & 2,564 deletions juju/client/_client6.py

Large diffs are not rendered by default.

2,697 changes: 0 additions & 2,697 deletions juju/client/_client7.py

Large diffs are not rendered by default.

751 changes: 0 additions & 751 deletions juju/client/_client8.py

Large diffs are not rendered by default.

854 changes: 0 additions & 854 deletions juju/client/_client9.py

Large diffs are not rendered by default.

15 changes: 5 additions & 10 deletions juju/client/facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,16 +630,11 @@ def build_facade(schema):
(Type,),
dict(name=schema.name, version=schema.version, schema=schema),
)
source = """
class {name}Facade(Type):
name = '{name}'
version = {version}
schema = {schema}
""".format(
name=schema.name,
version=schema.version,
schema=textwrap.indent(pprint.pformat(schema), " "),
)
source = f"""
class {schema.name}Facade(Type):
name = '{schema.name}'
version = {schema.version}
"""
return cls, source


Expand Down

0 comments on commit 651e36a

Please sign in to comment.