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

Fixes incorrect creation of version.py

parent c6266484
No related branches found
No related tags found
1 merge request!59Fixes incorrect creation of version.py
......@@ -2,4 +2,4 @@ __pycache__
*.egg-info
doc/build/
*.pyc
force_bdss/__version__.py
force_bdss/version.py
......@@ -10,7 +10,7 @@ sys.path.insert(0, os.path.join(
os.path.dirname(os.path.abspath(__file__)), "..", "..")
)
from force_bdss.__version__ import VERSION as RELEASE
from force_bdss.version import __version__ as RELEASE
MOCK_MODULES=[]
......
import os
from setuptools import setup, find_packages
VERSION = "0.1.0.dev2"
# Read description
with open('README.rst', 'r') as readme:
README_TEXT = readme.read()
def write_version_py():
with open("force_bdss/__version__.py", "w") as f:
f.write("VERSION = '{}'\n".format(VERSION))
filename = os.path.join(
os.path.dirname(__file__),
'force_bdss',
'version.py')
ver = "__version__ = '{}'\n"
with open(filename, 'w') as fh:
fh.write(ver.format(VERSION))
write_version_py()
......
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