diff --git a/docs/conf.py b/docs/conf.py index c9904dc31..c6757eda7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -7,11 +7,14 @@ # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information import toml +import os +import sys project = "DB-GPT" copyright = "2023, csunny" author = "csunny" +sys.path.insert(0, os.path.abspath("../")) with open("../pilot/VERSION") as f: version = f.read() diff --git a/pyproject.toml b/pyproject.toml index 6ff2e0df1..532c052b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,9 @@ ignore_missing_imports = "True" disallow_untyped_defs = "True" exclude = ["notebooks", "build", "examples"] +[tool.setuptools] +py-modules = [] + [tool.ruff] exclude = [ ".venv",