From 27493f34e87b2b349d8694303107de70d6025a1b Mon Sep 17 00:00:00 2001 From: nanjiangwill Date: Thu, 26 Sep 2024 11:45:58 -0400 Subject: [PATCH 1/4] add agent to pypi --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4ee012e..23a528c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ dependencies = [ scripts = { commit0 = "commit0.__main__:main", agent = "agent.__main__:main" } [tool.pyright] -include = ["**/commit0"] +include = ["**/commit0", "**/agent"] ignore = ["**/docs", "**/logs", "**/repos"] venvPath = "." venv = ".venv" From a7ac60469377a58fb72d1748f878002032870ebf Mon Sep 17 00:00:00 2001 From: nanjiangwill Date: Thu, 26 Sep 2024 11:50:24 -0400 Subject: [PATCH 2/4] add agent to pypi --- pyproject.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 23a528c..3bd4fe8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,10 +22,13 @@ dependencies = [ "gitpython>=3.1.43", "pytest>=8.3.3", ] -scripts = { commit0 = "commit0.__main__:main", agent = "agent.__main__:main" } + +[project.scripts] +commit0 = "commit0.__main__:main" +agent = "agent.__main__:main" [tool.pyright] -include = ["**/commit0", "**/agent"] +include = ["**/commit0"] ignore = ["**/docs", "**/logs", "**/repos"] venvPath = "." venv = ".venv" From df24f487177c38ad56f6b489d593199c7edad750 Mon Sep 17 00:00:00 2001 From: nanjiangwill Date: Thu, 26 Sep 2024 11:53:26 -0400 Subject: [PATCH 3/4] add agent to pypi --- pyproject.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3bd4fe8..4b8ddf5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,10 +25,15 @@ dependencies = [ [project.scripts] commit0 = "commit0.__main__:main" -agent = "agent.__main__:main" + +[tool.hatch.build.targets.wheel] +packages = ["commit0", "agent"] + +[project.optional-dependencies] +agent = [] [tool.pyright] -include = ["**/commit0"] +include = ["**/commit0", "**/agent"] ignore = ["**/docs", "**/logs", "**/repos"] venvPath = "." venv = ".venv" From 7f36ff6d21e24e5bbed7d1d4906143a5bfca6419 Mon Sep 17 00:00:00 2001 From: nanjiangwill Date: Thu, 26 Sep 2024 11:54:52 -0400 Subject: [PATCH 4/4] add agent to pypi --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 4b8ddf5..a8404fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,6 +25,7 @@ dependencies = [ [project.scripts] commit0 = "commit0.__main__:main" +agent = "agent.__main__:main" [tool.hatch.build.targets.wheel] packages = ["commit0", "agent"]