Merge branch '16039-fuse-forward-slash-sub'
[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 from __future__ import absolute_import
7 import os
8 import sys
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 import arvados_version
16 version = arvados_version.get_version(SETUP_DIR, "arvados_cwl")
17 if os.environ.get('ARVADOS_BUILDING_VERSION', False):
18     pysdk_dep = "=={}".format(version)
19 else:
20     # On dev releases, arvados-python-client may have a different timestamp
21     pysdk_dep = "<={}".format(version)
22
23 setup(name='arvados-cwl-runner',
24       version=version,
25       description='Arvados Common Workflow Language runner',
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/arvados/arvados.git",
31       license='Apache 2.0',
32       packages=find_packages(),
33       package_data={'arvados_cwl': ['arv-cwl-schema-v1.0.yml', 'arv-cwl-schema-v1.1.yml']},
34       scripts=[
35           'bin/cwl-runner',
36           'bin/arvados-cwl-runner',
37       ],
38       # Note that arvados/build/run-build-packages.sh looks at this
39       # file to determine what version of cwltool and schema-salad to
40       # build.
41       install_requires=[
42           'cwltool==1.0.20190831161204',
43           'schema-salad==4.5.20190815125611',
44           'typing >= 3.6.4',
45           'ruamel.yaml >=0.15.54, <=0.15.77',
46           'arvados-python-client{}'.format(pysdk_dep),
47           'setuptools',
48           'ciso8601 >= 2.0.0',
49           'networkx < 2.3'
50       ],
51       extras_require={
52           ':os.name=="posix" and python_version<"3"': ['subprocess32 >= 3.5.1'],
53           ':python_version<"3"': ['pytz'],
54       },
55       data_files=[
56           ('share/doc/arvados-cwl-runner', ['LICENSE-2.0.txt', 'README.rst']),
57       ],
58       classifiers=[
59           'Programming Language :: Python :: 2',
60           'Programming Language :: Python :: 3',
61       ],
62       test_suite='tests',
63       tests_require=[
64           'mock>=1.0,<4',
65           'subprocess32>=3.5.1',
66       ],
67       zip_safe=True,
68 )