Apply dynamic versioning to develop
This commit is contained in:
parent
c6bb68bd30
commit
c38f3a2b9a
@ -1,5 +1,15 @@
|
|||||||
""" FreqTrade bot """
|
""" 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):
|
class DependencyException(Exception):
|
||||||
|
Loading…
Reference in New Issue
Block a user