This repository was archived by the owner on Jun 3, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathpyproject.toml
More file actions
208 lines (181 loc) · 4.7 KB
/
pyproject.toml
File metadata and controls
208 lines (181 loc) · 4.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "strands-agents-builder"
dynamic = ["version"]
description = "An example Strands agent demonstrating streaming, tool use, and interactivity from your terminal. This agent builder can help you to build your own agents and tools."
readme = "README.md"
requires-python = ">=3.10"
license = {text = "Apache-2.0"}
authors = [
{name = "AWS", email = "opensource@amazon.com"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"strands-agents[ollama]>=1.0.0",
"strands-agents-tools>=0.1.0,<1.0.0",
"rich>=14.0.0,<15.0.0",
"prompt_toolkit>=3.0.51,<4.0.0",
"halo>=0.0.31,<1.0.0"
]
[project.scripts]
strands = "strands_agents_builder.strands:main"
[tool.hatch.metadata]
allow-direct-references = true
[project.urls]
Homepage = "https://github.com/strands-agents/agent-builder"
"Bug Tracker" = "https://github.com/strands-agents/agent-builder/issues"
Documentation = "https://strandsagents.com"
[project.optional-dependencies]
dev = [
"commitizen>=4.4.0,<5.0.0",
"hatch>=1.0.0,<2.0.0",
"mypy>=1.0.0,<2.0.0",
"pre-commit>=3.2.0,<4.2.0",
"pytest>=7.0.0",
"ruff>=0.4.4,<1.0.0",
]
docs = [
"sphinx>=5.0.0,<6.0.0",
"sphinx-rtd-theme>=1.0.0,<2.0.0",
"sphinx-autodoc-typehints>=1.12.0,<2.0.0",
]
test = [
"moto>=5.1.0,<6.0.0",
"pytest>=8.1.0,<9.0.0",
"pytest-cov>=4.1.0,<5.0.0",
"pytest-xdist>=3.0.0,<4.0.0",
]
[tool.hatch.build]
packages = ["src/strands_agents_builder", "tools"]
[tool.hatch.envs.hatch-static-analysis]
dependencies = [
"strands-agents[ollama]",
"strands-agents-tools",
"mypy>=1.0.0,<2.0.0",
"ruff>=0.4.4,<1.0.0",
]
[tool.hatch.envs.hatch-static-analysis.scripts]
format-check = [
"ruff format --check"
]
format-fix = [
"ruff format"
]
lint-check = [
"ruff check",
"mypy -p src -p tools"
]
lint-fix = [
"ruff check --fix"
]
[tool.hatch.envs.hatch-test]
extra-dependencies = [
"moto>=5.1.0",
"pytest>=7.0.0",
"pytest-asyncio>=0.26.0",
"pytest-cov>=4.1.0",
"pytest-xdist>=3.0.0",
]
extra-args = [
"-n",
"auto",
'-vv',
'--no-header'
]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.13", "3.12", "3.11", "3.10"]
[tool.hatch.envs.hatch-test.scripts]
run = [
"pytest{env:HATCH_TEST_ARGS:} {args}"
]
run-cov = [
"pytest{env:HATCH_TEST_ARGS:} --cov --cov-config=pyproject.toml {args}"
]
cov-combine = []
cov-report = []
[tool.hatch.envs.default.scripts]
list = [
"echo 'Scripts commands available for default env:'; hatch env show --json | jq --raw-output '.default.scripts | keys[]'"
]
format = [
"hatch fmt --formatter",
]
test-format = [
"hatch fmt --formatter --check",
]
lint = [
"hatch fmt --linter"
]
test-lint = [
"hatch fmt --linter --check"
]
test = [
"hatch test --cover --cov-report term --cov-report html --cov-report xml {args}"
]
test-integ = [
"hatch test tests_integ {args}"
]
[tool.pytest.ini_options]
testpaths = [
"tests"
]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
follow_untyped_imports = true
ignore_missing_imports = false
[tool.ruff]
line-length = 120
include = ["src/**/*.py", "tests/**/*.py", "tools/**/*.py","tests_integ/**/*.py"]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
]
[tool.coverage.run]
branch = true
source = ["src", "tools"]
[tool.coverage.report]
show_missing = true
[tool.coverage.html]
directory = "build/coverage/html"
[tool.coverage.xml]
output = "build/coverage/coverage.xml"
[tool.hatch.version]
# Tells Hatch to use your version control system (git) to determine the version.
source = "vcs"
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
bump_message = "chore(release): bump version $current_version -> $new_version"
version_files = [
"pyproject.toml:version",
]
update_changelog_on_bump = true