Merge branch 'master' into 4156-cli-tests
[arvados.git] / services / fuse / setup.py
1 #!/usr/bin/env python
2
3 import os
4 import subprocess
5 import time
6
7 from setuptools import setup, find_packages
8
9 SETUP_DIR = os.path.dirname(__file__)
10 README = os.path.join(SETUP_DIR, 'README.rst')
11
12 cmd_opts = {'egg_info': {}}
13 try:
14     git_tags = subprocess.check_output(
15         ['git', 'log', '--first-parent', '--max-count=1',
16          '--format=format:%ct %h', SETUP_DIR],
17         stderr=open('/dev/null','w')).split()
18     assert len(git_tags) == 2
19 except (AssertionError, OSError, subprocess.CalledProcessError):
20     pass
21 else:
22     git_tags[0] = time.strftime('%Y%m%d%H%M%S', time.gmtime(int(git_tags[0])))
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.20141103223015.68dae83',
41         'llfuse',
42         'python-daemon'
43         ],
44       test_suite='tests',
45       tests_require=['PyYAML'],
46       zip_safe=False,
47       options=cmd_opts,
48       )