diff --git a/freqtrade/__init__.py b/freqtrade/__init__.py index 5ccc2ff3c..175b689f9 100644 --- a/freqtrade/__init__.py +++ b/freqtrade/__init__.py @@ -1,5 +1,15 @@ """ FreqTrade bot """ -__version__ = '2019.7-dev' +__version__ = 'develop' + +if __version__ == 'develop': + + try: + import subprocess + __version__ = str(subprocess.check_output( + ["git", "describe"], stderr=subprocess.DEVNULL).rstrip()) + except Exception: + # git not available, ignore + pass class DependencyException(Exception):