Merge pull request #2197 from freqtrade/implement_version_dev
Apply dynamic versioning to develop
This commit is contained in:
commit
a75fb3d4be
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user