From c38f3a2b9a89fe2e6c76a8e098aa4d11b31c5614 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 28 Aug 2019 07:05:48 +0200 Subject: [PATCH] Apply dynamic versioning to develop --- freqtrade/__init__.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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):