2881: Add Node Manager service.
[arvados.git] / services / nodemanager / setup.py
1 #!/usr/bin/env python
2
3 import os
4 import subprocess
5 import time
6
7 from setuptools import setup, find_packages
8
9 SETUP_DIR = os.path.dirname(__file__) or "."
10 cmd_opts = {'egg_info': {}}
11 try:
12     git_tags = subprocess.check_output(
13         ['git', 'log', '--first-parent', '--max-count=1',
14          '--format=format:%ct %h', SETUP_DIR]).split()
15     assert len(git_tags) == 2
16 except (AssertionError, OSError, subprocess.CalledProcessError):
17     pass
18 else:
19     git_tags[0] = time.strftime('%Y%m%d%H%M%S', time.gmtime(int(git_tags[0])))
20     cmd_opts['egg_info']['tag_build'] = '.{}.{}'.format(*git_tags)
21
22 setup(name='arvados-node-manager',
23       version='0.1',
24       description='Arvados compute node manager',
25       author='Arvados',
26       author_email='info@arvados.org',
27       url="https://arvados.org",
28       license='GNU Affero General Public License, version 3.0',
29       packages=find_packages(),
30       install_requires=[
31         'apache-libcloud',
32         'arvados-python-client',
33         'pykka',
34         'python-daemon',
35         ],
36       scripts=['bin/arvados-node-manager'],
37       test_suite='tests',
38       tests_require=['mock>=1.0'],
39       zip_safe=False,
40       options=cmd_opts,
41       )