Read the version from the VERSION file for apbs/_version.py

This commit is contained in:
Noah Oblath
2022-04-29 16:28:42 -07:00
parent e0c9c308a1
commit f333b9b22c

View File

@@ -5,4 +5,8 @@ Store the version here so:
* we can import it in setup.py for the same reason
* we can import it into your module
"""
__version__ = "3.4.1"
file = open('../VERSION', 'r')
lines = file.readlines()
verLine = [x for x in lines if x and not x.startswith('#')]
__version__ = verLine[0].strip().replace('_', '.')