version.py 357 Bytes
Newer Older
1
2
3
4
# Store the version here so:
# 1) we don't load dependencies by storing it in __init__.py
# 2) we can import it in setup.py for the same reason
# 3) we can import it into your module module
Martin Reinecke's avatar
fix  
Martin Reinecke committed
5

Philipp Arras's avatar
Philipp Arras committed
6
__version__ = '4.1.0'
Philipp Arras's avatar
Philipp Arras committed
7

Martin Reinecke's avatar
fix  
Martin Reinecke committed
8
9
10

def gitversion():
    try:
Martin Reinecke's avatar
tweaks  
Martin Reinecke committed
11
        from .git_version import gitversion
Martin Reinecke's avatar
fix  
Martin Reinecke committed
12
13
    except ImportError:
        return "unknown"
Martin Reinecke's avatar
tweaks  
Martin Reinecke committed
14
    return gitversion