11647: Merge branch 'master' into 11647-no-perm-tokens
[arvados.git] / sdk / python / setup.py
1 #!/usr/bin/env python
2
3 import os
4 import sys
5 import setuptools.command.egg_info as egg_info_cmd
6
7 from setuptools import setup, find_packages
8
9 SETUP_DIR = os.path.dirname(__file__) or '.'
10 README = os.path.join(SETUP_DIR, 'README.rst')
11
12 try:
13     import gittaggers
14     tagger = gittaggers.EggInfoFromGit
15 except ImportError:
16     tagger = egg_info_cmd.egg_info
17
18 short_tests_only = False
19 if '--short-tests-only' in sys.argv:
20     short_tests_only = True
21     sys.argv.remove('--short-tests-only')
22
23 setup(name='arvados-python-client',
24       version='0.1',
25       description='Arvados client library',
26       long_description=open(README).read(),
27       author='Arvados',
28       author_email='info@arvados.org',
29       url="https://arvados.org",
30       download_url="https://github.com/curoverse/arvados.git",
31       license='Apache 2.0',
32       packages=find_packages(),
33       scripts=[
34           'bin/arv-copy',
35           'bin/arv-get',
36           'bin/arv-keepdocker',
37           'bin/arv-ls',
38           'bin/arv-migrate-docker19',
39           'bin/arv-normalize',
40           'bin/arv-put',
41           'bin/arv-run',
42           'bin/arv-ws'
43       ],
44       data_files=[
45           ('share/doc/arvados-python-client', ['LICENSE-2.0.txt', 'README.rst']),
46       ],
47       install_requires=[
48           'ciso8601',
49           'future',
50           'google-api-python-client >=1.6.2, <1.7',
51           'httplib2 >=0.9.2',
52           'pycurl >=7.19.5.1',
53           'ruamel.yaml >=0.13.7',
54           'setuptools',
55           'ws4py <0.4',
56       ],
57       test_suite='tests',
58       tests_require=['pbr<1.7.0', 'mock>=1.0', 'PyYAML'],
59       zip_safe=False,
60       cmdclass={'egg_info': tagger},
61       )