gitlab-cicd-python-wrapper 0.0.2__tar.gz → 0.0.4__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.
Files changed (27) hide show
  1. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/PKG-INFO +2 -2
  2. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/pipeline.py +5 -4
  3. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/pyproject.toml +5 -5
  4. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/README.md +0 -0
  5. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/__init__.py +0 -0
  6. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/_async.py +0 -0
  7. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/artifacts.py +0 -0
  8. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/cache.py +0 -0
  9. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/cli.py +0 -0
  10. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/common.py +0 -0
  11. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/component.py +0 -0
  12. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/environment.py +0 -0
  13. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/globals.py +0 -0
  14. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/image.py +0 -0
  15. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/include.py +0 -0
  16. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/job.py +0 -0
  17. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/needs.py +0 -0
  18. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/pages.py +0 -0
  19. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/py.typed +0 -0
  20. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/release.py +0 -0
  21. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/retry.py +0 -0
  22. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/rules.py +0 -0
  23. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/secrets.py +0 -0
  24. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/serialization.py +0 -0
  25. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/spec.py +0 -0
  26. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/gitlab_cicd_python_wrapper/trigger.py +0 -0
  27. {gitlab_cicd_python_wrapper-0.0.2 → gitlab_cicd_python_wrapper-0.0.4}/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.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
@@ -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
  [tool.poetry]
2
2
  name = "gitlab-cicd-python-wrapper"
3
- version = "0.0.2"
3
+ version = "0.0.4"
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,18 +12,18 @@ packages = [
12
12
  [tool.poetry.dependencies]
13
13
  python = "^3.11"
14
14
  pydantic = "^2.0"
15
- "ruamel.yaml" = "^0.18"
15
+ "ruamel.yaml" = ">=0.18,<0.20"
16
16
  aiofiles = "^24.0"
17
17
 
18
18
  [tool.poetry.group.dev.dependencies]
19
19
  pytest = "^8.2"
20
20
  pytest-cov = "^6.0"
21
- pytest-asyncio = "^0.25"
22
- ruff = "^0.4"
21
+ pytest-asyncio = "^0.26.0"
22
+ ruff = "^0.15.0"
23
23
  isort = "^8.0"
24
24
  vulture = "^2.11"
25
25
  pre-commit = "^4.0"
26
- poethepoet = "^0.43"
26
+ poethepoet = "^0.44.0"
27
27
  coverage-badge = "^1.1"
28
28
  autoflake = "^2.3"
29
29