diff --git a/sharktank/setup.py b/sharktank/setup.py index 8ffcf3984..d5e4a980f 100644 --- a/sharktank/setup.py +++ b/sharktank/setup.py @@ -13,12 +13,12 @@ THIS_DIR = Path(__file__).resolve().parent REPO_DIR = THIS_DIR.parent -VERSION_INFO_FILE = REPO_DIR / "version_info.json" +SETUPPY_DIR = os.path.realpath(os.path.dirname(__file__)) with open( os.path.join( - THIS_DIR, + SETUPPY_DIR, "README.md", ), "rt", @@ -26,6 +26,10 @@ README = f.read() +# Setup and get version information. +VERSION_INFO_FILE = os.path.join(SETUPPY_DIR, "version_info.json") + + def load_version_info(): with open(VERSION_INFO_FILE, "rt") as f: return json.load(f) diff --git a/version_info.json b/sharktank/version_info.json similarity index 100% rename from version_info.json rename to sharktank/version_info.json