From e865a787014d06a9d7207535b3bcfd3bd2bab93f Mon Sep 17 00:00:00 2001 From: lhl Date: Sat, 8 Aug 2026 15:28:52 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=A1=B9=E7=9B=AE=E9=AA=A8=E6=9E=B6?= =?UTF-8?q?=E4=B8=8E=20pyproject=20=E6=89=93=E5=8C=85=EF=BC=88src=20?= =?UTF-8?q?=E5=B8=83=E5=B1=80=20+=20pytest=20=E5=B0=B1=E7=BB=AA=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 25 +++++++++++++++++++++++++ src/genesis/__init__.py | 2 ++ tests/__init__.py | 0 tests/test_smoke.py | 5 +++++ 4 files changed, 32 insertions(+) create mode 100644 pyproject.toml create mode 100644 src/genesis/__init__.py create mode 100644 tests/__init__.py create mode 100644 tests/test_smoke.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..e0dcc13 --- /dev/null +++ b/pyproject.toml @@ -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"] \ No newline at end of file diff --git a/src/genesis/__init__.py b/src/genesis/__init__.py new file mode 100644 index 0000000..73152bc --- /dev/null +++ b/src/genesis/__init__.py @@ -0,0 +1,2 @@ +"""Genesis:概要设计书自动生成 Agent。""" +__version__ = "0.1.0" \ No newline at end of file diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_smoke.py b/tests/test_smoke.py new file mode 100644 index 0000000..48ac258 --- /dev/null +++ b/tests/test_smoke.py @@ -0,0 +1,5 @@ +import genesis + + +def test_package_importable(): + assert genesis.__version__ == "0.1.0" \ No newline at end of file