malevich-coretools 0.2.15__tar.gz → 0.2.16__tar.gz

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.

Files changed (30) hide show
  1. {malevich-coretools-0.2.15/malevich_coretools.egg-info → malevich-coretools-0.2.16}/PKG-INFO +1 -1
  2. malevich-coretools-0.2.16/VERSION +1 -0
  3. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/utils.py +3 -11
  4. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16/malevich_coretools.egg-info}/PKG-INFO +1 -1
  5. malevich-coretools-0.2.15/VERSION +0 -1
  6. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/LICENSE +0 -0
  7. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/MANIFEST.in +0 -0
  8. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/README.md +0 -0
  9. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/__init__.py +0 -0
  10. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/abstract/__init__.py +0 -0
  11. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/abstract/abstract.py +0 -0
  12. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/admin/__init__.py +0 -0
  13. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/admin/utils.py +0 -0
  14. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/funcs/__init__.py +0 -0
  15. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/funcs/funcs.py +0 -0
  16. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/funcs/helpers.py +0 -0
  17. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/secondary/__init__.py +0 -0
  18. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/secondary/config.py +0 -0
  19. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/secondary/const.py +0 -0
  20. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/secondary/helpers.py +0 -0
  21. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/tools/__init__.py +0 -0
  22. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools/tools/vast.py +0 -0
  23. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools.egg-info/SOURCES.txt +0 -0
  24. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools.egg-info/dependency_links.txt +0 -0
  25. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools.egg-info/requires.txt +0 -0
  26. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/malevich_coretools.egg-info/top_level.txt +0 -0
  27. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/pyproject.toml +0 -0
  28. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/requirements.txt +0 -0
  29. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/setup.cfg +0 -0
  30. {malevich-coretools-0.2.15 → malevich-coretools-0.2.16}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: malevich-coretools
3
- Version: 0.2.15
3
+ Version: 0.2.16
4
4
  Author: Andrew Pogrebnoj
5
5
  Author-email: andrew@onjulius.co
6
6
  License-File: LICENSE
@@ -0,0 +1 @@
1
+ 0.2.16
@@ -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\n
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: malevich-coretools
3
- Version: 0.2.15
3
+ Version: 0.2.16
4
4
  Author: Andrew Pogrebnoj
5
5
  Author-email: andrew@onjulius.co
6
6
  License-File: LICENSE
@@ -1 +0,0 @@
1
- 0.2.15