viur-cli 2.3.6__tar.gz → 2.3.8__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.6 → viur_cli-2.3.8}/LICENSE +1 -1
  2. {viur_cli-2.3.6/src/viur_cli.egg-info → viur_cli-2.3.8}/PKG-INFO +2 -2
  3. {viur_cli-2.3.6 → viur_cli-2.3.8}/README.md +1 -1
  4. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/scriptor/cli.py +7 -6
  5. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/version.py +1 -1
  6. {viur_cli-2.3.6 → viur_cli-2.3.8/src/viur_cli.egg-info}/PKG-INFO +2 -2
  7. {viur_cli-2.3.6 → viur_cli-2.3.8}/pyproject.toml +0 -0
  8. {viur_cli-2.3.6 → viur_cli-2.3.8}/setup.cfg +0 -0
  9. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/__init__.py +0 -0
  10. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/build.py +0 -0
  11. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/cli.py +0 -0
  12. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/cloud.py +0 -0
  13. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/conf.py +0 -0
  14. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/deprecated.py +0 -0
  15. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/local.py +0 -0
  16. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/package.py +0 -0
  17. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/scriptor/__init__.py +0 -0
  18. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/scriptor/login.py +0 -0
  19. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/scripts/__init__.py +0 -0
  20. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/scripts/get_pyodide.py +0 -0
  21. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/setup.py +0 -0
  22. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/tool.py +0 -0
  23. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/update.py +0 -0
  24. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli/utils.py +0 -0
  25. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli.egg-info/SOURCES.txt +0 -0
  26. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli.egg-info/dependency_links.txt +0 -0
  27. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli.egg-info/entry_points.txt +0 -0
  28. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli.egg-info/requires.txt +0 -0
  29. {viur_cli-2.3.6 → viur_cli-2.3.8}/src/viur_cli.egg-info/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- Copyright © 2025 by Mausbrand Informationssysteme GmbH.
1
+ Copyright © 2026 by Mausbrand Informationssysteme GmbH.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: viur-cli
3
- Version: 2.3.6
3
+ Version: 2.3.8
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
@@ -346,7 +346,7 @@ viur-cli depends on
346
346
 
347
347
  ## License
348
348
 
349
- Copyright © 2025 by Mausbrand Informationssysteme GmbH.<br>
349
+ Copyright © 2026 by Mausbrand Informationssysteme GmbH.<br>
350
350
  Mausbrand and ViUR are registered trademarks of Mausbrand Informationssysteme GmbH.
351
351
 
352
352
  This project is free software under the MIT license.<br>
@@ -323,7 +323,7 @@ viur-cli depends on
323
323
 
324
324
  ## License
325
325
 
326
- Copyright © 2025 by Mausbrand Informationssysteme GmbH.<br>
326
+ Copyright © 2026 by Mausbrand Informationssysteme GmbH.<br>
327
327
  Mausbrand and ViUR are registered trademarks of Mausbrand Informationssysteme GmbH.
328
328
 
329
329
  This project is free software under the MIT license.<br>
@@ -159,12 +159,12 @@ def pull(ctx: click.Context, force: bool):
159
159
 
160
160
  def create_file():
161
161
  with open(_path, "a+") as f:
162
- f.write(entry["script"])
162
+ f.write(entry["script"] or "")
163
163
 
164
164
  if os.path.exists(_path):
165
165
  if force:
166
166
  with open(_path, "r") as f:
167
- changed = f.read().splitlines() != entry["script"].splitlines()
167
+ changed = f.read().splitlines() != (entry["script"] or "").splitlines()
168
168
  os.remove(_path)
169
169
  create_file()
170
170
  if changed:
@@ -176,7 +176,7 @@ def pull(ctx: click.Context, force: bool):
176
176
  else:
177
177
  with open(_path, "r") as f:
178
178
  local_content = f.read()
179
- remote_content = entry["script"]
179
+ remote_content = entry["script"] or ""
180
180
  diff = list(difflib.unified_diff(
181
181
  remote_content.splitlines(),
182
182
  local_content.splitlines(),
@@ -287,7 +287,7 @@ def push(ctx: click.Context, force: bool, watch: bool):
287
287
  with open(_real_file, "r") as f:
288
288
  file_content = f.read()
289
289
 
290
- if hashlib.sha256(entry["script"].encode("utf-8")).digest() \
290
+ if hashlib.sha256((entry["script"] or "").encode("utf-8")).digest() \
291
291
  != hashlib.sha256(file_content.encode("utf-8")).digest():
292
292
  can_push = force
293
293
  if not can_push:
@@ -372,9 +372,10 @@ def push(ctx: click.Context, force: bool, watch: bool):
372
372
 
373
373
  def on_modified(event):
374
374
  try:
375
- # check for tmp file
376
375
  if event.src_path.endswith("~"):
377
376
  return
377
+ if not os.path.exists(event.src_path):
378
+ return
378
379
  if event.src_path not in modified_files:
379
380
  modified_files[event.src_path] = os.path.getmtime(event.src_path)
380
381
  elif os.path.getmtime(event.src_path) == modified_files[event.src_path]:
@@ -386,7 +387,7 @@ def push(ctx: click.Context, force: bool, watch: bool):
386
387
  print(f"Error: on file {event.src_path} {e}")
387
388
  traceback.print_exc()
388
389
 
389
- regexes = [r".*\.py"]
390
+ regexes = [r".*\.py$"]
390
391
  ignore_regexes = []
391
392
  ignore_directories = True
392
393
  case_sensitive = False
@@ -1,2 +1,2 @@
1
- __version__ = "2.3.6"
1
+ __version__ = "2.3.8"
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.6
3
+ Version: 2.3.8
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
@@ -346,7 +346,7 @@ viur-cli depends on
346
346
 
347
347
  ## License
348
348
 
349
- Copyright © 2025 by Mausbrand Informationssysteme GmbH.<br>
349
+ Copyright © 2026 by Mausbrand Informationssysteme GmbH.<br>
350
350
  Mausbrand and ViUR are registered trademarks of Mausbrand Informationssysteme GmbH.
351
351
 
352
352
  This project is free software under the MIT license.<br>
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