13111: Merge branch 'master' into 12308-go-fuse
[arvados.git] / services / nodemanager / 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     version = "0.1"
19     try:
20         import gittaggers
21         tagger = gittaggers.EggInfoFromGit
22     except ImportError:
23         pass
24
25 setup(name='arvados-node-manager',
26       version=version,
27       description='Arvados compute node manager',
28       long_description=open(README).read(),
29       author='Arvados',
30       author_email='info@arvados.org',
31       url="https://arvados.org",
32       license='GNU Affero General Public License, version 3.0',
33       packages=find_packages(),
34       scripts=['bin/arvados-node-manager'],
35       data_files=[
36           ('share/doc/arvados-node-manager', ['agpl-3.0.txt', 'README.rst']),
37       ],
38       install_requires=[
39           'apache-libcloud>=2.2',
40           'arvados-python-client>=0.1.20170731145219',
41           'future',
42           'pykka',
43           'python-daemon',
44           'setuptools'
45       ],
46       dependency_links=[
47           "https://github.com/curoverse/libcloud/archive/apache-libcloud-2.2.2.dev4.zip"
48       ],
49       test_suite='tests',
50       tests_require=[
51           'requests',
52           'pbr<1.7.0',
53           'mock>=1.0',
54           'apache-libcloud==2.2.2.dev4',
55       ],
56       zip_safe=False,
57       cmdclass={'egg_info': tagger},
58       )