c2cciutils 1.7.7.dev219__tar.gz → 1.7.7.dev224__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 (37) hide show
  1. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/PKG-INFO +1 -1
  2. c2cciutils-1.7.7.dev224/c2cciutils/applications_definition.py +53 -0
  3. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/configuration.py +160 -140
  4. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/pyproject.toml +1 -1
  5. c2cciutils-1.7.7.dev219/c2cciutils/applications_definition.py +0 -53
  6. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/LICENSE +0 -0
  7. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/README.md +0 -0
  8. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/__init__.py +0 -0
  9. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/applications-versions.yaml +0 -0
  10. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/applications.yaml +0 -0
  11. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/branches.graphql +0 -0
  12. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/commits.graphql +0 -0
  13. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/default_branch.graphql +0 -0
  14. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/env.py +0 -0
  15. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/lib/docker.py +0 -0
  16. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/lib/oidc.py +0 -0
  17. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/package-lock.json +0 -0
  18. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/package.json +0 -0
  19. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/publish.py +0 -0
  20. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/schema-applications.json +0 -0
  21. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/schema.json +0 -0
  22. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/__init__.py +0 -0
  23. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/clean.py +0 -0
  24. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/docker_logs.py +0 -0
  25. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/docker_versions_gen.py +0 -0
  26. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/download_applications.py +0 -0
  27. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/env.py +0 -0
  28. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/k8s/__init__.py +0 -0
  29. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/k8s/db.py +0 -0
  30. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/k8s/install.py +0 -0
  31. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/k8s/logs.py +0 -0
  32. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/k8s/wait.py +0 -0
  33. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/main.py +0 -0
  34. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/pin_pipenv.py +0 -0
  35. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/publish.py +0 -0
  36. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/trigger_image_update.py +0 -0
  37. {c2cciutils-1.7.7.dev219 → c2cciutils-1.7.7.dev224}/c2cciutils/scripts/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: c2cciutils
3
- Version: 1.7.7.dev219
3
+ Version: 1.7.7.dev224
4
4
  Summary: Common utilities for Camptocamp CI
5
5
  Home-page: https://github.com/camptocamp/c2cciutils
6
6
  License: FreeBSD
@@ -0,0 +1,53 @@
1
+ """
2
+ Automatically generated file from a JSON schema.
3
+ """
4
+
5
+
6
+ from typing import Dict, List, Literal, TypedDict, Union
7
+
8
+
9
+ # | Application configuration.
10
+ # |
11
+ # | An application configuration
12
+ ApplicationConfiguration = TypedDict('ApplicationConfiguration', {
13
+ # | URL pattern.
14
+ # |
15
+ # | URL pattern, to be used for files that didn't come from GitHub release, available arguments: {version}
16
+ 'url-pattern': str,
17
+ # | The type of file.
18
+ # |
19
+ # | The type of file
20
+ 'type': "TheTypeOfFile",
21
+ # | The filename to get.
22
+ # |
23
+ # | The name of the file to get in the GitHub release
24
+ 'get-file-name': str,
25
+ # | The created tile name.
26
+ # |
27
+ # | The name of the final tile we will create
28
+ 'to-file-name': str,
29
+ # | The tile name to get in the tar file.
30
+ 'tar-file-name': str,
31
+ # | The commands to run after the tile creation.
32
+ 'finish-commands': List[List[str]],
33
+ }, total=False)
34
+
35
+
36
+ ApplicationsConfiguration = Dict[str, "ApplicationConfiguration"]
37
+ """
38
+ Applications configuration.
39
+
40
+ All the applications configuration
41
+ """
42
+
43
+
44
+
45
+ TheTypeOfFile = Union[Literal['tar']]
46
+ """
47
+ The type of file.
48
+
49
+ The type of file
50
+ """
51
+ THETYPEOFFILE_TAR: Literal['tar'] = "tar"
52
+ """The values for the 'The type of file' enum"""
53
+
@@ -2,7 +2,8 @@
2
2
  Automatically generated file from a JSON schema.
3
3
  """
4
4
 
5
- from typing import Any, Literal, TypedDict, Union
5
+
6
+ from typing import Any, Dict, List, Literal, TypedDict, Union
6
7
 
7
8
 
8
9
  class Configuration(TypedDict, total=False):
@@ -61,76 +62,71 @@ class Configuration(TypedDict, total=False):
61
62
  """
