arkitekt-next 0.7.15__py3-none-any.whl → 0.7.16__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.
Potentially problematic release.
This version of arkitekt-next might be problematic. Click here for more details.
- arkitekt_next/cli/commands/inspect/templates.py +1 -1
- arkitekt_next/cli/commands/kabinet/build.py +5 -4
- arkitekt_next/cli/types.py +3 -1
- {arkitekt_next-0.7.15.dist-info → arkitekt_next-0.7.16.dist-info}/METADATA +1 -1
- {arkitekt_next-0.7.15.dist-info → arkitekt_next-0.7.16.dist-info}/RECORD +8 -8
- {arkitekt_next-0.7.15.dist-info → arkitekt_next-0.7.16.dist-info}/LICENSE +0 -0
- {arkitekt_next-0.7.15.dist-info → arkitekt_next-0.7.16.dist-info}/WHEEL +0 -0
- {arkitekt_next-0.7.15.dist-info → arkitekt_next-0.7.16.dist-info}/entry_points.txt +0 -0
|
@@ -11,6 +11,7 @@ import yaml
|
|
|
11
11
|
from typing import Dict, Optional
|
|
12
12
|
import json
|
|
13
13
|
from arkitekt_next.utils import create_arkitekt_next_folder
|
|
14
|
+
from rekuest_next.api.schema import TemplateInput
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
class InspectionError(Exception):
|
|
@@ -89,7 +90,7 @@ def inspect_docker_container(build_id: str) -> Inspection:
|
|
|
89
90
|
raise InspectionError(f"An error occurred: {e.stdout + e.stderr}") from e
|
|
90
91
|
|
|
91
92
|
|
|
92
|
-
def
|
|
93
|
+
def inspect_templates(build_id: str) -> list[TemplateInput]:
|
|
93
94
|
try:
|
|
94
95
|
# Run 'docker inspect' with the container ID or name
|
|
95
96
|
result = subprocess.run(
|
|
@@ -113,7 +114,7 @@ def inspect_definitions(build_id: str) -> Inspection:
|
|
|
113
114
|
f"Could not decode JSON output of docker inspect. {combined_error}"
|
|
114
115
|
) from e
|
|
115
116
|
|
|
116
|
-
return output
|
|
117
|
+
return list(output.values())
|
|
117
118
|
except subprocess.CalledProcessError as e:
|
|
118
119
|
combined_error = e.stdout + e.stderr
|
|
119
120
|
|
|
@@ -128,9 +129,9 @@ def inspect_definitions(build_id: str) -> Inspection:
|
|
|
128
129
|
|
|
129
130
|
def inspect_build(build_id: str) -> Inspection:
|
|
130
131
|
size, size_root_fs = inspect_docker_container(build_id)
|
|
131
|
-
|
|
132
|
+
templates = inspect_templates(build_id)
|
|
132
133
|
|
|
133
|
-
return Inspection(size=size,
|
|
134
|
+
return Inspection(size=size, templates=templates)
|
|
134
135
|
|
|
135
136
|
|
|
136
137
|
def get_flavours(ctx: Context, select: Optional[str] = None) -> Dict[str, Flavour]:
|
arkitekt_next/cli/types.py
CHANGED
|
@@ -8,6 +8,8 @@ from rekuest.api.schema import DefinitionInput
|
|
|
8
8
|
from string import Formatter
|
|
9
9
|
import os
|
|
10
10
|
|
|
11
|
+
from rekuest_next.api.schema import TemplateInput
|
|
12
|
+
|
|
11
13
|
ALLOWED_BUILDER_KEYS = [
|
|
12
14
|
"tag",
|
|
13
15
|
"dockerfile",
|
|
@@ -215,7 +217,7 @@ Selector = Union[
|
|
|
215
217
|
|
|
216
218
|
|
|
217
219
|
class Inspection(BaseModel):
|
|
218
|
-
|
|
220
|
+
templates: List[TemplateInput]
|
|
219
221
|
size: int
|
|
220
222
|
|
|
221
223
|
|
|
@@ -31,10 +31,10 @@ arkitekt_next/cli/commands/init/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
|
|
|
31
31
|
arkitekt_next/cli/commands/init/main.py,sha256=1ACgJn3RH5UIbsaX3KxKmwwvw9bkmJJgSWG4JDHPfow,5936
|
|
32
32
|
arkitekt_next/cli/commands/inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
33
|
arkitekt_next/cli/commands/inspect/main.py,sha256=Eab0t-oQzrnVIQuj5Rzq4Jm__awfOSMACM2vLEZlvEE,537
|
|
34
|
-
arkitekt_next/cli/commands/inspect/templates.py,sha256=
|
|
34
|
+
arkitekt_next/cli/commands/inspect/templates.py,sha256=U99SLBYWiD-ZiIYV7pVWhQK3XWn1PLUIyTKzgSFF6MQ,2325
|
|
35
35
|
arkitekt_next/cli/commands/inspect/variables.py,sha256=LonDlbS2qH1v-jD6RfEhTv-mxmgeBMKqD3oO2iDJRjE,2698
|
|
36
36
|
arkitekt_next/cli/commands/kabinet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
|
-
arkitekt_next/cli/commands/kabinet/build.py,sha256=
|
|
37
|
+
arkitekt_next/cli/commands/kabinet/build.py,sha256=H6Hu3Df2GZiJDEFAvxfSCdn_OwSeikFhW9bybF7mT1A,7085
|
|
38
38
|
arkitekt_next/cli/commands/kabinet/init.py,sha256=NNEb5SITLNM1TBED0moyBhE-JGkkr0cvNh33A4OGnfc,2525
|
|
39
39
|
arkitekt_next/cli/commands/kabinet/main.py,sha256=U5EWekRTsMZZ34abWFfwilhzrd-zZtpZbl8RsLN_bC8,1008
|
|
40
40
|
arkitekt_next/cli/commands/kabinet/publish.py,sha256=zbjnoMliowje1nEuKFolFX5pZA2D_DzLjXlSxBbD88k,3596
|
|
@@ -88,7 +88,7 @@ arkitekt_next/cli/schemas/unlok.schema.graphql,sha256=fXR846snIBIqkuQ-PlYnSkQjkF
|
|
|
88
88
|
arkitekt_next/cli/templates/filter.py,sha256=mD2jdNEXrZNagC_8WtuTisGJrGIbJDSylCvh19cF49I,650
|
|
89
89
|
arkitekt_next/cli/templates/simple.py,sha256=IbcThJ5LryXVFQUdzxfHQCtzSNxEQWTxbD__Ygxsp4M,1171
|
|
90
90
|
arkitekt_next/cli/texts.py,sha256=csMefyCnwnvDnriTy0VJ4L24VFIbcXoC9ayopP4RxIc,697
|
|
91
|
-
arkitekt_next/cli/types.py,sha256=
|
|
91
|
+
arkitekt_next/cli/types.py,sha256=YH3wfQRO23xe6yw8_1ew63OWT_Z_l4EpgOUdoMipnIo,10456
|
|
92
92
|
arkitekt_next/cli/ui.py,sha256=BR_AOsBIIHwojI5otBzT_560-ep5Dw1xAHKsO2zOOJQ,3493
|
|
93
93
|
arkitekt_next/cli/utils.py,sha256=rl1hfQIVzepLHPN_ZWuvfVH-IIVqcSfiFGyfNtL1XCo,445
|
|
94
94
|
arkitekt_next/cli/validators.py,sha256=XkLrOrDzBJwcG1keTawa_NJPt3QIBhb5KjepeH4N1KA,719
|
|
@@ -113,8 +113,8 @@ arkitekt_next/qt/utils.py,sha256=MgBPtPmCSBkIuATov3UgREESwxAHh77lWNNxyE7Qs48,773
|
|
|
113
113
|
arkitekt_next/service_registry.py,sha256=Aq5bgu4UHRl1P6E2JOQ2gMCwFI8pQfASWte0BvtKE3g,3365
|
|
114
114
|
arkitekt_next/tqdm.py,sha256=DlrxPluHao7TvW-Cqgt0UokRS-fM2_ZNiWiddqvCqCc,1488
|
|
115
115
|
arkitekt_next/utils.py,sha256=WA3AtqQFcz2h-yOadAsQkkr0qKJmKcGMi2aclxaVI_o,1278
|
|
116
|
-
arkitekt_next-0.7.
|
|
117
|
-
arkitekt_next-0.7.
|
|
118
|
-
arkitekt_next-0.7.
|
|
119
|
-
arkitekt_next-0.7.
|
|
120
|
-
arkitekt_next-0.7.
|
|
116
|
+
arkitekt_next-0.7.16.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
|
|
117
|
+
arkitekt_next-0.7.16.dist-info/METADATA,sha256=MX27gH4_bcWB50NJz8EEdD7Gnk_MZDz3x_c0Q44DPsk,5408
|
|
118
|
+
arkitekt_next-0.7.16.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
119
|
+
arkitekt_next-0.7.16.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
|
|
120
|
+
arkitekt_next-0.7.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|