beamlit 0.0.30rc36__py3-none-any.whl → 0.0.31rc37__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
beamlit/deploy/deploy.py CHANGED
@@ -16,6 +16,9 @@ sys.path.insert(0, os.getcwd())
16
16
  sys.path.insert(0, os.path.join(os.getcwd(), "src"))
17
17
 
18
18
 
19
+ def slugify(name: str) -> str:
20
+ return name.lower().replace(" ", "-").replace("_", "-")
21
+
19
22
  def get_runtime_image(type: str, name: str) -> str:
20
23
  settings = get_settings()
21
24
  registry_url = settings.registry_url.replace("https://", "").replace("http://", "")
@@ -110,7 +113,7 @@ def get_agent_yaml(
110
113
  apiVersion: beamlit.com/v1alpha1
111
114
  kind: Agent
112
115
  metadata:
113
- name: {agent.metadata.name}
116
+ name: {slugify(agent.metadata.name)}
114
117
  displayName: {agent.metadata.display_name or agent.metadata.name}
115
118
  environment: {settings.environment}
116
119
  workspace: {settings.workspace}
@@ -144,7 +147,7 @@ def get_function_yaml(function: Function, settings: Settings) -> str:
144
147
  apiVersion: beamlit.com/v1alpha1
145
148
  kind: Function
146
149
  metadata:
147
- name: {function.metadata.name}
150
+ name: {slugify(function.metadata.name)}
148
151
  displayName: {function.metadata.display_name or function.metadata.name}
149
152
  environment: {settings.environment}
150
153
  spec:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beamlit
3
- Version: 0.0.30rc36
3
+ Version: 0.0.31rc37
4
4
  Summary: Add your description here
5
5
  Author-email: cploujoux <ch.ploujoux@gmail.com>
6
6
  Requires-Python: >=3.12
@@ -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=AbQxSVGAPbwBn4wKPiMEF5GjtGa8q4u3DBuhnYdz4GI,9706
140
+ beamlit/deploy/deploy.py,sha256=P8rD2w4ulwDHLDKj_fCftCsIuekfNDzHTH8PlTWHWv8,9816
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.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,,
259
+ beamlit-0.0.31rc37.dist-info/METADATA,sha256=zlb9V1NMER74FhHl7gE-tGOQUeAE6DdX3cghCq1x0yM,2405
260
+ beamlit-0.0.31rc37.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
261
+ beamlit-0.0.31rc37.dist-info/RECORD,,