pypeline-runner 1.19.0__py3-none-any.whl → 1.20.0__py3-none-any.whl

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/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.19.0"
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
@@ -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,8 +1,9 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: pypeline-runner
3
- Version: 1.19.0
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,4 +1,4 @@
1
- pypeline/__init__.py,sha256=RI6iseDSL_qMxFcIV0RKnzR3fZIvguxQK4eA_v0LVwc,23
1
+ pypeline/__init__.py,sha256=Hww1duZrC8kYK7ThBSQVyz0HNOb0ys_o8Pln-wVQ1hI,23
2
2
  pypeline/__run.py,sha256=TCdaX05Qm3g8T4QYryKB25Xxf0L5Km7hFOHe1mK9vI0,350
3
3
  pypeline/bootstrap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  pypeline/bootstrap/run.py,sha256=pi9Kyordk4-Hwz8BsLpOTNu-hJV4imPgOrjPSr9_qRA,16446
@@ -13,20 +13,20 @@ pypeline/kickstart/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
13
13
  pypeline/kickstart/create.py,sha256=iaB8MMC7PinpPBwRmz3rWZuE-DRbsLh2NtvczYaVgi0,2133
14
14
  pypeline/kickstart/templates/project/.gitignore,sha256=y8GJoVvRPez1LBokf1NaDOt2X1XtGwKFMF5yjA8AVS0,24
15
15
  pypeline/kickstart/templates/project/pypeline.ps1,sha256=PjCJULG8XA3AHKbNt3oHrIgD04huvvpIue_gjSo3PMA,104
16
- pypeline/kickstart/templates/project/pypeline.yaml,sha256=ZyhMs0o7NRwiOHagePsyC2Sk8Eotzun7QXeyBCrcUdQ,401
17
- pypeline/kickstart/templates/project/pyproject.toml,sha256=nlsHIbt1XG7sCRwb4W5ePGgxsMm1e_hNACF2LtZ5yAw,271
16
+ pypeline/kickstart/templates/project/pypeline.yaml,sha256=KKqRqxH7emAuZI1FBC-ITL8glVi2tKux61WAnbY6Ks0,401
17
+ pypeline/kickstart/templates/project/pyproject.toml,sha256=7hAoK6BammBxxoolMdCkNx7qPSFFiFUkQN8oAbCf7Yk,271
18
18
  pypeline/kickstart/templates/project/steps/my_step.py,sha256=b-JEwF9EyF4G6lgvkk3I2aT2wpD_zQ2fTiQrR6lWhs4,788
19
19
  pypeline/kickstart/templates/project/west.yaml,sha256=ZfVym7M4yzzC-Nm0vESdhqNYs6EaJuMQWGJBht_i0b4,188
20
20
  pypeline/main.py,sha256=2mC2BDB1OWIXhaijBXG6Y1vfT8_yMZ4Dj55w5u7g7-w,4158
21
21
  pypeline/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  pypeline/pypeline.py,sha256=mDKUnTuMDw8l-kSDJCHRNbn6zrxAfXhAIAqc5HyHd5M,8758
23
23
  pypeline/steps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
- pypeline/steps/create_venv.py,sha256=ioL59vC1GbEk_EpUFMRRkWXk8W7z7QCEV-zgcho_lSg,6292
25
- pypeline/steps/env_setup_script.py,sha256=u08A6pvMccFQbcnU0xruFvpU30PbDrttnbOjl1gDqog,2340
24
+ pypeline/steps/create_venv.py,sha256=QAERJItdeHU0gEW4bOEd2P5eBOMttgx8X4CvRV1-CUk,7106
25
+ pypeline/steps/env_setup_script.py,sha256=DRDCNMUDiW2rzkgEs0FhQfA_-WjPzPLb_e9dGc-mjLg,2526
26
26
  pypeline/steps/scoop_install.py,sha256=DDXBD-5TVaT-u6Yf7A85uWoCgBVmLvj9nPGrZ8OQCz0,3853
27
27
  pypeline/steps/west_install.py,sha256=hPyr28ksdKsQ0tv0gMNytzupgk1IgjN9CpmaBdX5zps,1947
28
- pypeline_runner-1.19.0.dist-info/LICENSE,sha256=sKxdoqSmW9ezvPvt0ZGJbneyA0SBcm0GiqzTv2jN230,1066
29
- pypeline_runner-1.19.0.dist-info/METADATA,sha256=xM_xPlG5nNTZXIqKWSpZAkdKM6gnIpj_UDpt7ICH1w8,7586
30
- pypeline_runner-1.19.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
31
- pypeline_runner-1.19.0.dist-info/entry_points.txt,sha256=pe1u0uuhPI_yeQ0KjEw6jK-EvQfPcZwBSajgbAdKz1o,47
32
- pypeline_runner-1.19.0.dist-info/RECORD,,
28
+ pypeline_runner-1.20.0.dist-info/METADATA,sha256=WdF9WMRoPZiQ-pBb10GsVB0u41tT7OdXqp1spKTRezc,7659
29
+ pypeline_runner-1.20.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
30
+ pypeline_runner-1.20.0.dist-info/entry_points.txt,sha256=pe1u0uuhPI_yeQ0KjEw6jK-EvQfPcZwBSajgbAdKz1o,47
31
+ pypeline_runner-1.20.0.dist-info/licenses/LICENSE,sha256=sKxdoqSmW9ezvPvt0ZGJbneyA0SBcm0GiqzTv2jN230,1066
32
+ pypeline_runner-1.20.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.3
2
+ Generator: poetry-core 2.2.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any