pypeline-runner 1.19.0__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.
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/PKG-INFO +4 -2
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/pyproject.toml +1 -1
- pypeline_runner-1.20.0/src/pypeline/__init__.py +1 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/kickstart/templates/project/pypeline.yaml +1 -1
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/kickstart/templates/project/pyproject.toml +1 -1
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/steps/create_venv.py +24 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/steps/env_setup_script.py +2 -0
- pypeline_runner-1.19.0/src/pypeline/__init__.py +0 -1
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/LICENSE +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/README.md +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/__run.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/bootstrap/__init__.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/bootstrap/run.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/domain/__init__.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/domain/artifacts.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/domain/config.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/domain/execution_context.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/domain/pipeline.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/domain/project_slurper.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/inputs_parser.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/kickstart/__init__.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/kickstart/create.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/kickstart/templates/project/.gitignore +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/kickstart/templates/project/pypeline.ps1 +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/kickstart/templates/project/steps/my_step.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/kickstart/templates/project/west.yaml +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/main.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/py.typed +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/pypeline.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/steps/__init__.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/steps/scoop_install.py +0 -0
- {pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/steps/west_install.py +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pypeline-runner
|
|
3
|
-
Version: 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)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.20.0"
|
|
@@ -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
|
|
@@ -34,6 +34,8 @@ class GenerateEnvSetupScript(PipelineStep[ExecutionContext]):
|
|
|
34
34
|
|
|
35
35
|
# Merge execution context environment variables
|
|
36
36
|
env_vars.update(self.execution_context.env_vars)
|
|
37
|
+
# Update the execution context with the merged environment variables to ensure they are available for subsequent steps
|
|
38
|
+
self.execution_context.env_vars.update(env_vars)
|
|
37
39
|
|
|
38
40
|
# Generate the environment setup scripts
|
|
39
41
|
BatEnvSetupScriptGenerator(
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.19.0"
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pypeline_runner-1.19.0 → pypeline_runner-1.20.0}/src/pypeline/kickstart/templates/project/west.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|