mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-17 08:34:26 -04:00
read version from version file in conf.py
This commit is contained in:
parent
b805df1416
commit
27fcb088af
1 changed files with 5 additions and 1 deletions
|
@ -16,11 +16,15 @@ sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
import django
|
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('../'))
|
||||||
sys.path.insert(0, os.path.abspath('.'))
|
sys.path.insert(0, os.path.abspath('.'))
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
|
||||||
django.setup()
|
django.setup()
|
||||||
|
|
||||||
|
VERSION = open(os.path.join(PYTHON_DIR, 'VERSION'), 'r').read().strip()
|
||||||
|
|
||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
|
||||||
project = 'ArchiveBox'
|
project = 'ArchiveBox'
|
||||||
|
@ -28,7 +32,7 @@ copyright = '2019, Nick Sweeting'
|
||||||
author = 'Nick Sweeting'
|
author = 'Nick Sweeting'
|
||||||
|
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
release = 'v0.4.0'
|
release = VERSION
|
||||||
|
|
||||||
|
|
||||||
# -- General configuration ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue