def _default_pkgdef(gf): # Use the name of the default model package_name = _default_package_name(gf) return guildfile.PackageDef(package_name, {}, gf)
def _default_package(gf): # Use the name of the default model default_model = gf.default_model package_name = (default_model.name if (default_model and default_model.name) else "package") return guildfile.PackageDef(package_name, {}, gf)