backend.ai-cli 24.3.10b3__py3-none-any.whl → 24.9.0rc1__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 backend.ai-cli might be problematic. Click here for more details.

ai/backend/cli/VERSION CHANGED
@@ -1 +1 @@
1
- 24.03.10b3
1
+ 24.09.0rc1
@@ -73,12 +73,12 @@ def ask_string_in_array(prompt: str, choices: list, default: str) -> Optional[st
73
73
 
74
74
  if default:
75
75
  question = (
76
- f"{prompt} (choices: {'/'.join(choices)}, "
76
+ f"{prompt} (choices: {"/".join(choices)}, "
77
77
  f"if left empty, this will use default value: {default}): "
78
78
  )
79
79
  else:
80
80
  question = (
81
- f"{prompt} (choices: {'/'.join(choices)}, if left empty, this will remove this key): "
81
+ f"{prompt} (choices: {"/".join(choices)}, if left empty, this will remove this key): "
82
82
  )
83
83
 
84
84
  while True:
@@ -92,7 +92,7 @@ def ask_string_in_array(prompt: str, choices: list, default: str) -> Optional[st
92
92
  elif user_reply.lower() in choices:
93
93
  break
94
94
  else:
95
- print(f"Please answer in {'/'.join(choices)}.")
95
+ print(f"Please answer in {"/".join(choices)}.")
96
96
  return user_reply
97
97
 
98
98
 
ai/backend/cli/loader.py CHANGED
@@ -23,12 +23,11 @@ def load_entry_points(
23
23
  else:
24
24
  prefix, _, subprefix = entrypoint.name.partition(".")
25
25
  try:
26
+ subcmd = entrypoint.load()
26
27
  if not subprefix:
27
- subcmd = entrypoint.load()
28
28
  main.add_command(subcmd, name=prefix)
29
29
  else:
30
- subcmd = entrypoint.load()
31
30
  main.commands[prefix].add_command(subcmd, name=subprefix) # type: ignore
32
31
  except ImportError:
33
- log.warning("Failed to import %r (%s)", entrypoint, prefix)
32
+ log.exception("Failed to import %r (%s)", entrypoint, prefix)
34
33
  return main
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: backend.ai-cli
3
- Version: 24.3.10b3
3
+ Version: 24.9.0rc1
4
4
  Summary: Backend.AI Command Line Interface Helper
5
5
  Home-page: https://github.com/lablup/backend.ai
6
6
  Author: Lablup Inc. and contributors
@@ -20,10 +20,10 @@ Classifier: Programming Language :: Python :: 3.12
20
20
  Classifier: License :: OSI Approved :: MIT License
21
21
  Requires-Python: >=3.12,<3.13
22
22
  Description-Content-Type: text/markdown
23
- Requires-Dist: attrs >=20.3
24
- Requires-Dist: backend.ai-plugin ==24.03.10b3
25
- Requires-Dist: click ~=8.1.7
26
- Requires-Dist: trafaret ~=2.1
23
+ Requires-Dist: attrs>=24.2
24
+ Requires-Dist: backend.ai-plugin==24.09.0rc1
25
+ Requires-Dist: click~=8.1.7
26
+ Requires-Dist: trafaret~=2.1
27
27
 
28
28
  # backend.ai-cli
29
29
 
@@ -1,16 +1,16 @@
1
- ai/backend/cli/VERSION,sha256=7eDRrOLLXzB6OUDBAhgBtOOzIqhFVQ8MKAWQ2Q3fz8I,11
1
+ ai/backend/cli/VERSION,sha256=41zKMM-dyztXOWI5kxKipX8QfEe_8RkYc3ZscniK7u8,11
2
2
  ai/backend/cli/__init__.py,sha256=cID1jLnC_vj48GgMN6Yb1FA3JsQ95zNmCHmRYE8TFhY,22
3
3
  ai/backend/cli/__main__.py,sha256=Rp61ckhVRXFk_0BywIRgbiOzkR_gLq2cyyiDyLsB8UI,291
4
4
  ai/backend/cli/extensions.py,sha256=twjloigQl4VTBU8gP6YMZNGi3dUDW4V_i-yVX12HRH0,5125
5
- ai/backend/cli/interaction.py,sha256=L-6kvJbxMw9YeO_NT78wortS_Db0Qx9W8XiY56JgorI,4982
6
- ai/backend/cli/loader.py,sha256=i8Q1jIngcxwiMNksNFBc3qwdZJu4Ba69k6gpCm-n-ro,1189
5
+ ai/backend/cli/interaction.py,sha256=wdRa5aBWebW_bffGwRSBs3lVB4CJtc0gNAx1u6084Ss,4982
6
+ ai/backend/cli/loader.py,sha256=yWyNyvFJORtFFQfcL-vqwD5NbRxAHxS_uH1878r9EIA,1140
7
7
  ai/backend/cli/main.py,sha256=8HpGUH5k0uv6lKVqKoctW3vd9hm1xo_j06HSCvyRvgw,707
8
8
  ai/backend/cli/params.py,sha256=hnZNXGKTsNDOlPHXDB3Tnk1p8xtWIDFM649U8WPSv38,6436
9
9
  ai/backend/cli/py.typed,sha256=QJeIkjairybCkwM_65ZMTPEYwCJODQY_7AqJ6dBWnvI,11
10
10
  ai/backend/cli/types.py,sha256=mThxfeGD6MsHt0OkMdw1LvjufENHYbYZXcgRVNpmD5o,734
11
- backend.ai_cli-24.3.10b3.dist-info/METADATA,sha256=0qauWPnGKV3XUaVXQcqG7wIYrV-AShFG94-rsV9wDV0,1728
12
- backend.ai_cli-24.3.10b3.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
13
- backend.ai_cli-24.3.10b3.dist-info/entry_points.txt,sha256=lOiEpT48ETF_ht5fFVQugAjZSuZr-wkGYZzfC5YTnuY,60
14
- backend.ai_cli-24.3.10b3.dist-info/namespace_packages.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
15
- backend.ai_cli-24.3.10b3.dist-info/top_level.txt,sha256=TJAp5TUfTUztZSUatbygths7CWRrFfnOMCtZ-DIcw6c,3
16
- backend.ai_cli-24.3.10b3.dist-info/RECORD,,
11
+ backend.ai_cli-24.9.0rc1.dist-info/METADATA,sha256=l-4kPaLsIuYmH4ymQakgiYGOaNFQ2N9cnqzbeRUWVs0,1724
12
+ backend.ai_cli-24.9.0rc1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
13
+ backend.ai_cli-24.9.0rc1.dist-info/entry_points.txt,sha256=lOiEpT48ETF_ht5fFVQugAjZSuZr-wkGYZzfC5YTnuY,60
14
+ backend.ai_cli-24.9.0rc1.dist-info/namespace_packages.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
15
+ backend.ai_cli-24.9.0rc1.dist-info/top_level.txt,sha256=TJAp5TUfTUztZSUatbygths7CWRrFfnOMCtZ-DIcw6c,3
16
+ backend.ai_cli-24.9.0rc1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.3.0)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5