7 from setuptools import setup, find_packages
9 SETUP_DIR = os.path.dirname(__file__)
10 README = os.path.join(SETUP_DIR, 'README.rst')
12 cmd_opts = {'egg_info': {}}
14 git_tags = subprocess.check_output(
15 ['git', 'log', '--first-parent', '--max-count=1',
16 '--format=format:%ct %h', SETUP_DIR]).split()
17 assert len(git_tags) == 2
18 except (AssertionError, OSError, subprocess.CalledProcessError):
21 git_tags[0] = time.strftime('%Y%m%d%H%M%S', time.gmtime(int(git_tags[0])))
22 cmd_opts['egg_info']['tag_build'] = '.{}.{}'.format(*git_tags)
25 setup(name='arvados-python-client',
27 description='Arvados client library',
28 long_description=open(README).read(),
30 author_email='info@arvados.org',
31 url="https://arvados.org",
32 download_url="https://github.com/curoverse/arvados.git",
34 packages=find_packages(),
47 'google-api-python-client',
53 tests_require=['mock>=1.0', 'PyYAML'],