62
63
 
63
64
 
64
- DB_CONFIGURATION_DEFAULT: dict[str, Any] = {}
65
+
66
+ DB_CONFIGURATION_DEFAULT: Dict[str, Any] = {}
65
67
  """ Default value of the field path 'K8s configuration db' """
66
68
 
67
69
 
68
- DISPATCH_CONFIG_DEFAULT: dict[str, Any] = {}
70
+
71
+ DISPATCH_CONFIG_DEFAULT: Dict[str, Any] = {}
69
72
  """ Default value of the field path 'Publish Docker config dispatch oneof0' """
70
73
 
71
74
 
72
- DOCKER_DISPATCH_EVENT_TYPE_DEFAULT = "image-update"
75
+
76
+ DOCKER_DISPATCH_EVENT_TYPE_DEFAULT = 'image-update'
73
77
  """ Default value of the field path 'dispatch config event-type' """
74
78
 
75
79
 
76
- DOCKER_DISPATCH_REPOSITORY_DEFAULT = "camptocamp/argocd-gs-gmf-apps"
80
+
81
+ DOCKER_DISPATCH_REPOSITORY_DEFAULT = 'camptocamp/argocd-gs-gmf-apps'
77
82
  """ Default value of the field path 'dispatch config repository' """
78
83
 
79
84
 
80
- DOCKER_REPOSITORY_DEFAULT = {
81
- "github": {"server": "ghcr.io", "versions": ["version_tag", "version_branch", "rebuild"]},
82
- "dockerhub": {},
83
- }
85
+
86
+ DOCKER_REPOSITORY_DEFAULT = {'github': {'server': 'ghcr.io', 'versions': ['version_tag', 'version_branch', 'rebuild']}, 'dockerhub': {}}
84
87
  """ Default value of the field path 'Publish Docker config repository' """
85
88
 
86
89
 
90
+
87
91
  # | DB configuration.
88
- # |
92
+ # |
89
93
  # | Database configuration
90
- # |
94
+ # |
91
95
  # | default:
92
96
  # | {}
93
- DbConfiguration = TypedDict(
94
- "DbConfiguration",
95
- {
96
- # | K8S DB chart options.
97
- # |
98
- # | default:
99
- # | auth.postgresPassword: mySuperTestingPassword
100
- # | persistence.enabled: 'false'
101
- # | tls.autoGenerated: 'true'
102
- # | tls.enabled: 'true'
103
- # | volumePermissions.enabled: 'true'
104
- "chart-options": dict[str, str],
105
- },
106
- total=False,
107
- )
97
+ DbConfiguration = TypedDict('DbConfiguration', {
98
+ # | K8S DB chart options.
99
+ # |
100
+ # | default:
101
+ # | auth.postgresPassword: mySuperTestingPassword
102
+ # | persistence.enabled: 'false'
103
+ # | tls.autoGenerated: 'true'
104
+ # | tls.enabled: 'true'
105
+ # | volumePermissions.enabled: 'true'
106
+ 'chart-options': Dict[str, str],
107
+ }, total=False)
108
108
 
109
109
 
110
110
  # | dispatch config.
111
- # |
111
+ # |
112
112
  # | Send a dispatch event to an other repository
113
- # |
113
+ # |
114
114
  # | default:
115
115
  # | {}
116
- DispatchConfig = TypedDict(
117
- "DispatchConfig",
118
- {
119
- # | Docker dispatch repository.
120
- # |
121
- # | The repository name to be triggered
122
- # |
123
- # | default: camptocamp/argocd-gs-gmf-apps
124
- "repository": str,
125
- # | Docker dispatch event type.
126
- # |
127
- # | The event type to be triggered
128
- # |
129
- # | default: image-update
130
- "event-type": str,
131
- },
132
- total=False,
133
- )
116
+ DispatchConfig = TypedDict('DispatchConfig', {
117
+ # | Docker dispatch repository.
118
+ # |
119
+ # | The repository name to be triggered
120
+ # |
121
+ # | default: camptocamp/argocd-gs-gmf-apps
122
+ 'repository': str,
123
+ # | Docker dispatch event type.
124
+ # |
125
+ # | The event type to be triggered
126
+ # |
127
+ # | default: image-update
128
+ 'event-type': str,
129
+ }, total=False)
134
130
 
