This commit is contained in:
TheJoeSchr 2022-03-14 18:41:40 +08:00 committed by GitHub
commit 87296dd8fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,11 @@
""" Freqtrade bot """ """ Freqtrade bot """
__version__ = 'develop' __version__ = '2022.2.1-dev'
if __version__ == 'develop':
if __version__.endswith('dev'):
try: try:
import subprocess import subprocess
__version__ = 'develop-' + subprocess.check_output( __version__ = __version__ + '-' + subprocess.check_output(
['git', 'log', '--format="%h"', '-n 1'], ['git', 'log', '--format="%h"', '-n 1'],
stderr=subprocess.DEVNULL).decode("utf-8").rstrip().strip('"') stderr=subprocess.DEVNULL).decode("utf-8").rstrip().strip('"')
@ -30,5 +29,4 @@ if __version__ == 'develop':
versionfile = Path('./freqtrade_commit') versionfile = Path('./freqtrade_commit')
if versionfile.is_file(): if versionfile.is_file():
__version__ = f"docker-{versionfile.read_text()[:8]}" __version__ = f"docker-{versionfile.read_text()[:8]}"
except Exception: except Exception: pass
pass