refs #13200 Merge branch '13200-new-package-versioning-jb'
[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     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
26 setup(name='arvados-node-manager',
27       version=version,
28       description='Arvados compute node manager',
29       long_description=open(README).read(),
30       author='Arvados',
31       author_email='info@arvados.org',
32       url="https://arvados.org",
33       license='GNU Affero General Public License, version 3.0',
34       packages=find_packages(),
35       scripts=['bin/arvados-node-manager'],
36       data_files=[
37           ('share/doc/arvados-node-manager', ['agpl-3.0.txt', 'README.rst']),
38       ],
39       install_requires=[
40           'apache-libcloud>=2.3',
41           'arvados-python-client>=0.1.20170731145219',
42           'future',
43           'pykka',
44           'python-daemon',
45           'setuptools'
46       ],
47       test_suite='tests',
48       tests_require=[
49           'requests',
50           'pbr<1.7.0',
51           'mock>=1.0',
52           'apache-libcloud>=2.3',
53       ],
54       zip_safe=False,
55       cmdclass={'egg_info': tagger},
56       )