forked from diffpy/diffpy.srmise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversion.py
31 lines (25 loc) · 917 Bytes
/
version.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python
##############################################################################
#
# SrMise by Luke Granlund
# (c) 2014 trustees of the Michigan State University
# (c) 2024 trustees of Columia University in the City of New York
# All rights reserved.
#
# File coded by: Luke Granlund
#
# See LICENSE.txt for license information.
#
##############################################################################
"""Definition of __version__, __date__, __gitsha__.
"""
from ConfigParser import SafeConfigParser
from pkg_resources import resource_stream
# obtain version information from the version.cfg file
cp = SafeConfigParser()
cp.readfp(resource_stream(__name__, "version.cfg"))
__version__ = cp.get("DEFAULT", "version")
__date__ = cp.get("DEFAULT", "date")
__gitsha__ = cp.get("DEFAULT", "commit")
del cp
# End of file