[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", "gitpython>=3.1.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", ] [project.scripts] llm-codegen = "llm_codegen.cli:app" [tool.llm-codegen] check_tools = ["pytest", "pylint", "mypy", "black"] max_retries = 3 dangerous_commands = ["rm", "sudo", "chmod", "dd"] max_concurrent_requests = 5 # 新增:指定包所在目录 [tool.setuptools.packages.find] where = ["src"]