135
131
 
136
132
  class Dpkg(TypedDict, total=False):
@@ -140,14 +136,14 @@ class Dpkg(TypedDict, total=False):
140
136
  The configuration use t manage the dpkg packages
141
137
  """
142
138
 
143
- packages_mapping: dict[str, str]
139
+ packages_mapping: Dict[str, str]
144
140
  """
145
141
  dpkg packages mapping.
146
142
 
147
143
  The mapping of source package found in the image to package present in repology.org
148
144
  """
149
145
 
150
- ignored_packages: list[str]
146
+ ignored_packages: List[str]
151
147
  """
152
148
  dpkg ignored packages.
153
149
 
@@ -155,36 +151,35 @@ class Dpkg(TypedDict, total=False):
155
151
  """
156
152
 
157
153
 
154
+
158
155
  # | K3d configuration.
159
- # |
156
+ # |
160
157
  # | default:
161
158
  # | {}
162
- K3DConfiguration = TypedDict(
163
- "K3DConfiguration",
164
- {
165
- # | K3D install commands.
166
- # |
167
- # | default:
168
- # | - - k3d
169
- # | - cluster
170
- # | - create
171
- # | - test-cluster
172
- # | - --no-lb
173
- # | - --no-rollback
174
- "install-commands": list[list[str]],
175
- },
176
- total=False,
177
- )
178
-
179
-
180
- K3D_CONFIGURATION_DEFAULT: dict[str, Any] = {}
159
+ K3DConfiguration = TypedDict('K3DConfiguration', {
160
+ # | K3D install commands.
161
+ # |
162
+ # | default:
163
+ # | - - k3d
164
+ # | - cluster
165
+ # | - create
166
+ # | - test-cluster
167
+ # | - --no-lb
168
+ # | - --no-rollback
169
+ 'install-commands': List[List[str]],
170
+ }, total=False)
171
+
172
+
173
+ K3D_CONFIGURATION_DEFAULT: Dict[str, Any] = {}
181
174
  """ Default value of the field path 'K8s configuration k3d' """
182
175
 
183
176
 
184
- K3D_INSTALL_COMMANDS_DEFAULT = [["k3d", "cluster", "create", "test-cluster", "--no-lb", "--no-rollback"]]
177
+
178
+ K3D_INSTALL_COMMANDS_DEFAULT = [['k3d', 'cluster', 'create', 'test-cluster', '--no-lb', '--no-rollback']]
185
179
  """ Default value of the field path 'K3d configuration install-commands' """
186
180
 
187
181
 
182
+
188
183
  class K8SConfiguration(TypedDict, total=False):
189
184
  """
190
185
  K8s configuration.
