viur-cli 2.3.3__tar.gz → 2.3.4__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 (29) hide show
  1. {viur_cli-2.3.3/src/viur_cli.egg-info → viur_cli-2.3.4}/PKG-INFO +1 -1
  2. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/scriptor/cli.py +13 -10
  3. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/version.py +1 -1
  4. {viur_cli-2.3.3 → viur_cli-2.3.4/src/viur_cli.egg-info}/PKG-INFO +1 -1
  5. {viur_cli-2.3.3 → viur_cli-2.3.4}/LICENSE +0 -0
  6. {viur_cli-2.3.3 → viur_cli-2.3.4}/README.md +0 -0
  7. {viur_cli-2.3.3 → viur_cli-2.3.4}/pyproject.toml +0 -0
  8. {viur_cli-2.3.3 → viur_cli-2.3.4}/setup.cfg +0 -0
  9. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/__init__.py +0 -0
  10. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/build.py +0 -0
  11. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/cli.py +0 -0
  12. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/cloud.py +0 -0
  13. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/conf.py +0 -0
  14. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/deprecated.py +0 -0
  15. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/local.py +0 -0
  16. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/package.py +0 -0
  17. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/scriptor/__init__.py +0 -0
  18. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/scriptor/login.py +0 -0
  19. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/scripts/__init__.py +0 -0
  20. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/scripts/get_pyodide.py +0 -0
  21. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/setup.py +0 -0
  22. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/tool.py +0 -0
  23. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/update.py +0 -0
  24. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli/utils.py +0 -0
  25. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli.egg-info/SOURCES.txt +0 -0
  26. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli.egg-info/dependency_links.txt +0 -0
  27. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli.egg-info/entry_points.txt +0 -0
  28. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli.egg-info/requires.txt +0 -0
  29. {viur_cli-2.3.3 → viur_cli-2.3.4}/src/viur_cli.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: viur-cli
3
- Version: 2.3.3
3
+ Version: 2.3.4
4
4
  Summary: Command-line interface for ViUR application maintenance.
5
5
  Author-email: "Andreas H. Kelch" <ak@mausbrand.de>
6
6
  License-Expression: MIT
@@ -23,7 +23,7 @@ def get_modules():
23
23
  global _modules
24
24
  if _modules is None:
25
25
  _modules = Modules(scriptor_config["base_url"], cookies=scriptor_config["cookies"])
26
- asyncio.new_event_loop().run_until_complete(_modules.init())
26
+ asyncio.run(_modules.init())
27
27
 
28
28
  return _modules
29
29
 
@@ -126,7 +126,7 @@ def pull(ctx: click.Context, force: bool):
126
126
  working_dir = scriptor_config.get("working_dir")
127
127
 
128
128
  async def process_entry(entry: dict, is_node: bool):
129
- _path = os.path.join(working_dir, entry["path"])
129
+ _path = os.path.join(working_dir, entry["path"].lstrip("/"))
130
130
 
131
131
  if is_node:
132
132
  if not os.path.exists(_path):
@@ -146,9 +146,12 @@ def pull(ctx: click.Context, force: bool):
146
146
  with open(_path, "r") as f:
147
147
  if hashlib.sha256(entry["script"].encode()).digest() \
148
148
  != hashlib.sha256(f.read().encode()).digest():
149
- if click.confirm(f"There is a difference with {entry['path']}. Overwrite?"):
150
- os.remove(_path)
151
- create_file()
149
+ try:
150
+ if click.confirm(f"There is a difference with {entry['path']}. Overwrite?"):
151
+ os.remove(_path)
152
+ create_file()
153
+ except click.exceptions.Abort:
154
+ click.echo("\nSkipping...")
152
155
 
153
156
  else:
154
157
  create_file()
@@ -161,7 +164,7 @@ def pull(ctx: click.Context, force: bool):
161
164
  async for leaf in tree.list(skel_type="leaf"):
162
165
  await process_entry(leaf, False)
163
166
 
164
- asyncio.new_event_loop().run_until_complete(main())
167
+ asyncio.run(main())
165
168
 
166
169
 
167
170
  @script.command()
@@ -313,7 +316,7 @@ def push(ctx: click.Context, force: bool, watch: bool):
313
316
  elif os.path.getmtime(event.src_path) == modified_files[event.src_path]:
314
317
  return
315
318
  modified_files[event.src_path] = os.path.getmtime(event.src_path)
316
- asyncio.new_event_loop().run_until_complete(main(event.src_path))
319
+ asyncio.run(main(event.src_path))
317
320
  except Exception as e:
318
321
  import traceback
319
322
  print(f"Error: on file {event.src_path} {e}")
@@ -341,9 +344,9 @@ def push(ctx: click.Context, force: bool, watch: bool):
341
344
  observer.stop()
342
345
  observer.join()
343
346
 
344
- asyncio.new_event_loop().run_until_complete(watch_loop())
347
+ watch_loop()
345
348
  return
346
- asyncio.new_event_loop().run_until_complete(main())
349
+ asyncio.run(main())
347
350
 
348
351
 
349
352
  @script.command()
@@ -376,4 +379,4 @@ def run(ctx: click.Context, path: str, args=None):
376
379
 
377
380
  await module.main()
378
381
 
379
- asyncio.new_event_loop().run_until_complete(main())
382
+ asyncio.run(main())
@@ -1,2 +1,2 @@
1
- __version__ = "2.3.3"
1
+ __version__ = "2.3.4"
2
2
  MINIMAL_PIPENV = "2023.11.15"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: viur-cli
3
- Version: 2.3.3
3
+ Version: 2.3.4
4
4
  Summary: Command-line interface for ViUR application maintenance.
5
5
  Author-email: "Andreas H. Kelch" <ak@mausbrand.de>
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes