arkitekt-next 0.8.1__py3-none-any.whl → 0.8.2__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.

@@ -1,3 +1,4 @@
1
+ from importlib.metadata import version
1
2
  from arkitekt_next.cli.constants import compile_dockerfiles
2
3
  from arkitekt_next.cli.types import Flavour
3
4
  from arkitekt_next.cli.utils import build_relative_dir
@@ -46,6 +47,13 @@ import os
46
47
  is_flag=True,
47
48
  default=False,
48
49
  )
50
+ @click.option(
51
+ "--arkitekt-version",
52
+ "-av",
53
+ help="Which Arkitekt-version should we use to mount in the container?",
54
+ default=None,
55
+ type=str,
56
+ )
49
57
  @click.pass_context
50
58
  def init(
51
59
  ctx: Context,
@@ -54,6 +62,7 @@ def init(
54
62
  flavour: str,
55
63
  template: str,
56
64
  devcontainer: bool,
65
+ arkitekt_version: str = None,
57
66
  ) -> None:
58
67
  """Runs the port wizard to generate a dockerfile to be used with port"""
59
68
 
@@ -78,6 +87,15 @@ def init(
78
87
  dockerfile="Dockerfile",
79
88
  )
80
89
 
90
+
91
+ try:
92
+ package_version = arkitekt_version or version('arkitekt_next')
93
+ print(f"Detected Arkitekt Package version: {package_version}")
94
+ except:
95
+ raise click.ClickException("Could not detect the Arkitekt package version (maybe you are running a dev version). Please provide it with the --arkitekt-version flag")
96
+
97
+
98
+
81
99
  with open(config_file, "w") as file:
82
100
  yaml.dump(fl.dict(), file)
83
101
 
@@ -85,7 +103,7 @@ def init(
85
103
  dockerfile_content = f.read()
86
104
 
87
105
  with open(dockerfile, "w") as f:
88
- f.write(dockerfile_content)
106
+ f.write(dockerfile_content.format(__arkitekt_version__=package_version))
89
107
 
90
108
  if devcontainer or click.confirm("Do you want to create a devcontainer.json file?"):
91
109
  create_devcontainer_file(manifest, flavour, dockerfile)
@@ -1,7 +1,6 @@
1
1
  FROM python:3.11-slim-buster
2
- ARG ARKITEKT_VERSION=0.8.0
3
2
 
4
- RUN pip install "arkitekt-next[all]>=${ARKITEKT_VERSION}"
3
+ RUN pip install "arkitekt-next[all]>={__arkitekt_version__}"
5
4
 
6
5
  RUN mkdir /app
7
6
  WORKDIR /app
@@ -14,6 +14,7 @@ from rekuest_next.api.schema import TemplateInput
14
14
  ALLOWED_BUILDER_KEYS = [
15
15
  "tag",
16
16
  "dockerfile",
17
+ "package_version",
17
18
  ]
18
19
 
19
20
 
@@ -229,8 +230,6 @@ class Flavour(BaseModel):
229
230
  "-f",
230
231
  "{dockerfile}",
231
232
  ".",
232
- "--build-arg",
233
- "ARKITEKT_VERSION={package_version}",
234
233
  ]
235
234
  )
236
235
 
@@ -248,18 +247,10 @@ class Flavour(BaseModel):
248
247
  def generate_build_command(self, tag: str, relative_dir: str):
249
248
  """Generates the build command for this flavour"""
250
249
 
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
250
 
260
251
  dockerfile = os.path.join(relative_dir, self.dockerfile)
261
252
 
262
- return [v.format(tag=tag, dockerfile=dockerfile, package_version=package_version) for v in self.build_command]
253
+ return [v.format(tag=tag, dockerfile=dockerfile) for v in self.build_command]
263
254
 
264
255
  def check_relative_paths(self, flavour_folder: str):
265
256
  """Checks that the paths are relative to the flavour folder"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arkitekt-next
3
- Version: 0.8.1
3
+ Version: 0.8.2
4
4
  Summary: client for the arkitekt_next platform
5
5
  License: MIT
6
6
  Author: jhnnsrs
@@ -67,7 +67,7 @@ arkitekt_next/cli/commands/inspect/templates.py,sha256=U99SLBYWiD-ZiIYV7pVWhQK3X
67
67
  arkitekt_next/cli/commands/inspect/variables.py,sha256=LonDlbS2qH1v-jD6RfEhTv-mxmgeBMKqD3oO2iDJRjE,2698
68
68
  arkitekt_next/cli/commands/kabinet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
69
69
  arkitekt_next/cli/commands/kabinet/build.py,sha256=JyMgvp5X0j2DE4w3aLPyM6ffSulfFZ1mNkS4--3wlZM,8671
70
- arkitekt_next/cli/commands/kabinet/init.py,sha256=FMozj1kzrgdoZ13VR9BrPU8aqSlSynRRyoTPSkerBzU,2970
70
+ arkitekt_next/cli/commands/kabinet/init.py,sha256=T6D7Vz05PUyyJ6noNqrMhVjz8hyZUfKv4Vgi1JVxz_k,3599
71
71
  arkitekt_next/cli/commands/kabinet/main.py,sha256=U5EWekRTsMZZ34abWFfwilhzrd-zZtpZbl8RsLN_bC8,1008
72
72
  arkitekt_next/cli/commands/kabinet/publish.py,sha256=zbjnoMliowje1nEuKFolFX5pZA2D_DzLjXlSxBbD88k,3596
73
73
  arkitekt_next/cli/commands/kabinet/stage.py,sha256=bXpC8fDmG6qFQVuLhqTCieOJnvFafj3Flg1BdIeciEw,2025
@@ -87,7 +87,7 @@ 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=Gz-EJ7u2vQl-wVO1xQkgX21pI2-C2Rhi7byi7rtVxCA,208
90
+ arkitekt_next/cli/dockerfiles/vanilla.dockerfile,sha256=0ujdG22rZ6v2n5TMHNA4HR5f1PP9KJvAQORz-DGHBpo,184
91
91
  arkitekt_next/cli/errors.py,sha256=zLTjaCbun6qM2nTldjyZd-DvykqKn5A3Gn80uYdx7Vc,93
92
92
  arkitekt_next/cli/inspect.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
93
93
  arkitekt_next/cli/io.py,sha256=uRhq3SCI-sCiRp9TXK_hFqu5xub1h49XNixFqybHCpc,6821
@@ -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=lpZFJaFOtYG4YyLe2JFY274laM5WFdbb0FLYuEj2Olw,10813
113
+ arkitekt_next/cli/types.py,sha256=s6xhxNaoLxv_0SKPp_NoWHFbwZSRuGlId-HNm5Yf3F8,10443
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.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,,
139
+ arkitekt_next-0.8.2.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
140
+ arkitekt_next-0.8.2.dist-info/METADATA,sha256=5xGJosqJBHVY4l4675ZssX42wjIJEcoAeq51xmHddXs,6084
141
+ arkitekt_next-0.8.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
142
+ arkitekt_next-0.8.2.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
143
+ arkitekt_next-0.8.2.dist-info/RECORD,,