mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Apply dynamic versioning to develop
This commit is contained in:
parent
c6bb68bd30
commit
c38f3a2b9a
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user