@@ -212,90 +207,87 @@ class K8SConfiguration(TypedDict, total=False):
212
207
  """
213
208
 
214
209
 
215
- K8S_CONFIGURATION_DEFAULT: dict[str, Any] = {}
210
+
211
+ K8S_CONFIGURATION_DEFAULT: Dict[str, Any] = {}
216
212
  """ Default value of the field path 'configuration k8s' """
217
213
 
218
214
 
219
- K8S_DB_CHART_OPTIONS_DEFAULT = {
220
- "persistence.enabled": "false",
221
- "tls.enabled": "true",
222
- "tls.autoGenerated": "true",
223
- "auth.postgresPassword": "mySuperTestingPassword",
224
- "volumePermissions.enabled": "true",
225
- }
215
+
216
+ K8S_DB_CHART_OPTIONS_DEFAULT = {'persistence.enabled': 'false', 'tls.enabled': 'true', 'tls.autoGenerated': 'true', 'auth.postgresPassword': 'mySuperTestingPassword', 'volumePermissions.enabled': 'true'}
226
217
  """ Default value of the field path 'DB configuration chart-options' """
227
218
 
228
219
 
229
- PRINT_VERSIONS_VERSIONS_DEFAULT = [
230
- {"name": "python", "cmd": ["python3", "--version"]},
231
- {"name": "pip", "cmd": ["python3", "-m", "pip", "--version"]},
232
- {"name": "node", "prefix": "node ", "cmd": ["node", "--version"]},
233
- {"name": "npm", "prefix": "npm ", "cmd": ["npm", "--version"]},
234
- {"name": "make", "cmd": ["make", "--version"]},
235
- {"name": "docker", "cmd": ["docker", "--version"]},
236
- {"name": "docker compose", "cmd": ["docker", "compose", "version"]},
237
- {"name": "java", "cmd": ["java", "-version"]},
238
- {"name": "helm", "cmd": ["helm", "version"], "prefix": "HELM: "},
239
- ]
220
+
221
+ PRINT_VERSIONS_VERSIONS_DEFAULT = [{'name': 'python', 'cmd': ['python3', '--version']}, {'name': 'pip', 'cmd': ['python3', '-m', 'pip', '--version']}, {'name': 'node', 'prefix': 'node ', 'cmd': ['node', '--version']}, {'name': 'npm', 'prefix': 'npm ', 'cmd': ['npm', '--version']}, {'name': 'make', 'cmd': ['make', '--version']}, {'name': 'docker', 'cmd': ['docker', '--version']}, {'name': 'docker compose', 'cmd': ['docker', 'compose', 'version']}, {'name': 'java', 'cmd': ['java', '-version']}, {'name': 'helm', 'cmd': ['helm', 'version'], 'prefix': 'HELM: '}]
240
222
  """ Default value of the field path 'Print versions versions' """
241
223
 
242
224
 
243
- PUBLISH_DEFAULT = {
244
- "pypi": {"versions": ["version_tag"], "packages": "<auto-detected>"},
245
- "docker": {"images": "<auto-detected>"},
246
- "helm": {"versions": ["version_tag"], "folders": "<auto-detected>"},
247
- }
225
+
226
+ PUBLISH_DEFAULT = {'pypi': {'versions': ['version_tag'], 'packages': '<auto-detected>'}, 'docker': {'images': '<auto-detected>'}, 'helm': {'versions': ['version_tag'], 'folders': '<auto-detected>'}}
248
227
  """ Default value of the field path 'configuration publish' """
249
228
 
250
229
 
251
- PUBLISH_DOCKER_IMAGE_GROUP_DEFAULT = "default"
230
+
231
+ PUBLISH_DOCKER_IMAGE_GROUP_DEFAULT = 'default'
252
232
  """ Default value of the field path 'Publish Docker image group' """
253
233
 
254
234
 
255
- PUBLISH_DOCKER_IMAGE_TAGS_DEFAULT = ["{version}"]
235
+
236
+ PUBLISH_DOCKER_IMAGE_TAGS_DEFAULT = ['{version}']
256
237
  """ Default value of the field path 'Publish Docker image tags' """
257
238
 
258
239
 
240
+
259
241
  PUBLISH_DOCKER_LATEST_DEFAULT = True
260
242
  """ Default value of the field path 'Publish Docker config latest' """
261
243
 
262
244
 
263
- PUBLISH_DOCKER_REPOSITORY_VERSIONS_DEFAULT = ["version_tag", "version_branch", "rebuild", "feature_branch"]
245
+
246
+ PUBLISH_DOCKER_REPOSITORY_VERSIONS_DEFAULT = ['version_tag', 'version_branch', 'rebuild', 'feature_branch']
264
247
  """ Default value of the field path 'Publish Docker repository versions' """
265
248
 
266
249
 
267
- PUBLISH_DOCKER_SNYK_MONITOR_ARGS_DEFAULT = ["--app-vulns"]
250
+
251
+ PUBLISH_DOCKER_SNYK_MONITOR_ARGS_DEFAULT = ['--app-vulns']
268
252
  """ Default value of the field path 'Publish Docker config snyk monitor_args' """
269
253
 
270
254
 
271
- PUBLISH_DOCKER_SNYK_TEST_ARGS_DEFAULT = ["--app-vulns", "--severity-threshold=critical"]
255
+
256
+ PUBLISH_DOCKER_SNYK_TEST_ARGS_DEFAULT = ['--app-vulns', '--severity-threshold=critical']
272
257
  """ Default value of the field path 'Publish Docker config snyk test_args' """
273
258
 
274
259
 
275
- PUBLISH_GOOGLE_CALENDAR_CONFIG_DEFAULT: dict[str, Any] = {}
260
+
261
+ PUBLISH_GOOGLE_CALENDAR_CONFIG_DEFAULT: Dict[str, Any] = {}
276
262
  """ Default value of the field path 'Publish Google calendar oneof0' """
277
263
 
278
264
 
279
- PUBLISH_GOOGLE_CALENDAR_DEFAULT: dict[str, Any] = {}
265
+
266
+ PUBLISH_GOOGLE_CALENDAR_DEFAULT: Dict[str, Any] = {}
280
267
  """ Default value of the field path 'publish_google_calendar' """
281
268
 
282
269
 
283
- PUBLISH_GOOGLE_CALENDAR_ON_DEFAULT = ["version_branch", "version_tag", "rebuild"]
270
+
271
+ PUBLISH_GOOGLE_CALENDAR_ON_DEFAULT = ['version_branch', 'version_tag', 'rebuild']
284
272
  """ Default value of the field path 'Publish Google calendar config on' """
285
273
 
286
274
 
287
- PUBLISH_PIP_PACKAGE_GROUP_DEFAULT = "default"
275
+
276
+ PUBLISH_PIP_PACKAGE_GROUP_DEFAULT = 'default'
288
277
  """ Default value of the field path 'publish pypi package group' """
289
278
 
290
279
 
291
- PUBLISH_PYPI_CONFIG_DEFAULT: dict[str, Any] = {}
280
+
281
+ PUBLISH_PYPI_CONFIG_DEFAULT: Dict[str, Any] = {}
292
282
  """ Default value of the field path 'publish pypi oneof0' """
293
283
 
294
284
 
295
- PUBLISH_PYPI_DEFAULT: dict[str, Any] = {}
285
+
286
+ PUBLISH_PYPI_DEFAULT: Dict[str, Any] = {}
296
287
  """ Default value of the field path 'publish_pypi' """
297
288
 
298
289
 
290
+
299
291
  class PrintVersions(TypedDict, total=False):
300
292
  """
