pypeline-runner 0.2.0__tar.gz → 0.2.2__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 (31) hide show
  1. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/PKG-INFO +1 -1
  2. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/pyproject.toml +1 -1
  3. pypeline_runner-0.2.2/src/pypeline/__init__.py +1 -0
  4. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/domain/config.py +6 -3
  5. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/main.py +5 -8
  6. pypeline_runner-0.2.0/src/pypeline/__init__.py +0 -1
  7. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/LICENSE +0 -0
  8. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/README.md +0 -0
  9. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/__run.py +0 -0
  10. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/domain/__init__.py +0 -0
  11. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/domain/artifacts.py +0 -0
  12. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/domain/execution_context.py +0 -0
  13. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/domain/pipeline.py +0 -0
  14. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/domain/project_slurper.py +0 -0
  15. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/kickstart/__init__.py +0 -0
  16. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/kickstart/create.py +0 -0
  17. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/kickstart/templates/bootstrap/bootstrap.ps1 +0 -0
  18. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/kickstart/templates/bootstrap/bootstrap.py +0 -0
  19. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/kickstart/templates/project/.gitignore +0 -0
  20. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/kickstart/templates/project/poetry.toml +0 -0
  21. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/kickstart/templates/project/pypeline.ps1 +0 -0
  22. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/kickstart/templates/project/pypeline.yaml +0 -0
  23. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/kickstart/templates/project/pyproject.toml +0 -0
  24. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/kickstart/templates/project/scoopfile.json +0 -0
  25. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/kickstart/templates/project/steps/my_step.py +0 -0
  26. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/py.typed +0 -0
  27. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/pypeline.py +0 -0
  28. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/steps/__init__.py +0 -0
  29. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/steps/create_venv.py +0 -0
  30. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/steps/scoop_install.py +0 -0
  31. {pypeline_runner-0.2.0 → pypeline_runner-0.2.2}/src/pypeline/steps/west_install.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pypeline-runner
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Configure and execute pipelines with Python (similar to GitHub workflows or Jenkins pipelines).
5
5
  Home-page: https://github.com/cuinixam/pypeline
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pypeline-runner"
3
- version = "0.2.0"
3
+ version = "0.2.2"
4
4
  description = "Configure and execute pipelines with Python (similar to GitHub workflows or Jenkins pipelines)."
5
5
  authors = ["cuinixam <me@cuinixam.com>"]
6
6
  license = "MIT"
@@ -0,0 +1 @@
1
+ __version__ = "0.2.2"
@@ -20,7 +20,10 @@ class ProjectConfig(DataClassDictMixin):
20
20
  @classmethod
21
21
  def from_file(cls, config_file: Path) -> "ProjectConfig":
22
22
  config_dict = cls.parse_to_dict(config_file)
23
- return cls.from_dict(config_dict)
23
+ try:
24
+ return cls.from_dict(config_dict)
25
+ except Exception as e:
26
+ raise UserNotificationException(f"Invalid configuration file '{config_file}'. \nError: {e}") from None
24
27
 
25
28
  @staticmethod
26
29
  def parse_to_dict(config_file: Path) -> Dict[str, Any]:
@@ -31,6 +34,6 @@ class ProjectConfig(DataClassDictMixin):
31
34
  config_dict["file"] = config_file
32
35
  return config_dict
33
36
  except ScannerError as e:
34
- raise UserNotificationException(f"Failed scanning configuration file '{config_file}'. \nError: {e}") from e
37
+ raise UserNotificationException(f"Failed scanning configuration file '{config_file}'. \nError: {e}") from None
35
38
  except ParserError as e:
36
- raise UserNotificationException(f"Failed parsing configuration file '{config_file}'. \nError: {e}") from e
39
+ raise UserNotificationException(f"Failed parsing configuration file '{config_file}'. \nError: {e}") from None
@@ -1,6 +1,6 @@
1
1
  import sys
2
2
  from pathlib import Path
3
- from typing import List, Optional
3
+ from typing import Optional
4
4
 
5
5
  import typer
6
6
  from py_app_dev.core.exceptions import UserNotificationException
@@ -86,17 +86,14 @@ def run(
86
86
  PipelineStepsExecutor(project_slurper.artifacts_locator, steps_references, force_run, dry_run).run()
87
87
 
88
88
 
89
- def main(args: Optional[List[str]] = None) -> int:
89
+ def main() -> None:
90
90
  try:
91
91
  setup_logger()
92
- if args is None:
93
- args = sys.argv[1:]
94
- app(args)
95
- return 0
92
+ app()
96
93
  except UserNotificationException as e:
97
94
  logger.error(f"{e}")
98
- return 1
95
+ sys.exit(1)
99
96
 
100
97
 
101
98
  if __name__ == "__main__":
102
- sys.exit(main())
99
+ main()
@@ -1 +0,0 @@
1
- __version__ = "0.2.0"
File without changes