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

@@ -51,14 +51,27 @@ def init(ctx, boring, services, config, documents, schemas, path, seperate_doc_d
51
51
  # Initializing the config
52
52
  projects = {}
53
53
 
54
-
55
54
  registry = check_and_import_services()
56
55
 
57
- base_config = yaml.load(
58
- open(build_relative_dir("configs", "base.yaml"), "r"), Loader=yaml.FullLoader
59
- )
56
+ chosen_services = registry.service_builders
57
+
58
+ if services:
59
+ chosen_services = {
60
+ key: service
61
+ for key, service in registry.service_builders.items()
62
+ if key in services
63
+ }
64
+ else:
65
+ service = click.prompt(
66
+ "Choose a service to initialize the project for",
67
+ type=click.Choice(list(chosen_services.keys())),
68
+ )
69
+
70
+ chosen_services = {service: chosen_services[service]}
60
71
 
61
- for key, service in registry.service_builders.items():
72
+
73
+
74
+ for key, service in chosen_services.items():
62
75
  try:
63
76
 
64
77
  schema, project = service.get_graphql_schema(), service.get_turms_project()
@@ -94,9 +107,12 @@ def init(ctx, boring, services, config, documents, schemas, path, seperate_doc_d
94
107
  os.path.join(app_documents, key) + "/**/*.graphql"
95
108
  )
96
109
 
110
+
111
+
97
112
  project["extensions"]["turms"]["out_dir"] = path
98
113
  project["extensions"]["turms"]["generated_name"] = f"{key}.py"
99
114
  del project["extensions"]["turms"]["documents"]
115
+ del project["schema_url"]
100
116
 
101
117
  projects[key] = project
102
118
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arkitekt-next
3
- Version: 0.8.39
3
+ Version: 0.8.41
4
4
  Summary: client for the arkitekt_next platform
5
5
  License: MIT
6
6
  Author: jhnnsrs
@@ -52,7 +52,7 @@ arkitekt_next/cli/commands/call/main.py,sha256=SdxlvSgA17-M_gwItiFU_srbh-CNdHpCT
52
52
  arkitekt_next/cli/commands/call/remote.py,sha256=Id6t1nUdXmERx9wbutEhvryUMAM80_G4HVHkhYZosTE,2097
53
53
  arkitekt_next/cli/commands/gen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
54
  arkitekt_next/cli/commands/gen/compile.py,sha256=F0rAeBL4WWLdBGQRxVNqe5Bjek_SovhNO5rKrMEhj_4,1457
55
- arkitekt_next/cli/commands/gen/init.py,sha256=AErMu5qiX_9qn7EeYY-0gq53vKMp7VdSbRSLWzqW-EI,3893
55
+ arkitekt_next/cli/commands/gen/init.py,sha256=QtH7-lUDrlbBSEBR14O6rON7cQaI7oORT-4owe-P1h8,4267
56
56
  arkitekt_next/cli/commands/gen/main.py,sha256=_BdkcsXoWY5_3gmboq2e0pGYM6lAnwqQgBAyxmvdf6U,947
57
57
  arkitekt_next/cli/commands/gen/watch.py,sha256=nf4QckdTJOWxvKoeNRwvC4rXQ4xhIx8LCDDJzpPhcY8,1189
58
58
  arkitekt_next/cli/commands/init/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -132,8 +132,8 @@ arkitekt_next/qt/utils.py,sha256=MgBPtPmCSBkIuATov3UgREESwxAHh77lWNNxyE7Qs48,773
132
132
  arkitekt_next/service_registry.py,sha256=oga1_fy7clwtcQO7XcSzWlyu2d5dna9H79uKLv8fKI0,6119
133
133
  arkitekt_next/tqdm.py,sha256=lQcJI5Q6Py7Gy88hOCiJujjPEEGd8G2k1mOVJJ6oYe8,1531
134
134
  arkitekt_next/utils.py,sha256=QETdzn_GIMSw6LdaXL89bqvqp9MGwEBK8Lj54MpnMwc,2396
135
- arkitekt_next-0.8.39.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
136
- arkitekt_next-0.8.39.dist-info/METADATA,sha256=wwKQ6qgF18CCuzlIIGQiQdvCK8hh5M7yrnFWqT4KXKY,6210
137
- arkitekt_next-0.8.39.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
138
- arkitekt_next-0.8.39.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
139
- arkitekt_next-0.8.39.dist-info/RECORD,,
135
+ arkitekt_next-0.8.41.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
136
+ arkitekt_next-0.8.41.dist-info/METADATA,sha256=zZl8i_6WYk2xndHkpW6eDelUZyV-oeD3FA1_9BhFzcY,6210
137
+ arkitekt_next-0.8.41.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
138
+ arkitekt_next-0.8.41.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
139
+ arkitekt_next-0.8.41.dist-info/RECORD,,