vortex-cli 4.17.2__tar.gz → 4.17.3__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.
Files changed (42) hide show
  1. {vortex_cli-4.17.2/vortex_cli.egg-info → vortex_cli-4.17.3}/PKG-INFO +1 -1
  2. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/pyproject.toml +1 -1
  3. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/clean.py +7 -5
  4. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/clone.py +4 -3
  5. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/export.py +2 -2
  6. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/main.py +1 -1
  7. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/models.py +1 -1
  8. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/spinner.py +1 -3
  9. {vortex_cli-4.17.2 → vortex_cli-4.17.3/vortex_cli.egg-info}/PKG-INFO +1 -1
  10. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/LICENSE +0 -0
  11. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/README.md +0 -0
  12. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/setup.cfg +0 -0
  13. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/__init__.py +0 -0
  14. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/__main__.py +0 -0
  15. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/cli.py +0 -0
  16. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/colour.py +0 -0
  17. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/__init__.py +0 -0
  18. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/code.py +0 -0
  19. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/config.py +0 -0
  20. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/copy.py +0 -0
  21. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/db.py +0 -0
  22. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/delete.py +0 -0
  23. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/docs.py +0 -0
  24. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/execute.py +0 -0
  25. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/find.py +0 -0
  26. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/grep.py +0 -0
  27. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/list.py +0 -0
  28. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/log.py +0 -0
  29. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/new.py +0 -0
  30. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/commands/watch.py +0 -0
  31. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/constants.py +0 -0
  32. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/docs/Blackbook.pdf +0 -0
  33. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/lib/puakma-6.0.37.jar +0 -0
  34. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/logging.py +0 -0
  35. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/soap.py +0 -0
  36. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/util.py +0 -0
  37. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex/workspace.py +0 -0
  38. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex_cli.egg-info/SOURCES.txt +0 -0
  39. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex_cli.egg-info/dependency_links.txt +0 -0
  40. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex_cli.egg-info/entry_points.txt +0 -0
  41. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex_cli.egg-info/requires.txt +0 -0
  42. {vortex_cli-4.17.2 → vortex_cli-4.17.3}/vortex_cli.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vortex_cli
3
- Version: 4.17.2
3
+ Version: 4.17.3
4
4
  Summary: Vortex CLI
5
5
  Author-email: Jordan Amos <jordan.amos@gmail.com>
6
6
  License: MIT License
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
 
6
6
  [project]
7
7
  name = "vortex_cli"
8
- version = "4.17.2"
8
+ version = "4.17.3"
9
9
  description = "Vortex CLI"
10
10
  requires-python = ">=3.10"
11
11
  readme = { file = "README.md", content-type = "text/markdown" }
@@ -9,12 +9,14 @@ logger = logging.getLogger("vortex")
9
9
 
10
10
 
11
11
  def clean(workspace: Workspace) -> int:
12
- app_dirs = workspace.listdir(strict=False)
13
- if app_dirs:
12
+ cloned_apps = workspace.listapps()
13
+ if cloned_apps:
14
+ host_dirs = set(workspace.path / app.host for app in cloned_apps)
15
+ print(host_dirs)
14
16
  with workspace.exclusive_lock():
15
- for app_dir in app_dirs:
16
- shutil.rmtree(app_dir)
17
- logger.debug(f"Deleted directory '{app_dir}'")
17
+ for host_dir in host_dirs:
18
+ shutil.rmtree(host_dir)
19
+ logger.debug(f"Deleted directory '{host_dir}'")
18
20
  workspace.update_vscode_settings()
19
21
  logger.info("Workspace cleaned")
20
22
  return 0
@@ -188,7 +188,7 @@ async def _aclone_app(
188
188
  async def _aclone_apps(
189
189
  workspace: Workspace,
190
190
  server: PuakmaServer,
191
- app_ids: list[int],
191
+ app_ids: set[int],
192
192
  get_resources: bool,
193
193
  open_urls: bool,
194
194
  ) -> int:
@@ -233,10 +233,11 @@ def clone(
233
233
  if reclone:
234
234
  app_ids.extend(app.id for app in workspace.listapps(server))
235
235
 
236
+ unique_app_ids = set(app_ids)
236
237
  with (
237
238
  workspace.exclusive_lock(),
238
- Spinner(f"Cloning {len(app_ids)} application(s)..."),
239
+ Spinner(f"Cloning {len(unique_app_ids)} application(s)..."),
239
240
  ):
240
241
  return asyncio.run(
241
- _aclone_apps(workspace, server, app_ids, get_resources, open_urls)
242
+ _aclone_apps(workspace, server, unique_app_ids, get_resources, open_urls)
242
243
  )
@@ -21,7 +21,7 @@ def _save_bytes(data: bytes, output_path: Path) -> None:
21
21
 
22
22
  async def _aexport(
23
23
  server: PuakmaServer,
24
- app_ids: list[int],
24
+ app_ids: set[int],
25
25
  output_dir: Path,
26
26
  timeout: int,
27
27
  include_source: bool,
@@ -86,7 +86,7 @@ async def _aexport_app_pmx(
86
86
  def export(
87
87
  workspace: Workspace,
88
88
  server: PuakmaServer,
89
- app_ids: list[int],
89
+ app_ids: set[int],
90
90
  *,
91
91
  timeout: int,
92
92
  include_source: bool,
@@ -193,7 +193,7 @@ def main(argv: Sequence[str] | None = None) -> int:
193
193
  return export(
194
194
  workspace,
195
195
  server,
196
- args.app_ids,
196
+ set(args.app_ids),
197
197
  timeout=args.timeout,
198
198
  export_dir=args.export_dir,
199
199
  include_source=args.include_source,
@@ -368,7 +368,7 @@ class PuakmaApplication:
368
368
  @classmethod
369
369
  def from_dir(cls, path: Path) -> PuakmaApplication:
370
370
  """
371
- Returns an instance of this class from the .PuakmaApplication.pickle file
371
+ Returns an instance of this class from the .pma file
372
372
  within the given directory.
373
373
  Raises ValueError if unsuccessful
374
374
  """
@@ -5,7 +5,6 @@ import sys
5
5
  import threading
6
6
  import time
7
7
  from types import TracebackType
8
- from typing import Literal
9
8
 
10
9
 
11
10
  class Spinner:
@@ -53,6 +52,5 @@ class Spinner:
53
52
  exc_type: type[BaseException] | None,
54
53
  exc_val: BaseException | None,
55
54
  exc_tb: TracebackType | None = None,
56
- ) -> Literal[False]:
55
+ ) -> None:
57
56
  self.stop()
58
- return False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vortex_cli
3
- Version: 4.17.2
3
+ Version: 4.17.3
4
4
  Summary: Vortex CLI
5
5
  Author-email: Jordan Amos <jordan.amos@gmail.com>
6
6
  License: MIT License
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes