mirror of
https://github.com/Electrostatics/apbs.git
synced 2026-06-04 12:44:23 +08:00
Read the version from the VERSION file for apbs/_version.py
This commit is contained in:
@@ -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('_', '.')
|
||||
|
||||
Reference in New Issue
Block a user