aboutsummaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorPhilip Paquette <pcpaquette@gmail.com>2019-09-11 17:52:41 -0400
committerPhilip Paquette <pcpaquette@gmail.com>2019-09-14 18:18:53 -0400
commit3b9406f74f265e1ce13967e0be6117269569018e (patch)
tree5026fdf8f44910f8ca246e6c3fc5cda3a5cd5767 /docs/conf.py
parent79ad3cf219a1a7ac7547f1bbc0e4b28fd30b2e0f (diff)
Added 'version.py' so sphinx and pip can get the version from the same place
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 10f8f40..3ed18df 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -13,7 +13,9 @@
import os
import sys
sys.path.insert(0, os.path.abspath('..'))
+sys.path.insert(0, os.path.join(os.path.abspath('..'), 'diplomacy'))
from datetime import datetime
+from version import PACKAGE_VERSION
# -- Project information -----------------------------------------------------
@@ -22,8 +24,8 @@ author = 'Philip Paquette'
copyright = str(datetime.now().year) + ' - ' + author
# The full version, including alpha/beta/rc tags
-version = 'latest'
-release = 'latest'
+version = PACKAGE_VERSION
+release = PACKAGE_VERSION
# -- General configuration ---------------------------------------------------
autodoc_member_order = 'bysource'