cwltool-1.0.20180302231433/ 0000755 0001752 0001752 00000000000 13247251336 015601 5 ustar mcrusoe mcrusoe 0000000 0000000 cwltool-1.0.20180302231433/gittaggers.py 0000644 0001752 0001752 00000001417 13247251316 020314 0 ustar mcrusoe mcrusoe 0000000 0000000 import subprocess
import time
from setuptools.command.egg_info import egg_info
class EggInfoFromGit(egg_info):
"""Tag the build with git commit timestamp.
If a build tag has already been set (e.g., "egg_info -b", building
from source package), leave it alone.
"""
def git_timestamp_tag(self):
gitinfo = subprocess.check_output(
['git', 'log', '--first-parent', '--max-count=1',
'--format=format:%ct', '.']).strip()
return time.strftime('.%Y%m%d%H%M%S', time.gmtime(int(gitinfo)))
def tags(self):
if self.tag_build is None:
try:
self.tag_build = self.git_timestamp_tag()
except subprocess.CalledProcessError:
pass
return egg_info.tags(self)
cwltool-1.0.20180302231433/PKG-INFO 0000644 0001752 0001752 00000073233 13247251336 016706 0 ustar mcrusoe mcrusoe 0000000 0000000 Metadata-Version: 1.1
Name: cwltool
Version: 1.0.20180302231433
Summary: Common workflow language reference implementation
Home-page: https://github.com/common-workflow-language/cwltool
Author: Common workflow language working group
Author-email: common-workflow-language@googlegroups.com
License: UNKNOWN
Download-URL: https://github.com/common-workflow-language/cwltool
Description-Content-Type: UNKNOWN
Description: ==================================================================
Common Workflow Language tool description reference implementation
==================================================================
CWL conformance tests: |Build Status| Travis CI: |Unix Build Status|
.. |Unix Build Status| image:: https://img.shields.io/travis/common-workflow-language/cwltool/master.svg?label=unix%20build
:target: https://travis-ci.org/common-workflow-language/cwltool
This is the reference implementation of the Common Workflow Language. It is
intended to feature complete and provide comprehensive validation of CWL
files as well as provide other tools related to working with CWL.
This is written and tested for Python ``2.7 and 3.x {x = 3, 4, 5, 6}``
The reference implementation consists of two packages. The ``cwltool`` package
is the primary Python module containing the reference implementation in the
``cwltool`` module and console executable by the same name.
The ``cwlref-runner`` package is optional and provides an additional entry point
under the alias ``cwl-runner``, which is the implementation-agnostic name for the
default CWL interpreter installed on a host.
Install
-------
It is highly recommended to setup virtual environment before installing `cwltool`:
.. code:: bash
virtualenv -p python2 venv # Create a virtual environment, can use `python3` as well
source venv/bin/activate # Activate environment before installing `cwltool`
Installing the official package from PyPi (will install "cwltool" package as
well)
.. code:: bash
pip install cwlref-runner
If installing alongside another CWL implementation then
.. code:: bash
pip install cwltool
Or you can install from source:
.. code:: bash
git clone https://github.com/common-workflow-language/cwltool.git # clone cwltool repo
cd cwltool # Switch to source directory
pip install . # Install `cwltool` from source
cwltool --version # Check if the installation works correctly
Remember, if co-installing multiple CWL implementations then you need to
maintain which implementation ``cwl-runner`` points to via a symbolic file
system link or `another facility
symbol:: {Unicode alphanumeric}+ singleq:: [' (( {character - '} | \' ))* '] doubleq:: [" (( {character - "} | \" ))* "] index:: [ {decimal digit}+ ] segment:: . {symbol} | {singleq} | {doubleq} | {index} parameter:: $( {symbol} {segment}*)
symbol:: | {Unicode alphanumeric}+ |
singleq:: | [' (( {character - '} | \' ))* '] |
doubleq:: | [" (( {character - "} | \" ))* "] |
index:: | [ {decimal digit}+ ] |
segment:: | . {symbol} | {singleq} | {doubleq} | {index} |
parameter reference:: | $( {symbol} {segment}*) |
symbol:: | {Unicode alphanumeric}+ |
singleq:: | [' (( {character - '} | \' ))* '] |
doubleq:: | [" (( {character - "} | \" ))* "] |
index:: | [ {decimal digit}+ ] |
segment:: | . {symbol} | {singleq} | {doubleq} | {index} |
parameter reference:: | $( {symbol} {segment}*) |