pypeline-runner 1.5.0__tar.gz → 1.6.0__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 (30) hide show
  1. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/PKG-INFO +1 -1
  2. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/pyproject.toml +1 -1
  3. pypeline_runner-1.6.0/src/pypeline/__init__.py +1 -0
  4. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/pypeline.py +5 -5
  5. pypeline_runner-1.5.0/src/pypeline/__init__.py +0 -1
  6. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/LICENSE +0 -0
  7. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/README.md +0 -0
  8. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/__run.py +0 -0
  9. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/domain/__init__.py +0 -0
  10. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/domain/artifacts.py +0 -0
  11. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/domain/config.py +0 -0
  12. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/domain/execution_context.py +0 -0
  13. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/domain/pipeline.py +0 -0
  14. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/domain/project_slurper.py +0 -0
  15. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/kickstart/__init__.py +0 -0
  16. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/kickstart/create.py +0 -0
  17. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/kickstart/templates/project/.gitignore +0 -0
  18. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/kickstart/templates/project/bootstrap.ps1 +0 -0
  19. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/kickstart/templates/project/poetry.toml +0 -0
  20. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/kickstart/templates/project/pypeline.ps1 +0 -0
  21. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/kickstart/templates/project/pypeline.yaml +0 -0
  22. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/kickstart/templates/project/pyproject.toml +0 -0
  23. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/kickstart/templates/project/scoopfile.json +0 -0
  24. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/kickstart/templates/project/steps/my_step.py +0 -0
  25. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/main.py +0 -0
  26. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/py.typed +0 -0
  27. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/steps/__init__.py +0 -0
  28. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/steps/create_venv.py +0 -0
  29. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/steps/scoop_install.py +0 -0
  30. {pypeline_runner-1.5.0 → pypeline_runner-1.6.0}/src/pypeline/steps/west_install.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pypeline-runner
3
- Version: 1.5.0
3
+ Version: 1.6.0
4
4
  Summary: Configure and execute pipelines with Python (similar to GitHub workflows or Jenkins pipelines).
5
5
  License: MIT
6
6
  Author: cuinixam
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pypeline-runner"
3
- version = "1.5.0"
3
+ version = "1.6.0"
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__ = "1.6.0"
@@ -57,14 +57,14 @@ class PipelineLoader(Generic[TExecutionContext]):
57
57
  run_command = step_config.run.split(" ") if isinstance(step_config.run, str) else step_config.run
58
58
  step_class = PipelineLoader._create_run_command_step_class(run_command, step_class_name)
59
59
  else:
60
- raise UserNotificationException(f"Step '{step_class_name}' has no 'module' nor 'file' nor `run` defined." " Please check your pipeline configuration.")
60
+ raise UserNotificationException(f"Step '{step_class_name}' has no 'module' nor 'file' nor `run` defined. Please check your pipeline configuration.")
61
61
  result.append(PipelineStepReference[TExecutionContext](group_name, cast(Type[PipelineStep[TExecutionContext]], step_class), step_config.config))
62
62
  return result
63
63
 
64
64
  @staticmethod
65
65
  def _load_user_step(python_file: Path, step_class_name: str) -> Type[PipelineStep[ExecutionContext]]:
66
66
  # Create a module specification from the file path
67
- spec = spec_from_file_location(f"user__{step_class_name}", python_file)
67
+ spec = spec_from_file_location(f"user__{python_file.stem}", python_file)
68
68
  if spec and spec.loader:
69
69
  step_module = module_from_spec(spec)
70
70
  # Import the module
@@ -72,9 +72,9 @@ class PipelineLoader(Generic[TExecutionContext]):
72
72
  try:
73
73
  step_class = getattr(step_module, step_class_name)
74
74
  except AttributeError:
75
- raise UserNotificationException(f"Could not load class '{step_class_name}' from file '{python_file}'." " Please check your pipeline configuration.") from None
75
+ raise UserNotificationException(f"Could not load class '{step_class_name}' from file '{python_file}'. Please check your pipeline configuration.") from None
76
76
  return step_class
77
- raise UserNotificationException(f"Could not load file '{python_file}'." " Please check the file for any errors.")
77
+ raise UserNotificationException(f"Could not load file '{python_file}'. Please check the file for any errors.")
78
78
 
79
79
  @staticmethod
80
80
  def _load_module_step(module_name: str, step_class_name: str) -> Type[PipelineStep[ExecutionContext]]:
@@ -84,7 +84,7 @@ class PipelineLoader(Generic[TExecutionContext]):
84
84
  except ImportError:
85
85
  raise UserNotificationException(f"Could not load module '{module_name}'. Please check your pipeline configuration.") from None
86
86
  except AttributeError:
87
- raise UserNotificationException(f"Could not load class '{step_class_name}' from module '{module_name}'." " Please check your pipeline configuration.") from None
87
+ raise UserNotificationException(f"Could not load class '{step_class_name}' from module '{module_name}'. Please check your pipeline configuration.") from None
88
88
  return step_class
89
89
 
90
90
  @staticmethod
@@ -1 +0,0 @@
1
- __version__ = "1.5.0"
File without changes