12199: Derate advertised node sizes by 5%.
[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 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 short_tests_only = False
26 if '--short-tests-only' in sys.argv:
27     short_tests_only = True
28     sys.argv.remove('--short-tests-only')
29
30 setup(name='arvados-python-client',
31       version=version,
32       description='Arvados client library',
33       long_description=open(README).read(),
34       author='Arvados',
35       author_email='info@arvados.org',
36       url="https://arvados.org",
37       download_url="https://github.com/curoverse/arvados.git",
38       license='Apache 2.0',
39       packages=find_packages(),
40       scripts=[
41           'bin/arv-copy',
42           'bin/arv-get',
43           'bin/arv-keepdocker',
44           'bin/arv-ls',
45           'bin/arv-migrate-docker19',
46           'bin/arv-normalize',
47           'bin/arv-put',
48           'bin/arv-run',
49           'bin/arv-ws'
50       ],
51       data_files=[
52           ('share/doc/arvados-python-client', ['LICENSE-2.0.txt', 'README.rst']),
53       ],
54       install_requires=[
55           'ciso8601 >=1.0.0, <=1.0.4',
56           'future',
57           'google-api-python-client >=1.6.2, <1.7',
58           'httplib2 >=0.9.2',
59           'pycurl >=7.19.5.1',
60           'ruamel.yaml >=0.13.7',
61           'setuptools',
62           'ws4py <0.4',
63       ],
64       test_suite='tests',
65       tests_require=['pbr<1.7.0', 'mock>=1.0', 'PyYAML'],
66       zip_safe=False,
67       cmdclass={'egg_info': tagger},
68       )