59 lines
1.3 KiB
TOML
59 lines
1.3 KiB
TOML
[build-system]
|
||
requires = ["setuptools>=61.0", "wheel"]
|
||
build-backend = "setuptools.build_meta"
|
||
|
||
[project]
|
||
name = "llm-codegen"
|
||
version = "0.0.1"
|
||
description = "一个基于大语言模型的智能代码生成与维护工具,支持自动生成、增量添加功能和自动修复Bug。"
|
||
readme = "README.md"
|
||
requires-python = ">=3.9"
|
||
dependencies = [
|
||
"typer>=0.9.0",
|
||
"rich>=13.0.0",
|
||
"loguru>=0.7.0",
|
||
"openai>=1.0.0",
|
||
"pathspec>=1.0.4",
|
||
"python-patch>=0.0.1",
|
||
"unidiff2>=0.7.8",
|
||
"pendulum>=3.2.0",
|
||
]
|
||
authors = [
|
||
{name = "Your Name", email = "your.email@example.com"}
|
||
]
|
||
classifiers = [
|
||
"Programming Language :: Python :: 3",
|
||
"License :: OSI Approved :: MIT License",
|
||
"Operating System :: OS Independent",
|
||
]
|
||
|
||
[project.optional-dependencies]
|
||
dev = [
|
||
"pytest>=7.0.0",
|
||
"pylint>=3.0.0",
|
||
"mypy>=1.0.0",
|
||
"black>=23.0.0",
|
||
]
|
||
|
||
[[tool.uv.index]]
|
||
url="https://pypi.tuna.tsinghua.edu.cn/simple"
|
||
default=true
|
||
|
||
[project.scripts]
|
||
llm-codegen = "llm_codegen.cli:app"
|
||
|
||
[tool.llm-codegen]
|
||
check_tools = ["black"]
|
||
max_retries = 3
|
||
dangerous_commands = ["rm", "sudo", "chmod", "dd"]
|
||
max_concurrent_requests = 5
|
||
|
||
# 新增:指定包所在目录
|
||
[tool.setuptools.packages.find]
|
||
where = ["src"]
|
||
|
||
[dependency-groups]
|
||
dev = [
|
||
"pytest>=8.4.2",
|
||
]
|