12167: Improve request-id tracking in Workbench.
[arvados.git] / sdk / python / setup.py
1 #!/usr/bin/env python
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: Apache-2.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 try:
16     import gittaggers
17     tagger = gittaggers.EggInfoFromGit
18 except ImportError:
19     tagger = egg_info_cmd.egg_info
20
21 short_tests_only = False
22 if '--short-tests-only' in sys.argv:
23     short_tests_only = True
24     sys.argv.remove('--short-tests-only')
25
26 setup(name='arvados-python-client',
27       version='0.1',
28       description='Arvados client library',
29       long_description=open(README).read(),
30       author='Arvados',
31       author_email='info@arvados.org',
32       url="https://arvados.org",
33       download_url="https://github.com/curoverse/arvados.git",
34       license='Apache 2.0',
35       packages=find_packages(),
36       scripts=[
37           'bin/arv-copy',
38           'bin/arv-get',
39           'bin/arv-keepdocker',
40           'bin/arv-ls',
41           'bin/arv-migrate-docker19',
42           'bin/arv-normalize',
43           'bin/arv-put',
44           'bin/arv-run',
45           'bin/arv-ws'
46       ],
47       data_files=[
48           ('share/doc/arvados-python-client', ['LICENSE-2.0.txt', 'README.rst']),
49       ],
50       install_requires=[
51           'ciso8601 >=1.0.0, <=1.0.4',
52           'future',
53           'google-api-python-client >=1.6.2, <1.7',
54           'httplib2 >=0.9.2',
55           'pycurl >=7.19.5.1',
56           'ruamel.yaml >=0.13.7',
57           'setuptools',
58           'ws4py <0.4',
59       ],
60       test_suite='tests',
61       tests_require=['pbr<1.7.0', 'mock>=1.0', 'PyYAML'],
62       zip_safe=False,
63       cmdclass={'egg_info': tagger},
64       )