301
293
  Print versions.
@@ -303,7 +295,7 @@ class PrintVersions(TypedDict, total=False):
303
295
  The print versions configuration
304
296
  """
305
297
 
306
- versions: list["_PrintVersionsVersionsItem"]
298
+ versions: List["_PrintVersionsVersionsItem"]
307
299
  """
308
300
  Print versions versions.
309
301
 
@@ -353,6 +345,7 @@ class PrintVersions(TypedDict, total=False):
353
345
  """
354
346
 
355
347
 
348
+
356
349
  class Publish(TypedDict, total=False):
357
350
  """
358
351
  Publish.
@@ -419,6 +412,7 @@ class Publish(TypedDict, total=False):
419
412
  """
420
413
 
421
414
 
415
+
422
416
  PublishDocker = Union["PublishDockerConfig", Literal[False]]
423
417
  """
424
418
  Publish Docker.
@@ -430,6 +424,7 @@ Subtype: "PublishDockerConfig"
430
424
  """
431
425
 
432
426
 
427
+
433
428
  class PublishDockerConfig(TypedDict, total=False):
434
429
  """
435
430
  Publish Docker config.
@@ -446,10 +441,10 @@ class PublishDockerConfig(TypedDict, total=False):
446
441
  default: True
447
442
  """
448
443
 
449
- images: list["PublishDockerImage"]
444
+ images: List["PublishDockerImage"]
450
445
  """ List of images to be published """
451
446
 
452
- repository: dict[str, "PublishDockerRepository"]
447
+ repository: Dict[str, "PublishDockerRepository"]
453
448
  """
454
449
  Docker repository.
455
450
 
@@ -480,8 +475,9 @@ class PublishDockerConfig(TypedDict, total=False):
480
475
  """ Checks the published images with Snyk """
481
476
 
482
477
 
478
+
483
479
  class PublishDockerImage(TypedDict, total=False):
484
- """Publish Docker image."""
480
+ """ Publish Docker image. """
485
481
 
486
482
  group: str
487
483
  """
@@ -495,7 +491,7 @@ class PublishDockerImage(TypedDict, total=False):
495
491
  name: str
496
492
  """ The image name """
497
493
 
498
- tags: list[str]
494
+ tags: List[str]
499
495
  """
500
496
  publish docker image tags.
501
497
 
