Skip to content

Commit 7becb0c

Browse files
authored
fix: remove unused dependencies from Python template pyproject.toml files (#328)
1 parent f1c2f46 commit 7becb0c

File tree

7 files changed

+10
-22
lines changed

7 files changed

+10
-22
lines changed

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

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,6 @@ dependencies = [
10991099
"opentelemetry-exporter-otlp",
11001100
"bedrock-agentcore >= 1.0.3",
11011101
"botocore[crt] >= 1.35.0",
1102-
"python-dotenv >= 1.0.1",
11031102
"tiktoken",
11041103
{{#if (eq modelProvider "Bedrock")}}
11051104
"autogen-ext[anthropic] >= 0.7.5",
@@ -1422,7 +1421,6 @@ dependencies = [
14221421
"opentelemetry-exporter-otlp",
14231422
"bedrock-agentcore >= 1.0.3",
14241423
"botocore[crt] >= 1.35.0",
1425-
"python-dotenv >= 1.0.1",
14261424
{{#if (eq modelProvider "Bedrock")}}
14271425
"crewai[tools,bedrock] >= 1.3.0",
14281426
{{/if}}
@@ -1699,7 +1697,6 @@ dependencies = [
16991697
"google-adk >= 1.17.0",
17001698
"bedrock-agentcore >= 1.0.3",
17011699
"botocore[crt] >= 1.35.0",
1702-
"python-dotenv >= 1.0.1",
17031700
]
17041701
17051702
[tool.hatch.build.targets.wheel]
@@ -2023,7 +2020,6 @@ dependencies = [
20232020
"tiktoken == 0.11.0",
20242021
"bedrock-agentcore >= 1.0.3",
20252022
"botocore[crt] >= 1.35.0",
2026-
"python-dotenv >= 1.0.1",
20272023
{{#if (eq modelProvider "Bedrock")}}
20282024
"langchain-aws >= 1.0.0",
20292025
{{/if}}
@@ -2267,7 +2263,6 @@ dependencies = [
22672263
"openai-agents >= 0.4.2",
22682264
"bedrock-agentcore >= 1.0.3",
22692265
"botocore[crt] >= 1.35.0",
2270-
"python-dotenv >= 1.0.1",
22712266
]
22722267
22732268
[tool.hatch.build.targets.wheel]
@@ -2598,14 +2593,13 @@ description = "AgentCore Runtime Application using Strands SDK"
25982593
readme = "README.md"
25992594
requires-python = ">=3.10"
26002595
dependencies = [
2601-
"anthropic >= 0.30.0",
2602-
"aws-opentelemetry-distro",
2596+
{{#if (eq modelProvider "Anthropic")}}"anthropic >= 0.30.0",
2597+
{{/if}}"aws-opentelemetry-distro",
26032598
"bedrock-agentcore >= 1.0.3",
26042599
"botocore[crt] >= 1.35.0",
2605-
"google-genai >= 1.0.0",
2606-
"openai >= 1.0.0",
2607-
"python-dotenv >= 1.0.1",
2608-
"strands-agents >= 1.13.0",
2600+
{{#if (eq modelProvider "Gemini")}}"google-genai >= 1.0.0",
2601+
{{/if}}{{#if (eq modelProvider "OpenAI")}}"openai >= 1.0.0",
2602+
{{/if}}"strands-agents >= 1.13.0",
26092603
]
26102604
26112605
[tool.hatch.build.targets.wheel]

src/assets/python/autogen/base/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ dependencies = [
1515
"opentelemetry-exporter-otlp",
1616
"bedrock-agentcore >= 1.0.3",
1717
"botocore[crt] >= 1.35.0",
18-
"python-dotenv >= 1.0.1",
1918
"tiktoken",
2019
{{#if (eq modelProvider "Bedrock")}}
2120
"autogen-ext[anthropic] >= 0.7.5",

src/assets/python/crewai/base/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ dependencies = [
1313
"opentelemetry-exporter-otlp",
1414
"bedrock-agentcore >= 1.0.3",
1515
"botocore[crt] >= 1.35.0",
16-
"python-dotenv >= 1.0.1",
1716
{{#if (eq modelProvider "Bedrock")}}
1817
"crewai[tools,bedrock] >= 1.3.0",
1918
{{/if}}

src/assets/python/googleadk/base/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ dependencies = [
1414
"google-adk >= 1.17.0",
1515
"bedrock-agentcore >= 1.0.3",
1616
"botocore[crt] >= 1.35.0",
17-
"python-dotenv >= 1.0.1",
1817
]
1918

2019
[tool.hatch.build.targets.wheel]

src/assets/python/langchain_langgraph/base/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ dependencies = [
1818
"tiktoken == 0.11.0",
1919
"bedrock-agentcore >= 1.0.3",
2020
"botocore[crt] >= 1.35.0",
21-
"python-dotenv >= 1.0.1",
2221
{{#if (eq modelProvider "Bedrock")}}
2322
"langchain-aws >= 1.0.0",
2423
{{/if}}

src/assets/python/openaiagents/base/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ dependencies = [
1313
"openai-agents >= 0.4.2",
1414
"bedrock-agentcore >= 1.0.3",
1515
"botocore[crt] >= 1.35.0",
16-
"python-dotenv >= 1.0.1",
1716
]
1817

1918
[tool.hatch.build.targets.wheel]

src/assets/python/strands/base/pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ description = "AgentCore Runtime Application using Strands SDK"
99
readme = "README.md"
1010
requires-python = ">=3.10"
1111
dependencies = [
12-
"anthropic >= 0.30.0",
13-
"aws-opentelemetry-distro",
12+
{{#if (eq modelProvider "Anthropic")}}"anthropic >= 0.30.0",
13+
{{/if}}"aws-opentelemetry-distro",
1414
"bedrock-agentcore >= 1.0.3",
1515
"botocore[crt] >= 1.35.0",
16-
"google-genai >= 1.0.0",
17-
"openai >= 1.0.0",
18-
"python-dotenv >= 1.0.1",
19-
"strands-agents >= 1.13.0",
16+
{{#if (eq modelProvider "Gemini")}}"google-genai >= 1.0.0",
17+
{{/if}}{{#if (eq modelProvider "OpenAI")}}"openai >= 1.0.0",
18+
{{/if}}"strands-agents >= 1.13.0",
2019
]
2120

2221
[tool.hatch.build.targets.wheel]

0 commit comments

Comments
 (0)