Files
dvc/dvc/__init__.py
T
Ruslan Kuprieiev 57a03072ac dvc: bump to 0.9.4
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-04-03 21:23:31 +03:00

23 lines
581 B
Python

"""
DVC
----
Make your data science projects reproducible and shareable.
"""
import os
VERSION = '0.9.4'
if os.getenv('APPVEYOR_REPO_TAG', '').lower() != 'true' and os.getenv('TRAVIS_TAG', '') == '':
# Dynamically update version
try:
import git
repo = git.Repo(os.curdir, search_parent_directories=True)
sha = repo.head.object.hexsha
short_sha = repo.git.rev_parse(sha, short=6)
dirty = '.mod' if repo.is_dirty() else ''
VERSION = '{}+{}{}'.format(VERSION, short_sha, dirty)
except:
pass
__version__ = VERSION