@@ -506,13 +502,14 @@ class PublishDockerImage(TypedDict, total=False):
506
502
  """
507
503
 
508
504
 
505
+
509
506
  class PublishDockerRepository(TypedDict, total=False):
510
- """Publish Docker repository."""
507
+ """ Publish Docker repository. """
511
508
 
512
509
  server: str
513
510
  """ The server URL """
514
511
 
515
- versions: list[str]
512
+ versions: List[str]
516
513
  """
517
514
  Publish Docker repository versions.
518
515
 
@@ -526,6 +523,7 @@ class PublishDockerRepository(TypedDict, total=False):
526
523
  """
527
524
 
528
525
 
526
+
529
527
  PublishGoogleCalendar = Union["PublishGoogleCalendarConfig", "_PublishGoogleCalendarOneof1"]
530
528
  """
531
529
  Publish Google calendar.
@@ -540,6 +538,7 @@ Subtype: "PublishGoogleCalendarConfig"
540
538
  """
541
539
 
542
540
 
541
+
543
542
  class PublishGoogleCalendarConfig(TypedDict, total=False):
544
543
  """
545
544
  Publish Google calendar config.
@@ -550,7 +549,7 @@ class PublishGoogleCalendarConfig(TypedDict, total=False):
550
549
  {}
551
550
  """
552
551
 
553
- on: list[str]
552
+ on: List[str]
554
553
  """
555
554
  Publish Google calendar on.
556
555
 
@@ -561,6 +560,7 @@ class PublishGoogleCalendarConfig(TypedDict, total=False):
561
560
  """
562
561
 
563
562
 
563
+
564
564
  PublishHelm = Union["PublishHelmConfig", Literal[False]]
565
565
  """
566
566
  publish helm.
@@ -572,6 +572,7 @@ Subtype: "PublishHelmConfig"
572
572
  """
573
573
 
574
574
 
575
+
575
576
  class PublishHelmConfig(TypedDict, total=False):
576
577
  """
577
578
  publish helm config.
@@ -579,13 +580,14 @@ class PublishHelmConfig(TypedDict, total=False):
579
580
  Configuration to publish on Helm charts on GitHub release
580
581
  """
581
582
 
582
- folders: list[str]
583
+ folders: List[str]
583
584
  """ The folders that will be published """
584
585
 
585
- versions: list[str]
586
+ versions: List[str]
586
587
  """ The kind or version that should be published, tag, branch or value of the --version argument of the c2cciutils-publish script """
587
588
 
588
589
 
590
+
589
591
  PublishPypi = Union["PublishPypiConfig", "_PublishPypiOneof1"]
590
592
  """
591
593
  publish pypi.
@@ -600,6 +602,7 @@ Subtype: "PublishPypiConfig"
600
602
  """
601
603
 
602
604
 
605
+
603
606
  class PublishPypiConfig(TypedDict, total=False):
604
607
  """
605
608
  publish pypi config.
@@ -610,13 +613,14 @@ class PublishPypiConfig(TypedDict, total=False):
610
613
  {}
611
614
  """
612
615
 
613
- packages: list["PublishPypiPackage"]
616
+ packages: List["PublishPypiPackage"]
614
617
  """ The configuration of packages that will be published """
615
618
 
616
- versions: list[str]
619
+ versions: List[str]
617
620
  """ The kind or version that should be published, tag, branch or value of the --version argument of the c2cciutils-publish script """
618
621
 
619
622
 
623
+
620
624
  class PublishPypiPackage(TypedDict, total=False):
621
625
  """
622
626
  publish pypi package.
@@ -636,10 +640,11 @@ class PublishPypiPackage(TypedDict, total=False):
636
640
  path: str
637
641
  """ The path of the pypi package """
638
642
 
639
- build_command: list[str]
643
+ build_command: List[str]
640
644
  """ The command used to do the build """
641
645
 
642
646
 
647
+
643
648
  class Version(TypedDict, total=False):
644
649
  """
645
650
  Version.
@@ -662,7 +667,8 @@ class Version(TypedDict, total=False):
662
667
  """
663
668
 
664
669
 
665
- VersionTransform = list["_VersionTransformItem"]
670
+
671
+ VersionTransform = List["_VersionTransformItem"]
666
672
  """
667
673
  Version transform.
668
674
 
@@ -670,40 +676,49 @@ A version transformer definition
670
676
  """
671
677
 
672
678
 
