3ea28cbbba0ea3ddf8aa555d148e16fbf9c1dcd0
[arvados.git] / services / fuse / setup.py
1 #!/usr/bin/env python
2
3 import os
4 import subprocess
5
6 from setuptools import setup, find_packages
7
8 SETUP_DIR = os.path.dirname(__file__)
9 README = os.path.join(SETUP_DIR, 'README.rst')
10
11 cmd_opts = {'egg_info': {}}
12 try:
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):
18     pass
19 else:
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)
24
25
26 setup(name='arvados_fuse',
27       version='0.1',
28       description='Arvados FUSE driver',
29       long_description=open(README).read(),
30       author='Arvados',
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'],
36       scripts=[
37         'bin/arv-mount'
38         ],
39       install_requires=[
40         'arvados-python-client>=0.1.1411069908.8ba7f94',  # 2014-09-18
41         'llfuse',
42         'python-daemon'
43         ],
44       test_suite='tests',
45       tests_require=['PyYAML'],
46       zip_safe=False,
47       options=cmd_opts,
48       )