Apply dynamic versioning to develop

This commit is contained in:
Matthias 2019-08-28 07:05:48 +02:00
parent c6bb68bd30
commit c38f3a2b9a

View File

@ -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):