Skip to content

Commit a1f0318

Browse files
committed
fix: add package marker comment to __init__.py template files
The 12 __init__.py files in src/assets/python/ were 0-1 bytes (empty or single newline), which made them fragile through the Handlebars rendering pipeline and npm tarball distribution. This caused "works in Docker, breaks locally" issues for editable installs, pytest, and mypy. Replace empty content with a `# Package marker` comment so the files survive template rendering and packaging reliably.
1 parent be9b99b commit a1f0318

13 files changed

Lines changed: 27 additions & 23 deletions

File tree

src/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ if __name__ == "__main__":
934934
`;
935935
936936
exports[`Assets Directory Snapshots > Python framework assets > python/python/autogen/base/mcp_client/__init__.py should match snapshot 1`] = `
937-
"
937+
"# Package marker
938938
"
939939
`;
940940
@@ -961,7 +961,7 @@ async def get_streamable_http_mcp_tools() -> List[StreamableHttpMcpToolAdapter]:
961961
`;
962962
963963
exports[`Assets Directory Snapshots > Python framework assets > python/python/autogen/base/model/__init__.py should match snapshot 1`] = `
964-
"
964+
"# Package marker
965965
"
966966
`;
967967
@@ -1293,7 +1293,7 @@ if __name__ == "__main__":
12931293
`;
12941294
12951295
exports[`Assets Directory Snapshots > Python framework assets > python/python/crewai/base/model/__init__.py should match snapshot 1`] = `
1296-
"
1296+
"# Package marker
12971297
"
12981298
`;
12991299
@@ -1653,7 +1653,7 @@ if __name__ == "__main__":
16531653
`;
16541654
16551655
exports[`Assets Directory Snapshots > Python framework assets > python/python/googleadk/base/mcp_client/__init__.py should match snapshot 1`] = `
1656-
"
1656+
"# Package marker
16571657
"
16581658
`;
16591659
@@ -1677,7 +1677,7 @@ def get_streamable_http_mcp_client() -> MCPToolset:
16771677
`;
16781678
16791679
exports[`Assets Directory Snapshots > Python framework assets > python/python/googleadk/base/model/__init__.py should match snapshot 1`] = `
1680-
"
1680+
"# Package marker
16811681
"
16821682
`;
16831683
@@ -1901,7 +1901,7 @@ if __name__ == "__main__":
19011901
`;
19021902
19031903
exports[`Assets Directory Snapshots > Python framework assets > python/python/langchain_langgraph/base/mcp_client/__init__.py should match snapshot 1`] = `
1904-
"
1904+
"# Package marker
19051905
"
19061906
`;
19071907
@@ -1929,7 +1929,7 @@ def get_streamable_http_mcp_client() -> MultiServerMCPClient:
19291929
`;
19301930
19311931
exports[`Assets Directory Snapshots > Python framework assets > python/python/langchain_langgraph/base/model/__init__.py should match snapshot 1`] = `
1932-
"
1932+
"# Package marker
19331933
"
19341934
`;
19351935
@@ -2256,7 +2256,7 @@ if __name__ == "__main__":
22562256
`;
22572257
22582258
exports[`Assets Directory Snapshots > Python framework assets > python/python/openaiagents/base/mcp_client/__init__.py should match snapshot 1`] = `
2259-
"
2259+
"# Package marker
22602260
"
22612261
`;
22622262
@@ -2279,7 +2279,7 @@ def get_streamable_http_mcp_client() -> MCPServerStreamableHttp:
22792279
`;
22802280
22812281
exports[`Assets Directory Snapshots > Python framework assets > python/python/openaiagents/base/model/__init__.py should match snapshot 1`] = `
2282-
"
2282+
"# Package marker
22832283
"
22842284
`;
22852285
@@ -2524,7 +2524,7 @@ if __name__ == "__main__":
25242524
`;
25252525
25262526
exports[`Assets Directory Snapshots > Python framework assets > python/python/strands/base/mcp_client/__init__.py should match snapshot 1`] = `
2527-
"
2527+
"# Package marker
25282528
"
25292529
`;
25302530
@@ -2544,7 +2544,7 @@ def get_streamable_http_mcp_client() -> MCPClient:
25442544
`;
25452545
25462546
exports[`Assets Directory Snapshots > Python framework assets > python/python/strands/base/model/__init__.py should match snapshot 1`] = `
2547-
"
2547+
"# Package marker
25482548
"
25492549
`;
25502550
@@ -2701,7 +2701,10 @@ packages = ["."]
27012701
"
27022702
`;
27032703
2704-
exports[`Assets Directory Snapshots > Python framework assets > python/python/strands/capabilities/memory/__init__.py should match snapshot 1`] = `""`;
2704+
exports[`Assets Directory Snapshots > Python framework assets > python/python/strands/capabilities/memory/__init__.py should match snapshot 1`] = `
2705+
"# Package marker
2706+
"
2707+
`;
27052708
27062709
exports[`Assets Directory Snapshots > Python framework assets > python/python/strands/capabilities/memory/session.py should match snapshot 1`] = `
27072710
"import os
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
# Package marker
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
# Package marker
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
# Package marker
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
# Package marker
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
# Package marker
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
# Package marker
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
# Package marker
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
# Package marker
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
# Package marker

0 commit comments

Comments
 (0)