beamlit 0.0.34rc70__py3-none-any.whl → 0.0.34rc71__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
@@ -35,7 +35,7 @@ def set_default_values(resource: Resource, deployment: Agent | Function):
35
35
  deployment.metadata.workspace = settings.workspace
36
36
  deployment.metadata.environment = settings.environment
37
37
  if not deployment.metadata.name:
38
- deployment.metadata.name = resource.name
38
+ deployment.metadata.name = slugify(resource.name)
39
39
  if not deployment.metadata.display_name:
40
40
  deployment.metadata.display_name = deployment.metadata.name
41
41
  if not deployment.spec.description:
@@ -117,7 +117,6 @@ def get_agent_yaml(
117
117
  agent.spec.functions = [slugify(function.metadata.name) for (_, function) in functions]
118
118
  agent.metadata.labels = agent.metadata.labels and MetadataLabels.from_dict(agent.metadata.labels) or MetadataLabels()
119
119
  agent.metadata.labels["x-beamlit-auto-generated"] = "true"
120
- agent.metadata.name = slugify(agent.metadata.name)
121
120
  agent_yaml = yaml.dump(agent.to_dict())
122
121
  template = f"""
123
122
  apiVersion: beamlit.com/v1alpha1
@@ -140,7 +139,6 @@ def get_function_yaml(function: Function, settings: Settings, client: Authentica
140
139
  """
141
140
  function.metadata.labels = function.metadata.labels and MetadataLabels.from_dict(function.metadata.labels) or MetadataLabels()
142
141
  function.metadata.labels["x-beamlit-auto-generated"] = "true"
143
- function.metadata.name = slugify(function.metadata.name)
144
142
  function_yaml = yaml.dump(function.to_dict())
145
143
  return f"""
146
144
  apiVersion: beamlit.com/v1alpha1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beamlit
3
- Version: 0.0.34rc70
3
+ Version: 0.0.34rc71
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/settings.py,sha256=OL1pZLB3BgN7QPCz9VR7gjYb-LoYpelilS7rU7FubCE,39
137
137
  beamlit/common/slugify.py,sha256=nR29r37IdWS2i44ZC6ZsXRgqKPYmvMGtFQ7BuIQUTlc,90
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=ApJzqhbxlAusDYog_Oou06Bq9otEYrPxQi3mJv8I2_g,10373
140
+ beamlit/deploy/deploy.py,sha256=gGUEyl3Bddgx1Khvk8X9LFPCbHD74ouqTvr917cyzHU,10266
141
141
  beamlit/deploy/format.py,sha256=U6UZEFAYLnGJJ7O2YmSdlUUFhnWNGAv6NZ-DW4KTgvI,2049
142
142
  beamlit/deploy/parser.py,sha256=Ga0poCZkoRnuTw082QnTcNGCBJncoRAnVsn8-1FsaJE,6907
143
143
  beamlit/functions/__init__.py,sha256=NcQPZZNfWhAJ1T1F6Xn21LFPMbZ7aMR2Sve3uZOkBCQ,170
@@ -263,6 +263,6 @@ beamlit/serve/app.py,sha256=_aG2UVQ3Y85rUW3ehu9TlzLnowkfh54IIz558ftqOMw,3638
263
263
  beamlit/serve/middlewares/__init__.py,sha256=1dVmnOmhAQWvWktqHkKSIX-YoF6fmMU8xkUQuhg_rJU,148
264
264
  beamlit/serve/middlewares/accesslog.py,sha256=Mu4T4_9OvHybjA0ApzZFpgi2C8f3X1NbUk-76v634XM,631
265
265
  beamlit/serve/middlewares/processtime.py,sha256=lDAaIasZ4bwvN-HKHvZpaD9r-yrkVNZYx4abvbjbrCg,411
266
- beamlit-0.0.34rc70.dist-info/METADATA,sha256=-v5r-K-YwSyFoGHxch2KshO3t7c67gQ0U5IU1XV6q1c,2412
267
- beamlit-0.0.34rc70.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
268
- beamlit-0.0.34rc70.dist-info/RECORD,,
266
+ beamlit-0.0.34rc71.dist-info/METADATA,sha256=alwj6t1Etlg6urQNTr9HS8FJLy_mVLY_NL4oqxoPKbU,2412
267
+ beamlit-0.0.34rc71.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
268
+ beamlit-0.0.34rc71.dist-info/RECORD,,