diff --git a/.gitignore b/.gitignore index cd6c60cb88592988944d923da8e803b2b5ef0cfe..9e227d1368a9be4695b63fc17e3d27a1c9fd79ee 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ __pycache__ *.egg-info doc/build/ *.pyc - +force_bdss/__version__.py diff --git a/doc/source/conf.py b/doc/source/conf.py index 289f4699b729bf603e2e8449e66939191a6991d9..7adfdcae47a1ff5cfad6a3bf79dc432f7a912bd1 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -9,7 +9,9 @@ import os sys.path.insert(0, os.path.join( os.path.dirname(os.path.abspath(__file__)), "..", "..") ) -print(sys.path) + +from force_bdss.__version__ import VERSION as RELEASE + MOCK_MODULES=[] def _warn_node(self, msg, node, **kwargs): @@ -58,8 +60,8 @@ source_suffix = '.rst' master_doc = 'index' project = u'FORCE' copyright = u'2017, FORCE Project' -version = '0.1.0' -release = '0.1.0.dev0' +version = ".".join(RELEASE.split(".")[0:3]) +release = RELEASE pygments_style = 'sphinx' html_theme = 'classic' html_static_path = ['_static'] diff --git a/setup.py b/setup.py index 9429bc9b5ec0fb1080280e1eedd00be192c07a95..98f56c68c6716fadf38b052ac117d4e6ab20212b 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,14 @@ from setuptools import setup, find_packages -VERSION = "0.1.0.dev1" +VERSION = "0.1.0.dev2" + + +def write_version_py(): + with open("force_bdss/__version__.py", "w") as f: + f.write("VERSION = '{}'\n".format(VERSION)) + + +write_version_py() setup( name="force_bdss",