Merge pull request #2197 from freqtrade/implement_version_dev

Apply dynamic versioning to develop
This commit is contained in:
hroff-1902 2019-09-24 21:20:49 +03:00 committed by GitHub
commit a75fb3d4be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,16 @@
""" FreqTrade bot """ """ FreqTrade bot """
__version__ = '2019.7-dev' __version__ = 'develop'
if __version__ == 'develop':
try:
import subprocess
__version__ = 'develop-' + subprocess.check_output(
['git', 'log', '--format="%h"', '-n 1'],
stderr=subprocess.DEVNULL).decode("utf-8").rstrip().strip('"')
except Exception:
# git not available, ignore
pass
class DependencyException(Exception): class DependencyException(Exception):