-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpyproject.toml
More file actions
189 lines (165 loc) · 4.5 KB
/
Copy pathpyproject.toml
File metadata and controls
189 lines (165 loc) · 4.5 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
[project]
name = "altk-evolve"
version = "1.1.3"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"arize-phoenix>=12.30.0",
"fastmcp",
"jinja2",
"litellm",
"pydantic",
"sentence-transformers",
"typer>=0.9.0",
"uvicorn",
]
[project.optional-dependencies]
build = ["uv"]
tracing = [
"openinference-instrumentation-openai",
"openinference-instrumentation-litellm",
"openinference-instrumentation-smolagents",
"openinference-instrumentation-openai-agents",
]
milvus = [
"pymilvus[milvus-lite]>=2.6.2; platform_machine != 'aarch64'",
"pymilvus>=2.6.2; platform_machine == 'aarch64'",
"milvus-lite>=2.5.1; platform_machine != 'aarch64'",
]
pgvector = [
"psycopg[binary]>=3.1",
"pgvector>=0.3",
]
examples = [
"altk-evolve[tracing]",
"smolagents",
"openai-agents",
"openai",
]
[project.scripts]
evolve = "altk_evolve.cli.cli:app"
evolve-mcp = "altk_evolve.frontend.mcp.__main__:main"
[dependency-groups]
dev = [
"anyio",
"detect-secrets",
"mypy",
"pgvector>=0.3",
"pre-commit",
"psycopg[binary]>=3.1",
"pytest",
"pytest-cov",
"pytest-retry",
"python-dotenv>=1.2.1",
"python-semantic-release",
"ruff",
"types-requests>=2.32.4.20260107",
]
docs = [
"mkdocs-material",
"mkdocs-jupyter",
"mkdocs-click",
"mkdocstrings[python]",
"griffe_inherited_docstrings",
"griffe-pydantic",
"mkdocs-awesome-nav",
"mkdocs-include-markdown-plugin>=7.1.8",
"mkdocs-enumerate-headings-plugin"
]
[tool.uv.sources]
detect-secrets = { git = "https://github.com/ibm/detect-secrets", branch="master"}
[tool.setuptools.packages.find]
where = ["."]
exclude = ["explorations*"]
include = ["altk_evolve*"]
[tool.setuptools.package-data]
altk_evolve = ["**/*.jinja2"]
[tool.uv]
package = true
[tool.pytest.ini_options]
addopts = "--ignore=explorations -m 'not llm and not e2e'"
markers = [
"e2e",
"unit",
"llm",
"platform_integrations"
]
anyio_mode = "auto"
[tool.ruff]
line-length = 140
indent-width = 4
# Generated example-wiki content (scripts the wiki builder emitted verbatim from
# trajectories) is exploration artifact, not project source — don't lint it.
extend-exclude = ["explorations/agent-wiki/wikis/"]
[tool.semantic_release]
allow_zero_version = true
major_on_zero = false
version_toml = ["pyproject.toml:project.version"]
version_variables = ["altk_evolve/__init__.py:__version__"]
commit_parser = "conventional"
build_command = '''
python -m pip install -e '.[build]'
uv lock --upgrade-package "$PACKAGE_NAME"
git add uv.lock
cp README.md README.md.bak
perl -i -pe "s|src=\"docs/|src=\"https://raw.githubusercontent.com/AgentToolkit/altk-evolve/v$NEW_VERSION/docs/|g" README.md
perl -i -pe "s|\]\(([A-Z_]*\.md)\)|](https://github.com/AgentToolkit/altk-evolve/blob/v$NEW_VERSION/\$1)|g" README.md
perl -i -pe "s|\]\(docs/([^)]*)\)|](https://github.com/AgentToolkit/altk-evolve/blob/v$NEW_VERSION/docs/\$1)|g" README.md
sed -i 's/^SCRIPT_VERSION="main"/SCRIPT_VERSION="v'"$NEW_VERSION"'"/' platform-integrations/install.sh
uv build
git checkout platform-integrations/install.sh
mv README.md.bak README.md
'''
tag_format = "v{version}"
commit_message = "chore: bump version to {version} [skip ci]"
[tool.semantic_release.commit_parser_options]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
parse_squash_commits = true
ignore_merge_commits = true
[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease_token = "rc"
prerelease = false
[tool.semantic_release.changelog]
exclude_commit_patterns = [
'''chore(?:\([^)]*?\))?: .+''',
'''ci(?:\([^)]*?\))?: .+''',
'''refactor(?:\([^)]*?\))?: .+''',
'''style(?:\([^)]*?\))?: .+''',
'''test(?:\([^)]*?\))?: .+''',
'''build\((?!deps\): .+)''',
'''Initial [Cc]ommit.*''',
]
[tool.semantic_release.changelog.default_templates]
changelog_file = "CHANGELOG.md"
output_format = "md"
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
explicit_package_bases = true
exclude = [
"build/",
"platform-integrations/",
"plugin-source/",
"examples/",
"explorations/agent-wiki/wikis/",
]
[[tool.mypy.overrides]]
module = [
"pymilvus.*",
"smolagents.*",
"milvus_lite.*",
"openinference.*",
"agents.*",
"pgvector.*",
"psycopg.*",
"entity_io.*",
"local_mcp_server",
"config",
"audit",
]
ignore_missing_imports = true