malevich-coretools 0.2.15__py3-none-any.whl → 0.2.16__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of malevich-coretools might be problematic. Click here for more details.
- malevich_coretools/utils.py +3 -11
- {malevich_coretools-0.2.15.dist-info → malevich_coretools-0.2.16.dist-info}/METADATA +1 -1
- {malevich_coretools-0.2.15.dist-info → malevich_coretools-0.2.16.dist-info}/RECORD +6 -6
- {malevich_coretools-0.2.15.dist-info → malevich_coretools-0.2.16.dist-info}/LICENSE +0 -0
- {malevich_coretools-0.2.15.dist-info → malevich_coretools-0.2.16.dist-info}/WHEEL +0 -0
- {malevich_coretools-0.2.15.dist-info → malevich_coretools-0.2.16.dist-info}/top_level.txt +0 -0
malevich_coretools/utils.py
CHANGED
|
@@ -1032,20 +1032,16 @@ def create_app(
|
|
|
1032
1032
|
) -> Alias.Id:
|
|
1033
1033
|
"""create app\n
|
|
1034
1034
|
`app_cfg` must be json or dict or None\n
|
|
1035
|
-
`image_ref` automatically generated by id, but this is not always True, it is better to set it\n
|
|
1036
1035
|
return `id` """
|
|
1037
1036
|
assert (
|
|
1038
1037
|
platform in POSSIBLE_APPS_PLATFORMS
|
|
1039
1038
|
), f"wrong platform: {platform}, possible platforms: {POSSIBLE_APPS_PLATFORMS}"
|
|
1039
|
+
assert image_ref is not None, "image_ref not set"
|
|
1040
1040
|
app_cfg_json = None if app_cfg is None else to_json(app_cfg)
|
|
1041
1041
|
image_user = image_auth[0] if image_auth is not None else Config.USERNAME if use_system_auth else None
|
|
1042
1042
|
image_token = image_auth[1] if image_auth is not None else Config.TOKEN if use_system_auth else None
|
|
1043
1043
|
if Config.WITH_WARNINGS and (image_user is None or image_token is None):
|
|
1044
1044
|
Config.logger.warning("image_auth not set")
|
|
1045
|
-
if image_ref is None:
|
|
1046
|
-
image_ref = f"registry.gitlab.com/{image_user}/{app_id}:master"
|
|
1047
|
-
if Config.WITH_WARNINGS:
|
|
1048
|
-
Config.logger.warning(f"assumed image ref: {image_ref}")
|
|
1049
1045
|
json_image = JsonImage(ref=image_ref, user=image_user, token=image_token)
|
|
1050
1046
|
app = UserApp(
|
|
1051
1047
|
appId=app_id,
|
|
@@ -1082,20 +1078,16 @@ def update_app(
|
|
|
1082
1078
|
conn_url: Optional[str] = None,
|
|
1083
1079
|
) -> Alias.Info:
|
|
1084
1080
|
"""update app by `id`\n
|
|
1085
|
-
`app_cfg` must be json or dict or None
|
|
1086
|
-
`image_ref` automatically generated by id, but this is not always True, it is better to set it"""
|
|
1081
|
+
`app_cfg` must be json or dict or None"""
|
|
1087
1082
|
assert (
|
|
1088
1083
|
platform in POSSIBLE_APPS_PLATFORMS
|
|
1089
1084
|
), f"wrong platform: {platform}, possible platforms: {POSSIBLE_APPS_PLATFORMS}"
|
|
1085
|
+
assert image_ref is not None, "image_ref not set"
|
|
1090
1086
|
app_cfg_json = None if app_cfg is None else to_json(app_cfg)
|
|
1091
1087
|
image_user = image_auth[0] if image_auth is not None else Config.USERNAME if use_system_auth else None
|
|
1092
1088
|
image_token = image_auth[1] if image_auth is not None else Config.TOKEN if use_system_auth else None
|
|
1093
1089
|
if Config.WITH_WARNINGS and (image_user is None or image_token is None):
|
|
1094
1090
|
Config.logger.warning("image_auth not set")
|
|
1095
|
-
if image_ref is None:
|
|
1096
|
-
image_ref = f"registry.gitlab.com/{image_user}/{app_id}:master"
|
|
1097
|
-
if Config.WITH_WARNINGS:
|
|
1098
|
-
Config.logger.warning(f"assumed image ref: {image_ref}")
|
|
1099
1091
|
json_image = JsonImage(ref=image_ref, user=image_user, token=image_token)
|
|
1100
1092
|
app = UserApp(
|
|
1101
1093
|
appId=app_id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
malevich_coretools/__init__.py,sha256=88IRvwNti4YOMJc6RaVRutwurJzP23g30D-rgo04Fgc,82
|
|
2
|
-
malevich_coretools/utils.py,sha256=
|
|
2
|
+
malevich_coretools/utils.py,sha256=SyDrDHsaXvS6eRuuAS7-1iG7yhamAYH_JqHOMTsYqZg,65093
|
|
3
3
|
malevich_coretools/abstract/__init__.py,sha256=ZWtP4gFLpNVFXzlMKXEK4iMnUqqMg07pL8yKGSJd6QI,38
|
|
4
4
|
malevich_coretools/abstract/abstract.py,sha256=zRyUW_PHJvL8NNABZZL3PV_05qkYKp6ugAkfyls95V4,9232
|
|
5
5
|
malevich_coretools/admin/__init__.py,sha256=zdIcHs3T_NZ8HYWts-O7OpBEWHIu779QDZMGF5HRCLg,35
|
|
@@ -13,8 +13,8 @@ malevich_coretools/secondary/const.py,sha256=2_Uer7-sCRdHRoAyl-LsEBPnQd5BHloWAOz
|
|
|
13
13
|
malevich_coretools/secondary/helpers.py,sha256=lcWN1ctfVQa5KFqh5mXdp_16hA3TXhJGe4mtNdQHnUA,3072
|
|
14
14
|
malevich_coretools/tools/__init__.py,sha256=jDxlCa5Dr6Y43qlI7JwsRAlBkKmFeTHTEnjNUvu-0iw,46
|
|
15
15
|
malevich_coretools/tools/vast.py,sha256=u1cnfylSgq3nYfonXbTy1zwor3OPkhD3vRf2OnqlMZY,12504
|
|
16
|
-
malevich_coretools-0.2.
|
|
17
|
-
malevich_coretools-0.2.
|
|
18
|
-
malevich_coretools-0.2.
|
|
19
|
-
malevich_coretools-0.2.
|
|
20
|
-
malevich_coretools-0.2.
|
|
16
|
+
malevich_coretools-0.2.16.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
17
|
+
malevich_coretools-0.2.16.dist-info/METADATA,sha256=DUbHxyFkfxtstzPHwQMmC4ZAfuS2iaJlyKeQYYdm68g,237
|
|
18
|
+
malevich_coretools-0.2.16.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
19
|
+
malevich_coretools-0.2.16.dist-info/top_level.txt,sha256=wDX3s1Tso0otBPNrFRfXqyNpm48W4Bp5v6JfbITO2Z8,19
|
|
20
|
+
malevich_coretools-0.2.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|