pypeline-runner 0.2.0__py3-none-any.whl → 0.2.1__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 +1 -1
- pypeline/domain/config.py +6 -3
- pypeline/main.py +4 -11
- {pypeline_runner-0.2.0.dist-info → pypeline_runner-0.2.1.dist-info}/METADATA +1 -1
- {pypeline_runner-0.2.0.dist-info → pypeline_runner-0.2.1.dist-info}/RECORD +8 -8
- {pypeline_runner-0.2.0.dist-info → pypeline_runner-0.2.1.dist-info}/LICENSE +0 -0
- {pypeline_runner-0.2.0.dist-info → pypeline_runner-0.2.1.dist-info}/WHEEL +0 -0
- {pypeline_runner-0.2.0.dist-info → pypeline_runner-0.2.1.dist-info}/entry_points.txt +0 -0
pypeline/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.2.
|
|
1
|
+
__version__ = "0.2.1"
|
pypeline/domain/config.py
CHANGED
|
@@ -20,7 +20,10 @@ class ProjectConfig(DataClassDictMixin):
|
|
|
20
20
|
@classmethod
|
|
21
21
|
def from_file(cls, config_file: Path) -> "ProjectConfig":
|
|
22
22
|
config_dict = cls.parse_to_dict(config_file)
|
|
23
|
-
|
|
23
|
+
try:
|
|
24
|
+
return cls.from_dict(config_dict)
|
|
25
|
+
except Exception as e:
|
|
26
|
+
raise UserNotificationException(f"Invalid configuration file '{config_file}'. \nError: {e}") from None
|
|
24
27
|
|
|
25
28
|
@staticmethod
|
|
26
29
|
def parse_to_dict(config_file: Path) -> Dict[str, Any]:
|
|
@@ -31,6 +34,6 @@ class ProjectConfig(DataClassDictMixin):
|
|
|
31
34
|
config_dict["file"] = config_file
|
|
32
35
|
return config_dict
|
|
33
36
|
except ScannerError as e:
|
|
34
|
-
raise UserNotificationException(f"Failed scanning configuration file '{config_file}'. \nError: {e}") from
|
|
37
|
+
raise UserNotificationException(f"Failed scanning configuration file '{config_file}'. \nError: {e}") from None
|
|
35
38
|
except ParserError as e:
|
|
36
|
-
raise UserNotificationException(f"Failed parsing configuration file '{config_file}'. \nError: {e}") from
|
|
39
|
+
raise UserNotificationException(f"Failed parsing configuration file '{config_file}'. \nError: {e}") from None
|
pypeline/main.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
from pathlib import Path
|
|
3
|
-
from typing import
|
|
3
|
+
from typing import Optional
|
|
4
4
|
|
|
5
5
|
import typer
|
|
6
6
|
from py_app_dev.core.exceptions import UserNotificationException
|
|
@@ -86,17 +86,10 @@ def run(
|
|
|
86
86
|
PipelineStepsExecutor(project_slurper.artifacts_locator, steps_references, force_run, dry_run).run()
|
|
87
87
|
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
if __name__ == "__main__":
|
|
90
90
|
try:
|
|
91
91
|
setup_logger()
|
|
92
|
-
|
|
93
|
-
args = sys.argv[1:]
|
|
94
|
-
app(args)
|
|
95
|
-
return 0
|
|
92
|
+
app()
|
|
96
93
|
except UserNotificationException as e:
|
|
97
94
|
logger.error(f"{e}")
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
if __name__ == "__main__":
|
|
102
|
-
sys.exit(main())
|
|
95
|
+
sys.exit(1)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
pypeline/__init__.py,sha256=
|
|
1
|
+
pypeline/__init__.py,sha256=HfjVOrpTnmZ-xVFCYSVmX50EXaBQeJteUHG-PD6iQs8,22
|
|
2
2
|
pypeline/__run.py,sha256=TCdaX05Qm3g8T4QYryKB25Xxf0L5Km7hFOHe1mK9vI0,350
|
|
3
3
|
pypeline/domain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
pypeline/domain/artifacts.py,sha256=qXshnk9umi0AVGV4m5iEiy_MQ5Ad2LDZwI8OULU-qMk,1355
|
|
5
|
-
pypeline/domain/config.py,sha256=
|
|
5
|
+
pypeline/domain/config.py,sha256=e2DdbC6Gv4qJzjYaNnX90f2V-uYSHC5F6bViBTe80RE,1663
|
|
6
6
|
pypeline/domain/execution_context.py,sha256=0zc3OgXeIMDpgWWYMaDGub7fY5urLLR79yuCaXVxoTQ,1101
|
|
7
7
|
pypeline/domain/pipeline.py,sha256=gN2PUdBEYl1D534_XZ-bLwdhBlDr48SR_A8mdJ3ZzJg,980
|
|
8
8
|
pypeline/domain/project_slurper.py,sha256=YCho7V1BHjFmC_foxHFaWX8c_VbMJ16XEB4CQBlMrhc,894
|
|
@@ -17,15 +17,15 @@ pypeline/kickstart/templates/project/pypeline.yaml,sha256=i9YSqpS2o-_Bzl69fvdOFV
|
|
|
17
17
|
pypeline/kickstart/templates/project/pyproject.toml,sha256=yc6RCo-bUo1PXF91XfM-dButgfxU16Uud34NidgJ0zQ,225
|
|
18
18
|
pypeline/kickstart/templates/project/scoopfile.json,sha256=DcfZ8jYf9hmPHM-AWwnPKQJCzRG3fCuYtMeoY01nkag,219
|
|
19
19
|
pypeline/kickstart/templates/project/steps/my_step.py,sha256=YNRdb7ofqo3PxMQe8Vhtf7K9eZclv-6J0IwMrd3E70w,651
|
|
20
|
-
pypeline/main.py,sha256=
|
|
20
|
+
pypeline/main.py,sha256=JLY75JHoQ1Q8F-Yyw6_s41n1CFjKh0971tDiI3drUUY,3227
|
|
21
21
|
pypeline/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
pypeline/pypeline.py,sha256=3coRh9KGwR--yDK88ltXisE2nAR8BNUMQ21YHDjoKPY,4359
|
|
23
23
|
pypeline/steps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
24
|
pypeline/steps/create_venv.py,sha256=od1zLVPhNdN-sWqEqYMkX19c5IEt4lIIOcASBeoqUUw,1954
|
|
25
25
|
pypeline/steps/scoop_install.py,sha256=MmoC4Yy1lOhHrfKBrgJKHMcRUNPbRztzUbSgIlazer8,3356
|
|
26
26
|
pypeline/steps/west_install.py,sha256=J1p-62owTDOY6bVTGCr5d9YFOL8DeRUPTnq0TbiaWlA,1930
|
|
27
|
-
pypeline_runner-0.2.
|
|
28
|
-
pypeline_runner-0.2.
|
|
29
|
-
pypeline_runner-0.2.
|
|
30
|
-
pypeline_runner-0.2.
|
|
31
|
-
pypeline_runner-0.2.
|
|
27
|
+
pypeline_runner-0.2.1.dist-info/LICENSE,sha256=sKxdoqSmW9ezvPvt0ZGJbneyA0SBcm0GiqzTv2jN230,1066
|
|
28
|
+
pypeline_runner-0.2.1.dist-info/METADATA,sha256=-x52h84lUMHd33QQxo7RzR5A-fy7OihSdmqpFzrwGds,7168
|
|
29
|
+
pypeline_runner-0.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
30
|
+
pypeline_runner-0.2.1.dist-info/entry_points.txt,sha256=pe1u0uuhPI_yeQ0KjEw6jK-EvQfPcZwBSajgbAdKz1o,47
|
|
31
|
+
pypeline_runner-0.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|