pypeline-runner 1.19.1__tar.gz → 1.20.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 (32) hide show
  1. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/PKG-INFO +4 -2
  2. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/pyproject.toml +1 -1
  3. pypeline_runner-1.20.0/src/pypeline/__init__.py +1 -0
  4. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/kickstart/templates/project/pypeline.yaml +1 -1
  5. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/kickstart/templates/project/pyproject.toml +1 -1
  6. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/steps/create_venv.py +24 -0
  7. pypeline_runner-1.19.1/src/pypeline/__init__.py +0 -1
  8. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/LICENSE +0 -0
  9. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/README.md +0 -0
  10. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/__run.py +0 -0
  11. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/bootstrap/__init__.py +0 -0
  12. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/bootstrap/run.py +0 -0
  13. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/domain/__init__.py +0 -0
  14. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/domain/artifacts.py +0 -0
  15. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/domain/config.py +0 -0
  16. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/domain/execution_context.py +0 -0
  17. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/domain/pipeline.py +0 -0
  18. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/domain/project_slurper.py +0 -0
  19. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/inputs_parser.py +0 -0
  20. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/kickstart/__init__.py +0 -0
  21. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/kickstart/create.py +0 -0
  22. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/kickstart/templates/project/.gitignore +0 -0
  23. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/kickstart/templates/project/pypeline.ps1 +0 -0
  24. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/kickstart/templates/project/steps/my_step.py +0 -0
  25. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/kickstart/templates/project/west.yaml +0 -0
  26. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/main.py +0 -0
  27. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/py.typed +0 -0
  28. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/pypeline.py +0 -0
  29. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/steps/__init__.py +0 -0
  30. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/steps/env_setup_script.py +0 -0
  31. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/steps/scoop_install.py +0 -0
  32. {pypeline_runner-1.19.1 → pypeline_runner-1.20.0}/src/pypeline/steps/west_install.py +0 -0
@@ -1,8 +1,9 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: pypeline-runner
3
- Version: 1.19.1
3
+ Version: 1.20.0
4
4
  Summary: Configure and execute pipelines with Python (similar to GitHub workflows or Jenkins pipelines).
5
5
  License: MIT
6
+ License-File: LICENSE
6
7
  Author: cuinixam
7
8
  Author-email: me@cuinixam.com
8
9
  Requires-Python: >=3.10,<4.0
@@ -16,6 +17,7 @@ Classifier: Programming Language :: Python :: 3.10
16
17
  Classifier: Programming Language :: Python :: 3.11
17
18
  Classifier: Programming Language :: Python :: 3.12
18
19
  Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
19
21
  Classifier: Topic :: Software Development :: Libraries
20
22
  Requires-Dist: py-app-dev (>=2.10,<3.0)
21
23
  Requires-Dist: pyyaml (>=6.0,<7.0)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pypeline-runner"
3
- version = "1.19.1"
3
+ version = "1.20.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.20.0"
@@ -8,7 +8,7 @@ pipeline:
8
8
  - step: CreateVEnv
9
9
  module: pypeline.steps.create_venv
10
10
  config:
11
- package_manager: uv>=0.6
11
+ package_manager: uv>=0.9
12
12
  python_executable: python3
13
13
  - step: WestInstall
14
14
  module: pypeline.steps.west_install
@@ -9,5 +9,5 @@ requires-python = "<4.0,>=3.10"
9
9
  dependencies = [
10
10
  "pypeline-runner>=1,<2",
11
11
  "west>=1,<2",
12
- "wrapt>=1,<2",
12
+ "wrapt>=2,<3",
13
13
  ]
@@ -1,11 +1,15 @@
1
+ import io
2
+ import json
1
3
  import re
2
4
  import sys
5
+ import traceback
3
6
  from dataclasses import dataclass
4
7
  from enum import Enum, auto
5
8
  from pathlib import Path
6
9
  from typing import Any, ClassVar, Dict, List, Optional
7
10
 
8
11
  from mashumaro import DataClassDictMixin
12
+ from mashumaro.mixins.json import DataClassJSONMixin
9
13
  from py_app_dev.core.exceptions import UserNotificationException
10
14
  from py_app_dev.core.logging import logger
11
15
 
@@ -28,6 +32,21 @@ class BootstrapScriptType(Enum):
28
32
  INTERNAL = auto()
29
33
 
30
34
 
35
+ @dataclass
36
+ class CreateVEnvDeps(DataClassJSONMixin):
37
+ outputs: List[Path]
38
+
39
+ @classmethod
40
+ def from_json_file(cls, file_path: Path) -> "CreateVEnvDeps":
41
+ try:
42
+ result = cls.from_dict(json.loads(file_path.read_text()))
43
+ except Exception as e:
44
+ output = io.StringIO()
45
+ traceback.print_exc(file=output)
46
+ raise UserNotificationException(output.getvalue()) from e
47
+ return result
48
+
49
+
31
50
  class CreateVEnv(PipelineStep[ExecutionContext]):
32
51
  DEFAULT_PACKAGE_MANAGER = "uv>=0.6"
33
52
  DEFAULT_PYTHON_EXECUTABLE = "python311"
@@ -49,6 +68,11 @@ class CreateVEnv(PipelineStep[ExecutionContext]):
49
68
 
50
69
  @property
51
70
  def install_dirs(self) -> List[Path]:
71
+ deps_file = self.project_root_dir / ".venv" / "create-virtual-environment.deps.json"
72
+ if deps_file.exists():
73
+ deps = CreateVEnvDeps.from_json_file(deps_file)
74
+ if deps.outputs:
75
+ return deps.outputs
52
76
  return [self.project_root_dir / dir for dir in [".venv/Scripts", ".venv/bin"] if (self.project_root_dir / dir).exists()]
53
77
 
54
78
  @property
@@ -1 +0,0 @@
1
- __version__ = "1.19.1"