X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0f42105b1b59d1b5da764f34e6eb6a1137d7e1cb..b1ffc878a5ea6ba083b8fbc8f20c15c7a6f1e1ec:/sdk/cwl/setup.py diff --git a/sdk/cwl/setup.py b/sdk/cwl/setup.py index f034ca5ab2..5d8486f64f 100644 --- a/sdk/cwl/setup.py +++ b/sdk/cwl/setup.py @@ -3,22 +3,14 @@ # # SPDX-License-Identifier: Apache-2.0 -from __future__ import absolute_import import os import sys from setuptools import setup, find_packages -SETUP_DIR = os.path.dirname(__file__) or '.' -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) +version = arvados_version.get_version() +README = os.path.join(arvados_version.SETUP_DIR, 'README.rst') setup(name='arvados-cwl-runner', version=version, @@ -31,32 +23,24 @@ setup(name='arvados-cwl-runner', license='Apache 2.0', packages=find_packages(), 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', - ], + entry_points={"console_scripts": ["cwl-runner=arvados_cwl:main", "arvados-cwl-runner=arvados_cwl:main"]}, # Note that arvados/build/run-build-packages.sh looks at this # file to determine what version of cwltool and schema-salad to # build. install_requires=[ - 'cwltool==3.1.20211107152837', - 'schema-salad==8.2.20211116214159', - 'arvados-python-client{}'.format(pysdk_dep), - 'setuptools', + *arvados_version.iter_dependencies(version), + 'cwltool==3.1.20230601100705', + 'schema-salad==8.4.20230601112322', 'ciso8601 >= 2.0.0', - 'networkx < 2.6' + 'setuptools>=40.3.0', ], data_files=[ ('share/doc/arvados-cwl-runner', ['LICENSE-2.0.txt', 'README.rst']), ], - python_requires=">=3.5, <4", + python_requires="~=3.8", classifiers=[ 'Programming Language :: Python :: 3', ], test_suite='tests', - tests_require=[ - 'mock>=1.0,<4', - 'subprocess32>=3.5.1', - ], zip_safe=True, )