2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: Apache-2.0
8 import setuptools.command.egg_info as egg_info_cmd
10 from setuptools import setup, find_packages
12 SETUP_DIR = os.path.dirname(__file__) or '.'
13 README = os.path.join(SETUP_DIR, 'README.rst')
15 tagger = egg_info_cmd.egg_info
16 version = os.environ.get("ARVADOS_BUILDING_VERSION")
20 tagger = gittaggers.EggInfoFromGit
21 import arvados_version
22 vtag = arvados_version.VersionInfoFromGit()
23 version = vtag.git_latest_tag() + vtag.git_timestamp_tag()
27 short_tests_only = False
28 if '--short-tests-only' in sys.argv:
29 short_tests_only = True
30 sys.argv.remove('--short-tests-only')
32 setup(name='arvados-python-client',
34 description='Arvados client library',
35 long_description=open(README).read(),
37 author_email='info@arvados.org',
38 url="https://arvados.org",
39 download_url="https://github.com/curoverse/arvados.git",
41 packages=find_packages(),
47 'bin/arv-migrate-docker19',
54 ('share/doc/arvados-python-client', ['LICENSE-2.0.txt', 'README.rst']),
57 'ciso8601 >=1.0.0, <=1.0.4',
59 'google-api-python-client >=1.6.2, <1.7',
62 'ruamel.yaml >=0.13.7',
67 tests_require=['pbr<1.7.0', 'mock>=1.0', 'PyYAML'],
69 cmdclass={'egg_info': tagger},