| Home | Trees | Indices | Help |
|
|---|
|
|
1 #!/usr/bin/env python
2 ##############################################################################
3 #
4 # pdffit2 by DANSE Diffraction group
5 # Simon J. L. Billinge
6 # (c) 2008 trustees of the Michigan State University.
7 # All rights reserved.
8 #
9 # File coded by: Pavol Juhas
10 #
11 # See AUTHORS.txt for a list of people who contributed.
12 # See LICENSE.txt for license information.
13 #
14 ##############################################################################
15
16
17 """Definition of __version__, __date__, __gitsha__.
18 """
19
20 from pkg_resources import resource_filename
21 from ConfigParser import RawConfigParser
22
23 # obtain version information from the version.cfg file
24 cp = RawConfigParser(dict(version='', date='', commit='', timestamp=0))
25 if not cp.read(resource_filename(__name__, 'version.cfg')):
26 from warnings import warn
27 warn('Package metadata not found, execute "./setup.py egg_info".')
28
29 __version__ = cp.get('DEFAULT', 'version')
30 __date__ = cp.get('DEFAULT', 'date')
31 __gitsha__ = cp.get('DEFAULT', 'commit')
32 __timestamp__ = cp.getint('DEFAULT', 'timestamp')
33
34 del cp
35
36 # End of file
37
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Feb 23 16:46:55 2016 | http://epydoc.sourceforge.net |