gitlab-cicd-python-wrapper 0.0.2__py3-none-any.whl → 0.0.4__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.
@@ -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) for k, v in self.variables.items()
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
  Metadata-Version: 2.4
2
2
  Name: gitlab-cicd-python-wrapper
3
- Version: 0.0.2
3
+ Version: 0.0.4
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.19)
17
+ Requires-Dist: ruamel.yaml (>=0.18,<0.20)
18
18
  Description-Content-Type: text/markdown
19
19
 
20
20
  # Gitlab CICD Python Wrapper
@@ -12,7 +12,7 @@ gitlab_cicd_python_wrapper/include.py,sha256=yw9Z5elalYbDR0i6-rSvseSh4mbglssJ_h1
12
12
  gitlab_cicd_python_wrapper/job.py,sha256=u7M6tZYr7NwjSA3jqyPbHn7zzbuk_-bkaKZigaCWAbE,3257
13
13
  gitlab_cicd_python_wrapper/needs.py,sha256=srle4kFGF2qKLLWJ3yxZpwIrjk4_9tq0d2RTL5Kv-wQ,423
14
14
  gitlab_cicd_python_wrapper/pages.py,sha256=bTnMPDhmxEgpiVP4Ugq7Y5xwWYaX8pdkkV5jMUbzp-k,239
15
- gitlab_cicd_python_wrapper/pipeline.py,sha256=UN5mByMH27gxmFt1pCXgFUFfVD_OgdopuWy46Hx8RdY,3146
15
+ gitlab_cicd_python_wrapper/pipeline.py,sha256=YFQN5pVQOtaC1l0MGeI9Xqs2rW2HK4VnlypVhvwLA7E,3214
16
16
  gitlab_cicd_python_wrapper/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  gitlab_cicd_python_wrapper/release.py,sha256=T62NekMPNtBq83_-HQF46xj23Zv9YWHG6qgGqco5b-0,346
18
18
  gitlab_cicd_python_wrapper/retry.py,sha256=9a8C7KcBdXDmhE6_to3cVCiS64dgS71h_gjD4VLd6pI,312
@@ -22,7 +22,7 @@ gitlab_cicd_python_wrapper/serialization.py,sha256=uarKZy2CTYpiM9zsZjw87mxvRd-9d
22
22
  gitlab_cicd_python_wrapper/spec.py,sha256=QFtpzSpulzHs8OD3mDcaGGXd2WBT-DinPV3Tbf9Hf_w,1960
23
23
  gitlab_cicd_python_wrapper/trigger.py,sha256=6_aFJ-dJJxT3of8GskHkfdzRc4xbCiFxDQe7cpDBqOg,612
24
24
  gitlab_cicd_python_wrapper/variables.py,sha256=3gGqgeNpEJXVIC_LqJe0JBYdj2lQzhTNdOF1n3G3uHY,296
25
- gitlab_cicd_python_wrapper-0.0.2.dist-info/METADATA,sha256=MfXDsXSUROjACxIbhVulTe3Eb7r2M73OEKHBP-SLbms,6653
26
- gitlab_cicd_python_wrapper-0.0.2.dist-info/WHEEL,sha256=Vz2fHgx6HFtSwhs8KvkHLqH5Ea4w1_rner5uNVGCeIE,88
27
- gitlab_cicd_python_wrapper-0.0.2.dist-info/entry_points.txt,sha256=7NbmwUr5FV_UzfkTARFO7g9BaOBbUu9_wM7InnynvM8,76
28
- gitlab_cicd_python_wrapper-0.0.2.dist-info/RECORD,,
25
+ gitlab_cicd_python_wrapper-0.0.4.dist-info/METADATA,sha256=9mgQPdezYngloSR6kEfglApcLiq_gEZctZZwTQMXGe8,6653
26
+ gitlab_cicd_python_wrapper-0.0.4.dist-info/WHEEL,sha256=Vz2fHgx6HFtSwhs8KvkHLqH5Ea4w1_rner5uNVGCeIE,88
27
+ gitlab_cicd_python_wrapper-0.0.4.dist-info/entry_points.txt,sha256=7NbmwUr5FV_UzfkTARFO7g9BaOBbUu9_wM7InnynvM8,76
28
+ gitlab_cicd_python_wrapper-0.0.4.dist-info/RECORD,,