Skip to content

Commit

Permalink
Update doc version (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jdu authored Jan 12, 2022
1 parent ecb07a5 commit b8f4bbb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
import os
import sys

sys.path.insert(0, os.path.abspath("../../src"))


# -- Project information -----------------------------------------------------

Expand All @@ -23,7 +21,13 @@
author = "Snowflake Inc."

# The full version, including alpha/beta/rc tags
release = "0.2.0"
SRC_DIR = "../../src"
sys.path.insert(0, os.path.abspath(SRC_DIR))
SNOWPARK_SRC_DIR = os.path.join(SRC_DIR, "snowflake", "snowpark")
VERSION = (1, 1, 1, None) # Default, needed so code will compile
with open(os.path.join(SNOWPARK_SRC_DIR, "version.py"), encoding="utf-8") as f:
exec(f.read())
release = ".".join([str(v) for v in VERSION if v is not None])


# -- General configuration ---------------------------------------------------
Expand Down

0 comments on commit b8f4bbb

Please sign in to comment.