673
- _PUBLISH_DOCKER_CONFIG_DISPATCH_DEFAULT: dict[str, Any] = {}
679
+
680
+ _PUBLISH_DOCKER_CONFIG_DISPATCH_DEFAULT: Dict[str, Any] = {}
674
681
  """ Default value of the field path 'Publish Docker config dispatch' """
675
682
 
676
683
 
677
- _PUBLISH_DOCKER_CONFIG_DISPATCH_ONEOF1_DEFAULT: dict[str, Any] = {}
684
+
685
+ _PUBLISH_DOCKER_CONFIG_DISPATCH_ONEOF1_DEFAULT: Dict[str, Any] = {}
678
686
  """ Default value of the field path 'Publish Docker config dispatch oneof1' """
679
687
 
680
688
 
681
- _PUBLISH_DOCKER_SNYK_MONITOR_ARGS_ONEOF0_DEFAULT = ["--app-vulns"]
689
+
690
+ _PUBLISH_DOCKER_SNYK_MONITOR_ARGS_ONEOF0_DEFAULT = ['--app-vulns']
682
691
  """ Default value of the field path 'Publish Docker Snyk monitor args oneof0' """
683
692
 
684
693
 
685
- _PUBLISH_DOCKER_SNYK_MONITOR_ARGS_ONEOF1_DEFAULT = ["--app-vulns"]
694
+
695
+ _PUBLISH_DOCKER_SNYK_MONITOR_ARGS_ONEOF1_DEFAULT = ['--app-vulns']
686
696
  """ Default value of the field path 'Publish Docker Snyk monitor args oneof1' """
687
697
 
688
698
 
689
- _PUBLISH_DOCKER_SNYK_TEST_ARGS_ONEOF0_DEFAULT = ["--app-vulns", "--severity-threshold=critical"]
699
+
700
+ _PUBLISH_DOCKER_SNYK_TEST_ARGS_ONEOF0_DEFAULT = ['--app-vulns', '--severity-threshold=critical']
690
701
  """ Default value of the field path 'Publish Docker Snyk test args oneof0' """
691
702
 
692
703
 
693
- _PUBLISH_DOCKER_SNYK_TEST_ARGS_ONEOF1_DEFAULT = ["--app-vulns", "--severity-threshold=critical"]
704
+
705
+ _PUBLISH_DOCKER_SNYK_TEST_ARGS_ONEOF1_DEFAULT = ['--app-vulns', '--severity-threshold=critical']
694
706
  """ Default value of the field path 'Publish Docker Snyk test args oneof1' """
695
707
 
696
708
 
697
- _PUBLISH_GOOGLE_CALENDAR_ONEOF1_DEFAULT: dict[str, Any] = {}
709
+
710
+ _PUBLISH_GOOGLE_CALENDAR_ONEOF1_DEFAULT: Dict[str, Any] = {}
698
711
  """ Default value of the field path 'Publish Google calendar oneof1' """
699
712
 
700
713
 
701
- _PUBLISH_PYPI_ONEOF1_DEFAULT: dict[str, Any] = {}
714
+
715
+ _PUBLISH_PYPI_ONEOF1_DEFAULT: Dict[str, Any] = {}
702
716
  """ Default value of the field path 'publish pypi oneof1' """
703
717
 
704
718
 
719
+
705
720
  class _PrintVersionsVersionsItem(TypedDict, total=False):
706
- cmd: list[str]
721
+ cmd: List[str]
707
722
  """ The command that should be used """
708
723
 
709
724
  name: str
@@ -713,6 +728,7 @@ class _PrintVersionsVersionsItem(TypedDict, total=False):
713
728
  """ Prefix added when we print the version """
714
729
 
715
730
 
731
+
716
732
  _PublishDockerConfigDispatchOneof1 = Literal[False]
717
733
  """
718
734
  default:
@@ -720,8 +736,9 @@ default:
720
736
  """
721
737
 
722
738
 
739
+
723
740
  class _PublishDockerConfigSnyk(TypedDict, total=False):
724
- """Checks the published images with Snyk"""
741
+ """ Checks the published images with Snyk """
725
742
 
726
743
  monitor_args: Union["_PublishDockerSnykMonitorArgsOneof0", "_PublishDockerSnykMonitorArgsOneof1"]
