-
Stefan Reck authored
- orcasong is now called legacy - orcasong_2 is now called orcasong Other changes: - Added one line 2017 bin edges to repo - added unittests - added versioning for files created with orcasong - Expanded doc - Added check to calib if calib has been done to file already
Stefan Reck authored- orcasong is now called legacy - orcasong_2 is now called orcasong Other changes: - Added one line 2017 bin edges to repo - added unittests - added versioning for files created with orcasong - Expanded doc - Added check to calib if calib has been done to file already
__version__.py 680 B
#!/usr/bin/env python
# Filename: __version__.py
# pylint: disable=C0103
"""
Pep 386 compliant version info.
(major, minor, micro, alpha/beta/rc/final, #)
(1, 1, 2, 'alpha', 0) => "1.1.2.dev"
(1, 2, 0, 'beta', 2) => "1.2b2"
"""
from __future__ import absolute_import, print_function, division
from os.path import dirname, realpath, join
from setuptools_scm import get_version
version = 'unknown version'
try:
version = get_version(root='..', relative_to=__file__)
except LookupError:
try:
with open(join(realpath(dirname(__file__)), "version.txt"),
'r') as fobj:
version = fobj.read()
except IOError:
pass