13200: format gitinfo on all the services
[arvados.git] / services / fuse / setup.py
1 #!/usr/bin/env python
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 import os
7 import sys
8 import setuptools.command.egg_info as egg_info_cmd
9
10 from setuptools import setup, find_packages
11
12 SETUP_DIR = os.path.dirname(__file__) or '.'
13 README = os.path.join(SETUP_DIR, 'README.rst')
14
15 tagger = egg_info_cmd.egg_info
16 version = os.environ.get("ARVADOS_BUILDING_VERSION")
17 if not version:
18     try:
19         import arvados_version
20         vtag = arvados_version.VersionInfoFromGit()
21         version = vtag.git_latest_tag() + vtag.git_timestamp_tag()
22     except ImportError:
23         pass
24         
25 short_tests_only = False
26 if '--short-tests-only' in sys.argv:
27     short_tests_only = True
28     sys.argv.remove('--short-tests-only')
29
30 setup(name='arvados_fuse',
31       version=version,
32       description='Arvados FUSE driver',
33       long_description=open(README).read(),
34       author='Arvados',
35       author_email='info@arvados.org',
36       url="https://arvados.org",
37       download_url="https://github.com/curoverse/arvados.git",
38       license='GNU Affero General Public License, version 3.0',
39       packages=['arvados_fuse'],
40       scripts=[
41         'bin/arv-mount'
42         ],
43       data_files=[
44           ('share/doc/arvados_fuse', ['agpl-3.0.txt', 'README.rst']),
45       ],
46       install_requires=[
47         'arvados-python-client >= 0.1.20151118035730',
48         'llfuse>=1.2',
49         'python-daemon',
50         'ciso8601',
51         'setuptools'
52         ],
53       test_suite='tests',
54       tests_require=['pbr<1.7.0', 'mock>=1.0', 'PyYAML'],
55       zip_safe=False,
56       cmdclass={'egg_info': tagger},
57       )