5737: Fix test so call counts are as expected
[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-normalize',
39           'bin/arv-put',
40           'bin/arv-run',
41           'bin/arv-ws'
42       ],
43       data_files=[
44           ('share/doc/arvados-python-client', ['LICENSE-2.0.txt', 'README.rst']),
45       ],
46       install_requires=[
47           'google-api-python-client==1.4.2',
48           'oauth2client >=1.4.6, <2',
49           'pyasn1-modules==0.0.5',
50           'ciso8601',
51           'httplib2',
52           'pycurl >=7.19.5.1, <7.21.5',
53           'python-gflags<3.0',
54           'ws4py'
55       ],
56       test_suite='tests',
57       tests_require=['pbr<1.7.0', 'mock>=1.0', 'PyYAML'],
58       zip_safe=False,
59       cmdclass={'egg_info': tagger},
60       )