Skip to content

Commit

Permalink
Apply dynamic versioning to develop
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Aug 28, 2019
1 parent c6bb68b commit c38f3a2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion freqtrade/__init__.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down

0 comments on commit c38f3a2

Please sign in to comment.