13200:test update on version in gittaggers on sdk python
[arvados.git] / sdk / cwl / 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 subprocess
9 import setuptools.command.egg_info as egg_info_cmd
10
11 from setuptools import setup, find_packages
12
13 SETUP_DIR = os.path.dirname(__file__) or '.'
14 README = os.path.join(SETUP_DIR, 'README.rst')
15
16 tagger = egg_info_cmd.egg_info
17 version = os.environ.get("ARVADOS_BUILDING_VERSION")
18 if not version:
19     version = "1.0"
20     try:
21         import gittaggers
22         tagger = gittaggers.EggInfoFromGit
23     except ImportError:
24         pass
25
26 setup(name='arvados-cwl-runner',
27       version=version,
28       description='Arvados Common Workflow Language runner',
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       package_data={'arvados_cwl': ['arv-cwl-schema.yml']},
37       scripts=[
38           'bin/cwl-runner',
39           'bin/arvados-cwl-runner',
40       ],
41       # Note that arvados/build/run-build-packages.sh looks at this
42       # file to determine what version of cwltool and schema-salad to build.
43       install_requires=[
44           'cwltool==1.0.20180326152342',
45           'schema-salad==2.6.20171201034858',
46           'typing==3.5.3.0',
47           'ruamel.yaml==0.13.7',
48           'arvados-python-client>=0.1.20170526013812',
49           'setuptools',
50           'ciso8601 >=1.0.0, <=1.0.4',
51       ],
52       data_files=[
53           ('share/doc/arvados-cwl-runner', ['LICENSE-2.0.txt', 'README.rst']),
54       ],
55       test_suite='tests',
56       tests_require=['mock>=1.0'],
57       zip_safe=True,
58       cmdclass={'egg_info': tagger},
59       )