6 import setuptools.command.egg_info as egg_info_cmd
8 from setuptools import setup, find_packages
10 SETUP_DIR = os.path.dirname(__file__) or '.'
11 README = os.path.join(SETUP_DIR, 'README.rst')
15 tagger = gittaggers.EggInfoFromGit
17 tagger = egg_info_cmd.egg_info
19 versionfile = os.path.join(SETUP_DIR, "arvados_cwl/_version.py")
21 gitinfo = subprocess.check_output(
22 ['git', 'log', '--first-parent', '--max-count=1',
23 '--format=format:%H', gittaggers.choose_version_from()]).strip()
24 with open(versionfile, "w") as f:
25 f.write("__version__ = '%s'\n" % gitinfo)
26 except Exception as e:
27 # When installing from package, it won't be part of a git repository, and
28 # check_output() will raise an exception. But the package should include the
29 # version file, so we can proceed.
30 if not os.path.exists(versionfile):
33 setup(name='arvados-cwl-runner',
35 description='Arvados Common Workflow Language runner',
36 long_description=open(README).read(),
38 author_email='info@arvados.org',
39 url="https://arvados.org",
40 download_url="https://github.com/curoverse/arvados.git",
42 packages=find_packages(),
43 package_data={'arvados_cwl': ['arv-cwl-schema.yml']},
46 'bin/arvados-cwl-runner'
48 # Make sure to update arvados/build/run-build-packages.sh as well
49 # when updating the cwltool version pin.
51 'cwltool==1.0.20161128202906',
52 'arvados-python-client>=0.1.20160826210445'
55 ('share/doc/arvados-cwl-runner', ['LICENSE-2.0.txt', 'README.rst']),
58 tests_require=['mock>=1.0'],
60 cmdclass={'egg_info': tagger},