pypeline-runner 1.16.0__tar.gz → 1.17.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.16.0 → pypeline_runner-1.17.0}/PKG-INFO +1 -1
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/pyproject.toml +1 -1
- pypeline_runner-1.17.0/src/pypeline/__init__.py +1 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/steps/create_venv.py +22 -5
- pypeline_runner-1.16.0/src/pypeline/__init__.py +0 -1
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/LICENSE +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/README.md +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/__run.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/bootstrap/__init__.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/bootstrap/run.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/domain/__init__.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/domain/artifacts.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/domain/config.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/domain/execution_context.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/domain/pipeline.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/domain/project_slurper.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/inputs_parser.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/kickstart/__init__.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/kickstart/create.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/kickstart/templates/project/.gitignore +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/kickstart/templates/project/pypeline.ps1 +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/kickstart/templates/project/pypeline.yaml +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/kickstart/templates/project/pyproject.toml +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/kickstart/templates/project/steps/my_step.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/kickstart/templates/project/west.yaml +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/main.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/py.typed +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/pypeline.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/steps/__init__.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/steps/env_setup_script.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/steps/scoop_install.py +0 -0
- {pypeline_runner-1.16.0 → pypeline_runner-1.17.0}/src/pypeline/steps/west_install.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.17.0"
|
|
@@ -8,6 +8,7 @@ from mashumaro import DataClassDictMixin
|
|
|
8
8
|
from py_app_dev.core.exceptions import UserNotificationException
|
|
9
9
|
from py_app_dev.core.logging import logger
|
|
10
10
|
|
|
11
|
+
from pypeline import __version__
|
|
11
12
|
from pypeline.bootstrap.run import get_bootstrap_script
|
|
12
13
|
|
|
13
14
|
from ..domain.execution_context import ExecutionContext
|
|
@@ -40,7 +41,7 @@ class CreateVEnv(PipelineStep[ExecutionContext]):
|
|
|
40
41
|
self.bootstrap_script_type = BootstrapScriptType.CUSTOM if self.user_config.bootstrap_script else BootstrapScriptType.INTERNAL
|
|
41
42
|
super().__init__(execution_context, group_name, config)
|
|
42
43
|
self.logger = logger.bind()
|
|
43
|
-
self.
|
|
44
|
+
self.internal_bootstrap_script = get_bootstrap_script()
|
|
44
45
|
self.package_manager = self.user_config.package_manager if self.user_config.package_manager else self.DEFAULT_PACKAGE_MANAGER
|
|
45
46
|
self.python_executable = self.user_config.python_executable if self.user_config.python_executable else self.DEFAULT_PYTHON_EXECUTABLE
|
|
46
47
|
self.venv_dir = self.project_root_dir / ".venv"
|
|
@@ -61,6 +62,10 @@ class CreateVEnv(PipelineStep[ExecutionContext]):
|
|
|
61
62
|
else:
|
|
62
63
|
raise UserNotificationException(f"Could not extract the package manager name from {self.package_manager}")
|
|
63
64
|
|
|
65
|
+
@property
|
|
66
|
+
def target_internal_bootstrap_script(self) -> Path:
|
|
67
|
+
return self.project_root_dir.joinpath(".bootstrap/bootstrap.py")
|
|
68
|
+
|
|
64
69
|
def get_name(self) -> str:
|
|
65
70
|
return self.__class__.__name__
|
|
66
71
|
|
|
@@ -83,22 +88,34 @@ class CreateVEnv(PipelineStep[ExecutionContext]):
|
|
|
83
88
|
"--package-manager",
|
|
84
89
|
f'"{self.package_manager}"',
|
|
85
90
|
]
|
|
91
|
+
|
|
92
|
+
# Copy the internal bootstrap script to the project root .bootstrap/bootstrap.py
|
|
93
|
+
self.target_internal_bootstrap_script.parent.mkdir(exist_ok=True)
|
|
94
|
+
if not self.target_internal_bootstrap_script.exists() or self.target_internal_bootstrap_script.read_text() != self.internal_bootstrap_script.read_text():
|
|
95
|
+
self.target_internal_bootstrap_script.write_text(self.internal_bootstrap_script.read_text())
|
|
96
|
+
self.logger.warning(f"Updated bootstrap script at {self.target_internal_bootstrap_script}")
|
|
97
|
+
|
|
98
|
+
# Run the copied bootstrap script
|
|
86
99
|
self.execution_context.create_process_executor(
|
|
87
|
-
[self.python_executable, self.
|
|
100
|
+
[self.python_executable, self.target_internal_bootstrap_script.as_posix(), *bootstrap_args],
|
|
88
101
|
cwd=self.project_root_dir,
|
|
89
102
|
).execute()
|
|
103
|
+
|
|
90
104
|
return 0
|
|
91
105
|
|
|
92
106
|
def get_inputs(self) -> List[Path]:
|
|
93
107
|
package_manager_relevant_file = self.SUPPORTED_PACKAGE_MANAGERS.get(self.package_manager_name, [])
|
|
94
|
-
return [self.project_root_dir / file for file in package_manager_relevant_file]
|
|
108
|
+
return [self.project_root_dir / file for file in package_manager_relevant_file]
|
|
95
109
|
|
|
96
110
|
def get_outputs(self) -> List[Path]:
|
|
97
|
-
|
|
111
|
+
outputs = [self.venv_dir]
|
|
112
|
+
if self.bootstrap_script_type == BootstrapScriptType.INTERNAL:
|
|
113
|
+
outputs.append(self.target_internal_bootstrap_script)
|
|
114
|
+
return outputs
|
|
98
115
|
|
|
99
116
|
def get_config(self) -> Optional[dict[str, str]]:
|
|
100
117
|
return {
|
|
101
|
-
"
|
|
118
|
+
"version": __version__,
|
|
102
119
|
"python_executable": self.python_executable,
|
|
103
120
|
"package_manager": self.package_manager,
|
|
104
121
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.16.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
|
|
File without changes
|
|
File without changes
|
{pypeline_runner-1.16.0 → pypeline_runner-1.17.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
|
|
File without changes
|