diff --git a/src/snowflake/cli/_plugins/streamlit/streamlit_entity.py b/src/snowflake/cli/_plugins/streamlit/streamlit_entity.py index 8a364c5517..ce01bef368 100644 --- a/src/snowflake/cli/_plugins/streamlit/streamlit_entity.py +++ b/src/snowflake/cli/_plugins/streamlit/streamlit_entity.py @@ -33,7 +33,7 @@ def project_root(self) -> Path: @property def deploy_root(self) -> Path: - return self.project_root / "output" / "deploy" + return self.project_root / "output" / "bundle" / "streamlit" def action_bundle( self, @@ -47,7 +47,9 @@ def bundle(self, bundle_root=None): self.project_root, bundle_root or self.deploy_root, [ - PathMapping(src=str(artifact)) + PathMapping( + src=artifact.src, dest=artifact.dest, processors=artifact.processors + ) for artifact in self._entity_model.artifacts ], ) diff --git a/tests/streamlit/test_streamlit_entity.py b/tests/streamlit/test_streamlit_entity.py index 315e34b8e5..d1ba41ef2f 100644 --- a/tests/streamlit/test_streamlit_entity.py +++ b/tests/streamlit/test_streamlit_entity.py @@ -41,7 +41,7 @@ def test_nativeapp_children_interface(temp_dir): sl = StreamlitEntity(model, ctx) sl.bundle() - bundle_artifact = Path(temp_dir) / "output" / "deploy" / main_file + bundle_artifact = Path(temp_dir) / "output" / "bundle" / "streamlit" / main_file deploy_sql_str = sl.get_deploy_sql() grant_sql_str = sl.get_usage_grant_sql(app_role="app_role")