chore: 项目骨架与 pyproject 打包(src 布局 + pytest 就绪)

This commit is contained in:
lhl
2026-08-08 15:28:52 +08:00
parent b4587aac8e
commit e865a78701
4 changed files with 32 additions and 0 deletions
+25
View File
@@ -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"]
+2
View File
@@ -0,0 +1,2 @@
"""Genesis:概要设计书自动生成 Agent。"""
__version__ = "0.1.0"
View File
+5
View File
@@ -0,0 +1,5 @@
import genesis
def test_package_importable():
assert genesis.__version__ == "0.1.0"