backend.ai-cli 23.9.5__tar.gz → 23.9.8rc2__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 backend.ai-cli might be problematic. Click here for more details.

Files changed (24) hide show
  1. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/PKG-INFO +2 -2
  2. backend.ai-cli-23.9.8rc2/ai/backend/cli/VERSION +1 -0
  3. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/ai/backend/cli/loader.py +12 -6
  4. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/ai/backend/cli/main.py +2 -2
  5. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/backend.ai_cli.egg-info/PKG-INFO +2 -2
  6. backend.ai-cli-23.9.8rc2/backend.ai_cli.egg-info/requires.txt +3 -0
  7. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/setup.py +3 -3
  8. backend.ai-cli-23.9.5/ai/backend/cli/VERSION +0 -1
  9. backend.ai-cli-23.9.5/backend.ai_cli.egg-info/requires.txt +0 -3
  10. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/MANIFEST.in +0 -0
  11. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/ai/backend/cli/__init__.py +0 -0
  12. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/ai/backend/cli/__main__.py +0 -0
  13. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/ai/backend/cli/extensions.py +0 -0
  14. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/ai/backend/cli/interaction.py +0 -0
  15. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/ai/backend/cli/py.typed +0 -0
  16. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/ai/backend/cli/types.py +0 -0
  17. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/backend.ai_cli.egg-info/SOURCES.txt +0 -0
  18. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/backend.ai_cli.egg-info/dependency_links.txt +0 -0
  19. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/backend.ai_cli.egg-info/entry_points.txt +0 -0
  20. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/backend.ai_cli.egg-info/namespace_packages.txt +0 -0
  21. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/backend.ai_cli.egg-info/not-zip-safe +0 -0
  22. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/backend.ai_cli.egg-info/top_level.txt +0 -0
  23. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/backend_shim.py +0 -0
  24. {backend.ai-cli-23.9.5 → backend.ai-cli-23.9.8rc2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: backend.ai-cli
3
- Version: 23.9.5
3
+ Version: 23.9.8rc2
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
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3
15
15
  Classifier: Environment :: No Input/Output (Daemon)
16
16
  Classifier: Topic :: Scientific/Engineering
17
17
  Classifier: Topic :: Software Development
18
- Classifier: Development Status :: 5 - Production/Stable
18
+ Classifier: Development Status :: 4 - Beta
19
19
  Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: License :: OSI Approved :: MIT License
21
21
  Requires-Python: >=3.11,<3.12
@@ -0,0 +1 @@
1
+ 23.09.8rc2
@@ -1,3 +1,4 @@
1
+ import logging
1
2
  from typing import Optional
2
3
 
3
4
  import click # noqa: E402
@@ -6,6 +7,8 @@ from ai.backend.plugin.entrypoint import scan_entrypoints
6
7
 
7
8
  from .main import main # noqa: E402
8
9
 
10
+ log = logging.getLogger(__spec__.name) # type: ignore[name-defined]
11
+
9
12
 
10
13
  def load_entry_points(
11
14
  allowlist: Optional[set[str]] = None,
@@ -19,10 +22,13 @@ def load_entry_points(
19
22
  main.add_command(cmd, name=name)
20
23
  else:
21
24
  prefix, _, subprefix = entrypoint.name.partition(".")
22
- if not subprefix:
23
- subcmd = entrypoint.load()
24
- main.add_command(subcmd, name=prefix)
25
- else:
26
- subcmd = entrypoint.load()
27
- main.commands[prefix].add_command(subcmd, name=subprefix) # type: ignore
25
+ try:
26
+ if not subprefix:
27
+ subcmd = entrypoint.load()
28
+ main.add_command(subcmd, name=prefix)
29
+ else:
30
+ subcmd = entrypoint.load()
31
+ main.commands[prefix].add_command(subcmd, name=subprefix) # type: ignore
32
+ except ImportError:
33
+ log.warning("Failed to import %r (%s)", entrypoint, prefix)
28
34
  return main
@@ -12,14 +12,14 @@ from .types import CliContextInfo
12
12
  )
13
13
  @click.option(
14
14
  "--skip-sslcert-validation",
15
- help="<Client option> Skip SSL certificate validation for all API requests.",
15
+ help="(client option) Skip SSL certificate validation for all API requests.",
16
16
  is_flag=True,
17
17
  )
18
18
  @click.option(
19
19
  "--output",
20
20
  type=click.Choice(["json", "console"]),
21
21
  default="console",
22
- help="<Client option> Set the output style of the command results.",
22
+ help="(client option) Set the output style of the command results.",
23
23
  )
24
24
  @click.pass_context
25
25
  def main(ctx: click.Context, **kwargs) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: backend.ai-cli
3
- Version: 23.9.5
3
+ Version: 23.9.8rc2
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
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3
15
15
  Classifier: Environment :: No Input/Output (Daemon)
16
16
  Classifier: Topic :: Scientific/Engineering
17
17
  Classifier: Topic :: Software Development
18
- Classifier: Development Status :: 5 - Production/Stable
18
+ Classifier: Development Status :: 4 - Beta
19
19
  Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: License :: OSI Approved :: MIT License
21
21
  Requires-Python: >=3.11,<3.12
@@ -0,0 +1,3 @@
1
+ attrs>=20.3
2
+ backend.ai-plugin==23.09.8rc2
3
+ click~=8.1.7
@@ -15,7 +15,7 @@ setup(**{
15
15
  'Environment :: No Input/Output (Daemon)',
16
16
  'Topic :: Scientific/Engineering',
17
17
  'Topic :: Software Development',
18
- 'Development Status :: 5 - Production/Stable',
18
+ 'Development Status :: 4 - Beta',
19
19
  'Programming Language :: Python :: 3.11',
20
20
  'License :: OSI Approved :: MIT License',
21
21
  ],
@@ -27,7 +27,7 @@ setup(**{
27
27
  },
28
28
  'install_requires': (
29
29
  'attrs>=20.3',
30
- """backend.ai-plugin==23.09.5
30
+ """backend.ai-plugin==23.09.8rc2
31
31
  """,
32
32
  'click~=8.1.7',
33
33
  ),
@@ -75,7 +75,7 @@ You can do the same in `setup.py` as well.
75
75
  },
76
76
  'python_requires': '>=3.11,<3.12',
77
77
  'url': 'https://github.com/lablup/backend.ai',
78
- 'version': """23.09.5
78
+ 'version': """23.09.8rc2
79
79
  """,
80
80
  'zip_safe': False,
81
81
  })
@@ -1 +0,0 @@
1
- 23.09.5
@@ -1,3 +0,0 @@
1
- attrs>=20.3
2
- backend.ai-plugin==23.09.5
3
- click~=8.1.7