beamlit 0.0.30rc34__py3-none-any.whl → 0.0.30rc36__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.
beamlit/deploy/deploy.py
CHANGED
@@ -240,17 +240,21 @@ def generate_beamlit_deployment(directory: str):
|
|
240
240
|
# Create directory if it doesn't exist
|
241
241
|
os.makedirs(agents_dir, exist_ok=True)
|
242
242
|
os.makedirs(functions_dir, exist_ok=True)
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
243
|
+
for resource, agent in agents:
|
244
|
+
# write deployment file
|
245
|
+
agent_dir = os.path.join(agents_dir, agent.metadata.name)
|
246
|
+
os.makedirs(agent_dir, exist_ok=True)
|
247
|
+
with open(os.path.join(agent_dir, f"agent.yaml"), "w") as f:
|
248
|
+
content = get_agent_yaml(agent, functions, settings)
|
249
|
+
f.write(content)
|
250
|
+
# write dockerfile for build
|
251
|
+
with open(os.path.join(agent_dir, f"Dockerfile"), "w") as f:
|
252
|
+
content = dockerfile("agent", resource, agent)
|
253
|
+
f.write(content)
|
254
|
+
# write destination docker
|
255
|
+
with open(os.path.join(agent_dir, f"destination.txt"), "w") as f:
|
256
|
+
content = agent.spec.runtime.image
|
257
|
+
f.write(content)
|
254
258
|
for resource, function in functions:
|
255
259
|
# write deployment file
|
256
260
|
function_dir = os.path.join(functions_dir, function.metadata.name)
|
@@ -262,3 +266,7 @@ def generate_beamlit_deployment(directory: str):
|
|
262
266
|
with open(os.path.join(function_dir, f"Dockerfile"), "w") as f:
|
263
267
|
content = dockerfile("function", resource, function)
|
264
268
|
f.write(content)
|
269
|
+
# write destination docker
|
270
|
+
with open(os.path.join(function_dir, f"destination.txt"), "w") as f:
|
271
|
+
content = function.spec.runtime.image
|
272
|
+
f.write(content)
|
@@ -137,7 +137,7 @@ beamlit/common/secrets.py,sha256=sid81bOe3LflkMKDHwBsBs9nIju8bp5-v9qU9gkyNMc,212
|
|
137
137
|
beamlit/common/settings.py,sha256=2V06qodZHwPBqRDdpPyZhdCO7HeMjWr2rkEePOgmHqE,5936
|
138
138
|
beamlit/common/utils.py,sha256=jouz5igBvT37Xn_e94-foCHyQczVim-UzVcoIF6RWJ4,657
|
139
139
|
beamlit/deploy/__init__.py,sha256=GS7l7Jtm2yKs7iNLKcfjYO-rAhUzggQ3xiYSf3oxLBY,91
|
140
|
-
beamlit/deploy/deploy.py,sha256=
|
140
|
+
beamlit/deploy/deploy.py,sha256=AbQxSVGAPbwBn4wKPiMEF5GjtGa8q4u3DBuhnYdz4GI,9706
|
141
141
|
beamlit/deploy/format.py,sha256=78tOoeNPJ8969AhQTeFlIwZgQ3un8gmTSMmrYbRQSds,1818
|
142
142
|
beamlit/deploy/parser.py,sha256=Ga0poCZkoRnuTw082QnTcNGCBJncoRAnVsn8-1FsaJE,6907
|
143
143
|
beamlit/functions/__init__.py,sha256=_RPG1Bfg54JGdIPnViAU6n9zD7E1cDNsdXi8oYGskzE,138
|
@@ -256,6 +256,6 @@ beamlit/serve/app.py,sha256=k9THiOqcPs4lcQQhZaucLcboXCR_5AKP9AFCMNRbdPI,3559
|
|
256
256
|
beamlit/serve/middlewares/__init__.py,sha256=1dVmnOmhAQWvWktqHkKSIX-YoF6fmMU8xkUQuhg_rJU,148
|
257
257
|
beamlit/serve/middlewares/accesslog.py,sha256=Mu4T4_9OvHybjA0ApzZFpgi2C8f3X1NbUk-76v634XM,631
|
258
258
|
beamlit/serve/middlewares/processtime.py,sha256=lDAaIasZ4bwvN-HKHvZpaD9r-yrkVNZYx4abvbjbrCg,411
|
259
|
-
beamlit-0.0.
|
260
|
-
beamlit-0.0.
|
261
|
-
beamlit-0.0.
|
259
|
+
beamlit-0.0.30rc36.dist-info/METADATA,sha256=6OtNFDOop4RWU3ATSYjTG9g94ygVfovGM9Ef6HhQejU,2405
|
260
|
+
beamlit-0.0.30rc36.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
261
|
+
beamlit-0.0.30rc36.dist-info/RECORD,,
|
File without changes
|