arkitekt-next 0.8.0__py3-none-any.whl → 0.8.1__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/dockerfiles/vanilla.dockerfile +2 -1
- arkitekt_next/cli/io.py +0 -2
- arkitekt_next/cli/types.py +13 -2
- {arkitekt_next-0.8.0.dist-info → arkitekt_next-0.8.1.dist-info}/METADATA +1 -1
- {arkitekt_next-0.8.0.dist-info → arkitekt_next-0.8.1.dist-info}/RECORD +8 -8
- {arkitekt_next-0.8.0.dist-info → arkitekt_next-0.8.1.dist-info}/LICENSE +0 -0
- {arkitekt_next-0.8.0.dist-info → arkitekt_next-0.8.1.dist-info}/WHEEL +0 -0
- {arkitekt_next-0.8.0.dist-info → arkitekt_next-0.8.1.dist-info}/entry_points.txt +0 -0
arkitekt_next/cli/io.py
CHANGED
|
@@ -9,7 +9,6 @@ from arkitekt_next.cli.types import (
|
|
|
9
9
|
Deployment,
|
|
10
10
|
Flavour,
|
|
11
11
|
DeploymentsConfigFile,
|
|
12
|
-
DefinitionInput,
|
|
13
12
|
)
|
|
14
13
|
import yaml
|
|
15
14
|
import json
|
|
@@ -202,7 +201,6 @@ def generate_deployment(
|
|
|
202
201
|
deployment_run: str,
|
|
203
202
|
build: Build,
|
|
204
203
|
image: str,
|
|
205
|
-
definitions: Optional[List[DefinitionInput]] = None,
|
|
206
204
|
) -> Deployment:
|
|
207
205
|
"""Generates a deployment from a build and an image
|
|
208
206
|
|
arkitekt_next/cli/types.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from importlib.metadata import version
|
|
1
2
|
from pydantic import BaseModel, Field, validator
|
|
2
3
|
import datetime
|
|
3
4
|
from typing import List, Optional, Union, Literal, Dict
|
|
@@ -5,7 +6,6 @@ from enum import Enum
|
|
|
5
6
|
import semver
|
|
6
7
|
import uuid
|
|
7
8
|
from arkitekt_next.model import Requirement
|
|
8
|
-
from rekuest.api.schema import DefinitionInput
|
|
9
9
|
from string import Formatter
|
|
10
10
|
import os
|
|
11
11
|
|
|
@@ -229,6 +229,8 @@ class Flavour(BaseModel):
|
|
|
229
229
|
"-f",
|
|
230
230
|
"{dockerfile}",
|
|
231
231
|
".",
|
|
232
|
+
"--build-arg",
|
|
233
|
+
"ARKITEKT_VERSION={package_version}",
|
|
232
234
|
]
|
|
233
235
|
)
|
|
234
236
|
|
|
@@ -246,9 +248,18 @@ class Flavour(BaseModel):
|
|
|
246
248
|
def generate_build_command(self, tag: str, relative_dir: str):
|
|
247
249
|
"""Generates the build command for this flavour"""
|
|
248
250
|
|
|
251
|
+
try:
|
|
252
|
+
package_version = version('arkitekt_next')
|
|
253
|
+
print(f"Detected Arkitekt Package version: {package_version}")
|
|
254
|
+
except:
|
|
255
|
+
package_version = "0.8.0"
|
|
256
|
+
print("Could not detect Arkitekt Package version. Using 0.8.0")
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
249
260
|
dockerfile = os.path.join(relative_dir, self.dockerfile)
|
|
250
261
|
|
|
251
|
-
return [v.format(tag=tag, dockerfile=dockerfile) for v in self.build_command]
|
|
262
|
+
return [v.format(tag=tag, dockerfile=dockerfile, package_version=package_version) for v in self.build_command]
|
|
252
263
|
|
|
253
264
|
def check_relative_paths(self, flavour_folder: str):
|
|
254
265
|
"""Checks that the paths are relative to the flavour folder"""
|
|
@@ -87,10 +87,10 @@ arkitekt_next/cli/commands/run/prod.py,sha256=EqDMa_eYNaffHZOBHGQEGNJVKdq8NHCgfo
|
|
|
87
87
|
arkitekt_next/cli/commands/run/utils.py,sha256=zH-MNNEfKgyOYQvwP6Ph8KUHVqH48fw3ZI6tiQ9unwQ,325
|
|
88
88
|
arkitekt_next/cli/configs/base.yaml,sha256=9IJ7B4Fq3swHsLUbKn1MlhhzJKqDI1wnR5PAG_VKs8A,30097
|
|
89
89
|
arkitekt_next/cli/constants.py,sha256=ONXKA8LRxXQkOQ56ZElVMZSTiaIH1LE_ikmUUKem98g,1410
|
|
90
|
-
arkitekt_next/cli/dockerfiles/vanilla.dockerfile,sha256=
|
|
90
|
+
arkitekt_next/cli/dockerfiles/vanilla.dockerfile,sha256=Gz-EJ7u2vQl-wVO1xQkgX21pI2-C2Rhi7byi7rtVxCA,208
|
|
91
91
|
arkitekt_next/cli/errors.py,sha256=zLTjaCbun6qM2nTldjyZd-DvykqKn5A3Gn80uYdx7Vc,93
|
|
92
92
|
arkitekt_next/cli/inspect.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
93
|
-
arkitekt_next/cli/io.py,sha256=
|
|
93
|
+
arkitekt_next/cli/io.py,sha256=uRhq3SCI-sCiRp9TXK_hFqu5xub1h49XNixFqybHCpc,6821
|
|
94
94
|
arkitekt_next/cli/main.py,sha256=aMArNPvmreSCJI30UN3plueWfGzVvUL5Fx53Z-5dtkw,2237
|
|
95
95
|
arkitekt_next/cli/options.py,sha256=hSKdSYabK1MuioBRUsADjQIPSp9H2YeczmcyAsFUprI,3791
|
|
96
96
|
arkitekt_next/cli/schemas/fluss.schema.graphql,sha256=MqrSpOxtWO9kWFCoUn9ySBPhIH3XozFiqrQl2zjEbiQ,35803
|
|
@@ -110,7 +110,7 @@ arkitekt_next/cli/schemas/unlok.schema.graphql,sha256=fXR846snIBIqkuQ-PlYnSkQjkF
|
|
|
110
110
|
arkitekt_next/cli/templates/filter.py,sha256=mD2jdNEXrZNagC_8WtuTisGJrGIbJDSylCvh19cF49I,650
|
|
111
111
|
arkitekt_next/cli/templates/simple.py,sha256=IbcThJ5LryXVFQUdzxfHQCtzSNxEQWTxbD__Ygxsp4M,1171
|
|
112
112
|
arkitekt_next/cli/texts.py,sha256=080QLAe8dhklkfoA8Yk6fLrQeRoUrTQLgWCZiWl7bNk,689
|
|
113
|
-
arkitekt_next/cli/types.py,sha256=
|
|
113
|
+
arkitekt_next/cli/types.py,sha256=lpZFJaFOtYG4YyLe2JFY274laM5WFdbb0FLYuEj2Olw,10813
|
|
114
114
|
arkitekt_next/cli/ui.py,sha256=BR_AOsBIIHwojI5otBzT_560-ep5Dw1xAHKsO2zOOJQ,3493
|
|
115
115
|
arkitekt_next/cli/utils.py,sha256=rl1hfQIVzepLHPN_ZWuvfVH-IIVqcSfiFGyfNtL1XCo,445
|
|
116
116
|
arkitekt_next/cli/validators.py,sha256=XkLrOrDzBJwcG1keTawa_NJPt3QIBhb5KjepeH4N1KA,719
|
|
@@ -136,8 +136,8 @@ arkitekt_next/qt/utils.py,sha256=MgBPtPmCSBkIuATov3UgREESwxAHh77lWNNxyE7Qs48,773
|
|
|
136
136
|
arkitekt_next/service_registry.py,sha256=oryaRLS2kalmV1Qf4_SWdLotBopTsdHNaVlnt1TGZyI,3607
|
|
137
137
|
arkitekt_next/tqdm.py,sha256=FgrwpAwFTXBTEPY4rS7K4Gs8Wdjp74mUk4_OEU8hWZM,1526
|
|
138
138
|
arkitekt_next/utils.py,sha256=csBRBnxnErMRTilNBYAtIe0lPBb6E3uplqwsVGs5Wkk,2390
|
|
139
|
-
arkitekt_next-0.8.
|
|
140
|
-
arkitekt_next-0.8.
|
|
141
|
-
arkitekt_next-0.8.
|
|
142
|
-
arkitekt_next-0.8.
|
|
143
|
-
arkitekt_next-0.8.
|
|
139
|
+
arkitekt_next-0.8.1.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
|
|
140
|
+
arkitekt_next-0.8.1.dist-info/METADATA,sha256=Htwl_oDy55g5Mu_kLq_c-ZIart__uHgWwqATY-oX_oc,6084
|
|
141
|
+
arkitekt_next-0.8.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
142
|
+
arkitekt_next-0.8.1.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
|
|
143
|
+
arkitekt_next-0.8.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|