chore: 项目骨架与 pyproject 打包(src 布局 + pytest 就绪)
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=69"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "genesis"
|
||||
version = "0.1.0"
|
||||
description = "概要设计书自动生成 Agent"
|
||||
requires-python = ">=3.11"
|
||||
dependencies = [
|
||||
"pydantic>=2.13",
|
||||
"pydantic-settings>=2.15",
|
||||
"pyyaml>=6.0",
|
||||
"openpyxl>=3.1",
|
||||
"python-docx>=1.0",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = ["pytest>=8.0"]
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["src"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
@@ -0,0 +1,2 @@
|
||||
"""Genesis:概要设计书自动生成 Agent。"""
|
||||
__version__ = "0.1.0"
|
||||
@@ -0,0 +1,5 @@
|
||||
import genesis
|
||||
|
||||
|
||||
def test_package_importable():
|
||||
assert genesis.__version__ == "0.1.0"
|
||||
Reference in New Issue
Block a user