Merge branch 'master' into 14874-protected-collection-properties
[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
18 setup(name='arvados-cwl-runner',
19       version=version,
20       description='Arvados Common Workflow Language runner',
21       long_description=open(README).read(),
22       author='Arvados',
23       author_email='info@arvados.org',
24       url="https://arvados.org",
25       download_url="https://github.com/curoverse/arvados.git",
26       license='Apache 2.0',
27       packages=find_packages(),
28       package_data={'arvados_cwl': ['arv-cwl-schema-v1.0.yml', 'arv-cwl-schema-v1.1.yml']},
29       scripts=[
30           'bin/cwl-runner',
31           'bin/arvados-cwl-runner',
32       ],
33       # Note that arvados/build/run-build-packages.sh looks at this
34       # file to determine what version of cwltool and schema-salad to build.
35       install_requires=[
36           'cwltool==1.0.20190603140227',
37           'schema-salad==4.2.20190417121603',
38           'typing >= 3.6.4',
39           'ruamel.yaml >=0.15.54, <=0.15.77',
40           'arvados-python-client>=1.3.0.20190205182514',
41           'setuptools',
42           'ciso8601 >= 2.0.0',
43           'networkx < 2.3'
44       ],
45       extras_require={
46           ':os.name=="posix" and python_version<"3"': ['subprocess32 >= 3.5.1'],
47           ':python_version<"3"': ['pytz'],
48       },
49       data_files=[
50           ('share/doc/arvados-cwl-runner', ['LICENSE-2.0.txt', 'README.rst']),
51       ],
52       classifiers=[
53           'Programming Language :: Python :: 2',
54           'Programming Language :: Python :: 3',
55       ],
56       test_suite='tests',
57       tests_require=[
58           'mock>=1.0',
59           'subprocess32>=3.5.1',
60       ],
61       zip_safe=True
62       )