read version from version file in conf.py

This commit is contained in:
Nick Sweeting 2019-04-27 21:09:32 -04:00
parent b805df1416
commit 27fcb088af

View file

@ -16,11 +16,15 @@ sys.path.insert(0, os.path.abspath('.'))
import django
PYTHON_DIR = os.path.abspath(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, os.path.abspath('../'))
sys.path.insert(0, os.path.abspath('.'))
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
django.setup()
VERSION = open(os.path.join(PYTHON_DIR, 'VERSION'), 'r').read().strip()
# -- Project information -----------------------------------------------------
project = 'ArchiveBox'
@ -28,7 +32,7 @@ copyright = '2019, Nick Sweeting'
author = 'Nick Sweeting'
# The full version, including alpha/beta/rc tags
release = 'v0.4.0'
release = VERSION
# -- General configuration ---------------------------------------------------