Skip to content
Snippets Groups Projects
Commit 2d814c58 authored by Stefano Borini's avatar Stefano Borini
Browse files

Generate and use __version__.py

parent ea2e6583
No related branches found
No related tags found
1 merge request!58Release 0.1.0.dev2
......@@ -2,4 +2,4 @@ __pycache__
*.egg-info
doc/build/
*.pyc
force_bdss/__version__.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']
......
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 = '{}'".format(VERSION))
write_version_py()
setup(
name="force_bdss",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment