Skip to content
Snippets Groups Projects
Commit e6bbed7a authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Improve versioning

parent 1f84ad40
No related branches found
No related tags found
No related merge requests found
from .__version__ import version
__version__ = version
from .aanet import AanetReader
from .jpp import JppReader
#!/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:
with open(join(realpath(dirname(__file__)), "version.txt"), 'r') as fobj:
version = fobj.read()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment