cgse-common 2024.1.4__tar.gz → 2024.1.5__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 (36) hide show
  1. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/PKG-INFO +1 -1
  2. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/pyproject.toml +1 -1
  3. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/env.py +34 -8
  4. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/.gitignore +0 -0
  5. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/README.md +0 -0
  6. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/bits.py +0 -0
  7. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/calibration.py +0 -0
  8. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/command.py +0 -0
  9. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/config.py +0 -0
  10. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/control.py +0 -0
  11. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/decorators.py +0 -0
  12. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/device.py +0 -0
  13. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/exceptions.py +0 -0
  14. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/hk.py +0 -0
  15. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/metrics.py +0 -0
  16. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/mixin.py +0 -0
  17. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/monitoring.py +0 -0
  18. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/observer.py +0 -0
  19. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/obsid.py +0 -0
  20. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/persistence.py +0 -0
  21. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/plugin.py +0 -0
  22. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/process.py +0 -0
  23. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/protocol.py +0 -0
  24. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/proxy.py +0 -0
  25. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/reload.py +0 -0
  26. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/resource.py +0 -0
  27. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/response.py +0 -0
  28. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/services.py +0 -0
  29. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/services.yaml +0 -0
  30. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/settings.py +0 -0
  31. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/settings.yaml +0 -0
  32. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/setup.py +0 -0
  33. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/state.py +0 -0
  34. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/system.py +0 -0
  35. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/version.py +0 -0
  36. {cgse_common-2024.1.4 → cgse_common-2024.1.5}/src/egse/zmq_ser.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cgse-common
3
- Version: 2024.1.4
3
+ Version: 2024.1.5
4
4
  Summary: Software framework to support hardware testing
5
5
  Author: IVS KU Leuven
6
6
  Maintainer-email: Rik Huygen <rik.huygen@kuleuven.be>, Sara Regibo <sara.regibo@kuleuven.be>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cgse-common"
3
- version = "2024.1.4"
3
+ version = "2024.1.5"
4
4
  description = "Software framework to support hardware testing"
5
5
  authors = [
6
6
  {name = "IVS KU Leuven"}
@@ -448,6 +448,12 @@ def main(args: list | None = None): # pragma: no cover
448
448
  action="store_true",
449
449
  help="Print help on the environment variables and paths.",
450
450
  )
451
+ parser.add_argument(
452
+ "--mkdir",
453
+ default=False,
454
+ action="store_true",
455
+ help="Create directory that doesn't exist.",
456
+ )
451
457
 
452
458
  args = parser.parse_args(args or [])
453
459
 
@@ -497,34 +503,54 @@ def main(args: list | None = None): # pragma: no cover
497
503
  with all_logging_disabled():
498
504
  warnings.filterwarnings("ignore", category=UserWarning)
499
505
  try:
500
- rich.print(f" {get_data_storage_location() = }", flush=True)
506
+ rich.print(f" {get_data_storage_location() = }", flush=True, end="")
501
507
  location = get_data_storage_location()
502
508
  if not Path(location).exists():
503
- rich.print("[red]ERROR: The generated data storage location doesn't exist![/]")
509
+ if args.mkdir:
510
+ rich.print(f" [green]⟶ Creating data storage location: {location}[/]")
511
+ Path(location).mkdir(parents=True)
512
+ else:
513
+ rich.print(" [red]⟶ ERROR: The data storage location doesn't exist![/]")
514
+ else:
515
+ rich.print()
504
516
  except ValueError as exc:
505
517
  rich.print(f" get_data_storage_location() = [red]{exc}[/]")
506
518
 
507
519
  try:
508
- rich.print(f" {get_conf_data_location() = }", flush=True)
520
+ rich.print(f" {get_conf_data_location() = }", flush=True, end="")
509
521
  location = get_conf_data_location()
510
522
  if not Path(location).exists():
511
- rich.print("[red]ERROR: The generated configuration data location doesn't exist![/]")
523
+ if args.mkdir:
524
+ rich.print(f" [green]⟶ Creating configuration data location: {location}[/]")
525
+ Path(location).mkdir(parents=True)
526
+ else:
527
+ rich.print(" [red]⟶ ERROR: The configuration data location doesn't exist![/]")
528
+ else:
529
+ rich.print()
512
530
  except ValueError as exc:
513
531
  rich.print(f" get_conf_data_location() = [red]{exc}[/]")
514
532
 
515
533
  try:
516
- rich.print(f" {get_log_file_location() = }", flush=True)
534
+ rich.print(f" {get_log_file_location() = }", flush=True, end="")
517
535
  location = get_log_file_location()
518
536
  if not Path(location).exists():
519
- rich.print("[red]ERROR: The generated log files location doesn't exist![/]")
537
+ if args.mkdir:
538
+ rich.print(f" [green]⟶ Creating log files location: {location}[/]")
539
+ Path(location).mkdir(parents=True)
540
+ else:
541
+ rich.print(" [red]⟶ ERROR: The log files location doesn't exist![/]")
542
+ else:
543
+ rich.print()
520
544
  except ValueError as exc:
521
545
  rich.print(f" get_log_file_location() = [red]{exc}[/]")
522
546
 
523
547
  try:
524
- rich.print(f" {get_local_settings() = }", flush=True)
548
+ rich.print(f" {get_local_settings() = }", flush=True, end="")
525
549
  location = get_local_settings()
526
550
  if location is None or not Path(location).exists():
527
- rich.print("[red]ERROR: The local settings file doesn't exist![/]")
551
+ rich.print(" [red]ERROR: The local settings file is not defined or doesn't exist![/]")
552
+ else:
553
+ rich.print()
528
554
  except ValueError as exc:
529
555
  rich.print(f" get_local_settings() = [red]{exc}[/]")
530
556
 
File without changes