diff --git a/docs/conf.py b/docs/conf.py index c17616b..4755f64 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,6 +12,7 @@ # import os from os.path import relpath, dirname +from tmval.constants import BUILD_VERSION import sys sys.path.insert(0, os.path.abspath('..')) @@ -19,7 +20,7 @@ project = 'TmVal Documentation' copyright = '2020, Gene Dan, FCAS, MAAA, CSPA' -release = 'v0.0.9' +release = 'v' + BUILD_VERSION author = 'Gene Dan, FCAS, MAAA, CSPA' diff --git a/setup.py b/setup.py index afe48c6..bd4f98e 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,13 @@ import setuptools +from tmval.constants import BUILD_VERSION + with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="tmval", - version="0.0.9", + version=BUILD_VERSION, author="Gene Dan", author_email="genedan@gmail.com", description="Time Value of Money", diff --git a/tmval/constants.py b/tmval/constants.py index fde3bf0..50c670d 100644 --- a/tmval/constants.py +++ b/tmval/constants.py @@ -1,3 +1,5 @@ +BUILD_VERSION = '0.0.10' + FORMAL_PATTERNS = { 'interest': 'Effective Interest', 'i': 'Effective Interest',