6 from setuptools import setup, find_packages
8 SETUP_DIR = os.path.dirname(__file__)
9 README = os.path.join(SETUP_DIR, 'README.rst')
11 cmd_opts = {'egg_info': {}}
13 git_tags = subprocess.check_output(
14 ['git', 'log', '--first-parent', '--max-count=1',
15 '--format=format:%ci %h', SETUP_DIR]).split()
16 assert len(git_tags) == 4
17 except (AssertionError, OSError, subprocess.CalledProcessError):
20 del git_tags[2] # Remove timezone
21 for ii in [0, 1]: # Remove non-digits from other datetime fields
22 git_tags[ii] = ''.join(c for c in git_tags[ii] if c.isdigit())
23 cmd_opts['egg_info']['tag_build'] = '.{}{}.{}'.format(*git_tags)
26 setup(name='arvados_fuse',
28 description='Arvados FUSE driver',
29 long_description=open(README).read(),
31 author_email='info@arvados.org',
32 url="https://arvados.org",
33 download_url="https://github.com/curoverse/arvados.git",
34 license='GNU Affero General Public License, version 3.0',
35 packages=['arvados_fuse'],
40 'arvados-python-client>=0.1.1411069908.8ba7f94', # 2014-09-18
45 tests_require=['PyYAML'],