2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
6 from __future__ import absolute_import
11 from setuptools import setup, find_packages
13 SETUP_DIR = os.path.dirname(__file__) or '.'
14 README = os.path.join(SETUP_DIR, 'README.rst')
16 import arvados_version
17 version = arvados_version.get_version(SETUP_DIR, "arvnodeman")
18 if os.environ.get('ARVADOS_BUILDING_VERSION', False):
19 pysdk_dep = "=={}".format(version)
21 # On dev releases, arvados-python-client may have a different timestamp
22 pysdk_dep = "<={}".format(version)
24 short_tests_only = False
25 if '--short-tests-only' in sys.argv:
26 short_tests_only = True
27 sys.argv.remove('--short-tests-only')
29 setup(name='arvados-node-manager',
31 description='Arvados compute node manager',
32 long_description=open(README).read(),
34 author_email='info@arvados.org',
35 url="https://arvados.org",
36 license='GNU Affero General Public License, version 3.0',
37 packages=find_packages(),
38 scripts=['bin/arvados-node-manager'],
40 ('share/doc/arvados-node-manager', ['agpl-3.0.txt', 'README.rst', 'arvados-node-manager.service']),
43 'apache-libcloud==2.5.0', # 2.6.0 cannot create azure nodes, #15649
44 'arvados-python-client{}'.format(pysdk_dep),
49 'subprocess32>=3.5.1',
56 'apache-libcloud==2.5.0',
57 'subprocess32>=3.5.1',