Add version

This commit is contained in:
Dmitry Petrov
2017-05-02 23:14:23 -07:00
parent e2f39a522a
commit 844202f0a0
2 changed files with 7 additions and 3 deletions
+5 -2
View File
@@ -19,6 +19,7 @@ from dvc.command.import_bulk import CmdImportBulk
from dvc.command.lock import CmdLock
from dvc.command.test import CmdTest
VERSION = '0.8.0'
def print_usage():
usage = ('',
@@ -38,7 +39,7 @@ def print_usage():
print('\n'.join(usage))
def main():
cmds = ['init', 'run', 'sync', 'repro', 'data', 'remove', 'import', 'lock', 'cloud', \
cmds = ['--version', 'init', 'run', 'sync', 'repro', 'data', 'remove', 'import', 'lock', 'cloud', \
'cloud', 'cloud-run', 'cloud-instance-create', 'cloud-instance-remove', 'cloud-instance-describe', \
'test', 'test-aws', 'test-gcloud', 'test-cloud']
@@ -50,7 +51,9 @@ def main():
cmd = sys.argv[1]
if cmd == 'init':
if cmd == '--version':
print('dvc version {}'.format(VERSION))
elif cmd == 'init':
Runtime.run(CmdInit, parse_config=False)
elif cmd == 'run':
Runtime.run(CmdRun)
+2 -1
View File
@@ -1,6 +1,7 @@
import platform
from setuptools import setup, find_packages
from distutils.errors import DistutilsPlatformError
from dvc.main import VERSION
install_requires = [
'altgraph==0.13',
@@ -97,7 +98,7 @@ if platform.system() == 'Darwin':
setup(
name='dvc',
version='0.1',
version=VERSION,
description='Git for data science projects',
author='Dmitry Petrov',
author_email='[email protected]',