gitlab-cicd-python-wrapper 0.0.2__tar.gz → 0.0.3__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.
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/PKG-INFO +2 -2
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/pipeline.py +5 -4
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/pyproject.toml +2 -2
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/README.md +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/__init__.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/_async.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/artifacts.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/cache.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/cli.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/common.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/component.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/environment.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/globals.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/image.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/include.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/job.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/needs.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/pages.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/py.typed +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/release.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/retry.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/rules.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/secrets.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/serialization.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/spec.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/trigger.py +0 -0
- {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.3}/gitlab_cicd_python_wrapper/variables.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gitlab-cicd-python-wrapper
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: Pydantic models wrapping GitLab CI/CD YAML with 1:1 mapping
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Szymon Richert
|
|
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.14
|
|
15
15
|
Requires-Dist: aiofiles (>=24.0,<25.0)
|
|
16
16
|
Requires-Dist: pydantic (>=2.0,<3.0)
|
|
17
|
-
Requires-Dist: ruamel.yaml (>=0.18,<0.
|
|
17
|
+
Requires-Dist: ruamel.yaml (>=0.18,<0.20)
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
|
|
20
20
|
# Gitlab CICD Python Wrapper
|
|
@@ -70,16 +70,17 @@ class Pipeline(BaseModel):
|
|
|
70
70
|
raw["stages"] = self.stages
|
|
71
71
|
if self.variables:
|
|
72
72
|
raw["variables"] = {
|
|
73
|
-
k: v if isinstance(v, str) else v.model_dump(exclude_none=True)
|
|
73
|
+
k: v if isinstance(v, str) else v.model_dump(mode="json", exclude_none=True)
|
|
74
|
+
for k, v in self.variables.items()
|
|
74
75
|
}
|
|
75
76
|
if self.default:
|
|
76
|
-
raw["default"] = self.default.model_dump(exclude_none=True, by_alias=True)
|
|
77
|
+
raw["default"] = self.default.model_dump(mode="json", exclude_none=True, by_alias=True)
|
|
77
78
|
if self.workflow:
|
|
78
|
-
raw["workflow"] = self.workflow.model_dump(exclude_none=True, by_alias=True)
|
|
79
|
+
raw["workflow"] = self.workflow.model_dump(mode="json", exclude_none=True, by_alias=True)
|
|
79
80
|
if self.include:
|
|
80
81
|
raw["include"] = self.include
|
|
81
82
|
for name, job in self.jobs.items():
|
|
82
|
-
raw[name] = job.model_dump(exclude_none=True, by_alias=True)
|
|
83
|
+
raw[name] = job.model_dump(mode="json", exclude_none=True, by_alias=True)
|
|
83
84
|
result = dump_yaml(raw)
|
|
84
85
|
if target is not None:
|
|
85
86
|
Path(target).write_text(result)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "gitlab-cicd-python-wrapper"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.3"
|
|
4
4
|
description = "Pydantic models wrapping GitLab CI/CD YAML with 1:1 mapping"
|
|
5
5
|
authors = ["Szymon Richert <szymon.rychu@gmail.com>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -12,7 +12,7 @@ packages = [
|
|
|
12
12
|
[tool.poetry.dependencies]
|
|
13
13
|
python = "^3.11"
|
|
14
14
|
pydantic = "^2.0"
|
|
15
|
-
"ruamel.yaml" = "
|
|
15
|
+
"ruamel.yaml" = ">=0.18,<0.20"
|
|
16
16
|
aiofiles = "^24.0"
|
|
17
17
|
|
|
18
18
|
[tool.poetry.group.dev.dependencies]
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|