727
744
  """
@@ -749,13 +766,15 @@ class _PublishDockerConfigSnyk(TypedDict, total=False):
749
766
  """
750
767
 
751
768
 
752
- _PublishDockerSnykMonitorArgsOneof0 = list[str]
769
+
770
+ _PublishDockerSnykMonitorArgsOneof0 = List[str]
753
771
  """
754
772
  default:
755
773
  - --app-vulns
756
774
  """
757
775
 
758
776
 
777
+
759
778
  _PublishDockerSnykMonitorArgsOneof1 = Literal[False]
760
779
  """
761
780
  default:
@@ -763,7 +782,8 @@ default:
763
782
  """
764
783
 
765
784
 
766
- _PublishDockerSnykTestArgsOneof0 = list[str]
785
+
786
+ _PublishDockerSnykTestArgsOneof0 = List[str]
767
787
  """
768
788
  default:
769
789
  - --app-vulns
@@ -771,6 +791,7 @@ default:
771
791
  """
772
792
 
773
793
 
794
+
774
795
  _PublishDockerSnykTestArgsOneof1 = Literal[False]
775
796
  """
776
797
  default:
@@ -779,6 +800,7 @@ default:
779
800
  """
780
801
 
781
802
 
803
+
782
804
  _PublishGoogleCalendarOneof1 = Literal[False]
783
805
  """
784
806
  default:
@@ -786,6 +808,7 @@ default:
786
808
  """
787
809
 
788
810
 
811
+
789
812
  _PublishPypiOneof1 = Literal[False]
790
813
  """
791
814
  default:
@@ -793,13 +816,10 @@ default:
793
816
  """
794
817
 
795
818
 
796
- _VersionTransformItem = TypedDict(
797
- "_VersionTransformItem",
798
- {
799
- # | The from regular expression
800
- "from": str,
801
- # | The expand regular expression: https://docs.python.org/3/library/re.html#re.Match.expand
802
- "to": str,
803
- },
804
- total=False,
805
- )
819
+
820
+ _VersionTransformItem = TypedDict('_VersionTransformItem', {
821
+ # | The from regular expression
822
+ 'from': str,
823
+ # | The expand regular expression: https://docs.python.org/3/library/re.html#re.Match.expand
824
+ 'to': str,
825
+ }, total=False)
@@ -19,7 +19,7 @@ strict = true
19
19
 
20
20
  [tool.poetry]
21
21
  name = "c2cciutils"
22
- version = "1.7.7.dev219"
22
+ version = "1.7.7.dev224"
23
23
  description = "Common utilities for Camptocamp CI"
24
24
  readme = "README.md"
25
25
  authors = ["Camptocamp <info@camptocamp.com>"]
@@ -1,53 +0,0 @@
1
- """
2
- Automatically generated file from a JSON schema.
3
- """
4
-
5
- from typing import Literal, TypedDict, Union
6
-
7
- # | Application configuration.
8
- # |
9
- # | An application configuration
10
- ApplicationConfiguration = TypedDict(
11
- "ApplicationConfiguration",
12
- {
13
- # | URL pattern.
14
- # |
15
- # | URL pattern, to be used for files that didn't come from GitHub release, available arguments: {version}
16
- "url-pattern": str,
17
- # | The type of file.
18
- # |
19
- # | The type of file
20
- "type": "TheTypeOfFile",
21
- # | The filename to get.
22
- # |
23
- # | The name of the file to get in the GitHub release
24
- "get-file-name": str,
25
- # | The created tile name.
26
- # |
27
- # | The name of the final tile we will create
28
- "to-file-name": str,
29
- # | The tile name to get in the tar file.
30
- "tar-file-name": str,
31
- # | The commands to run after the tile creation.
32
- "finish-commands": list[list[str]],
33
- },
34
- total=False,
35
- )
36
-
37
-
38
- ApplicationsConfiguration = dict[str, "ApplicationConfiguration"]
39
- """
40
- Applications configuration.
41
-
42
- All the applications configuration
43
- """
44
-
45
-
46
- TheTypeOfFile = Union[Literal["tar"]]
47
- """
48
- The type of file.
49
-
50
- The type of file
51
- """
52
- THETYPEOFFILE_TAR: Literal["tar"] = "tar"
53
- """The values for the 'The type of file' enum"""