5175: Do not add +sha1 tag unless --sha1-tag flag given.
[arvados.git] / services / fuse / setup.py
1 #!/usr/bin/env python
2
3 import os
4 import sys
5
6 from setuptools import setup, find_packages
7 from setuptools.command.egg_info import egg_info
8
9 SETUP_DIR = os.path.dirname(__file__) or '.'
10 README = os.path.join(SETUP_DIR, 'README.rst')
11
12 if '--sha1-tag' in sys.argv:
13     import gittaggers
14     tagger = gittaggers.TagBuildWithCommitDateAndSha1
15     sys.argv.remove('--sha1-tag')
16 else:
17     try:
18         import gittaggers
19         tagger = gittaggers.TagBuildWithCommitDate
20     except ImportError:
21         tagger = egg_info
22
23 setup(name='arvados_fuse',
24       version='0.1',
25       description='Arvados FUSE driver',
26       long_description=open(README).read(),
27       author='Arvados',
28       author_email='info@arvados.org',
29       url="https://arvados.org",
30       download_url="https://github.com/curoverse/arvados.git",
31       license='GNU Affero General Public License, version 3.0',
32       packages=find_packages(),
33       scripts=[
34         'bin/arv-mount'
35         ],
36       install_requires=[
37         'arvados-python-client>=0.1.20141203150737.277b3c7',
38         'llfuse',
39         'python-daemon',
40         ],
41       test_suite='tests',
42       tests_require=['PyYAML'],
43       zip_safe=False,
44       cmdclass={'egg_info': tagger},
45       )