X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/14db4dcdc2b0b7e5fbc81d62cf581dea5ccc07f4..add09f355520b2bd1214b8c74d5a8d6c8e76dc88:/sdk/cwl/setup.py diff --git a/sdk/cwl/setup.py b/sdk/cwl/setup.py index 31195fd372..334c636dd4 100644 --- a/sdk/cwl/setup.py +++ b/sdk/cwl/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (C) The Arvados Authors. All rights reserved. # # SPDX-License-Identifier: Apache-2.0 @@ -14,6 +14,11 @@ README = os.path.join(SETUP_DIR, 'README.rst') import arvados_version version = arvados_version.get_version(SETUP_DIR, "arvados_cwl") +if os.environ.get('ARVADOS_BUILDING_VERSION', False): + pysdk_dep = "=={}".format(version) +else: + # On dev releases, arvados-python-client may have a different timestamp + pysdk_dep = "<={}".format(version) setup(name='arvados-cwl-runner', version=version, @@ -22,25 +27,23 @@ setup(name='arvados-cwl-runner', author='Arvados', author_email='info@arvados.org', url="https://arvados.org", - download_url="https://github.com/curoverse/arvados.git", + download_url="https://github.com/arvados/arvados.git", license='Apache 2.0', packages=find_packages(), - package_data={'arvados_cwl': ['arv-cwl-schema-v1.0.yml', 'arv-cwl-schema-v1.1.yml']}, + package_data={'arvados_cwl': ['arv-cwl-schema-v1.0.yml', 'arv-cwl-schema-v1.1.yml', 'arv-cwl-schema-v1.2.yml']}, scripts=[ 'bin/cwl-runner', 'bin/arvados-cwl-runner', ], # Note that arvados/build/run-build-packages.sh looks at this - # file to determine what version of cwltool and schema-salad to build. + # file to determine what version of cwltool and schema-salad to + # build. install_requires=[ - 'cwltool==1.0.20190525125941', - 'schema-salad==4.1.20190305210046', - 'typing >= 3.6.4', - 'ruamel.yaml >=0.15.54, <=0.15.77', - 'arvados-python-client>=1.3.0.20190205182514', + 'cwltool==3.0.20200807132242', + 'schema-salad==7.0.20200612160654', + 'arvados-python-client{}'.format(pysdk_dep), 'setuptools', - 'ciso8601 >= 2.0.0', - 'networkx < 2.3' + 'ciso8601 >= 2.0.0' ], extras_require={ ':os.name=="posix" and python_version<"3"': ['subprocess32 >= 3.5.1'], @@ -49,14 +52,14 @@ setup(name='arvados-cwl-runner', data_files=[ ('share/doc/arvados-cwl-runner', ['LICENSE-2.0.txt', 'README.rst']), ], + python_requires=">=3.5, <4", classifiers=[ - 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', ], test_suite='tests', tests_require=[ - 'mock>=1.0', + 'mock>=1.0,<4', 'subprocess32>=3.5.1', ], - zip_safe=True - ) + zip_safe=True, +)