Skip to content

Commit 5ab452e

Browse files
authored
Merge pull request #229 from common-workflow-language/fix-package-errror
Fix package errror
2 parents 5fd7abd + bb967af commit 5ab452e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+429
-98
lines changed

cwltool/expression.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def jshead(engineConfig, rootvars):
1919
# type: (List[Text], Dict[Text, Any]) -> Text
2020
return u"\n".join(engineConfig + [u"var %s = %s;" % (k, json.dumps(v, indent=4)) for k, v in rootvars.items()])
2121

22+
2223
seg_symbol = r"""\w+"""
2324
seg_single = r"""\['([^']|\\')+'\]"""
2425
seg_double = r"""\["([^"]|\\")+"\]"""

cwltool/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,5 +756,6 @@ def locToPath(p):
756756
_logger.removeHandler(stderr_handler)
757757
_logger.addHandler(defaultStreamHandler)
758758

759+
759760
if __name__ == "__main__":
760761
sys.exit(main(sys.argv[1:]))

cwltool/pack.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ def replace_refs(d, rewrite, stem, newstem):
3535
else:
3636
replace_refs(v, rewrite, stem, newstem)
3737
elif isinstance(d, dict):
38-
if "package" in d:
39-
raise Exception("where the fuck did this come from %s" % json.dumps(d, indent=4))
4038
if "run" in d and isinstance(d["run"], (str, unicode)):
4139
d["run"] = rewrite[d["run"]]
4240
for s,v in d.items():
@@ -75,7 +73,7 @@ def loadref(b, u):
7573
v = rewrite[r]
7674
dc = cast(Dict[Text, Any], copy.deepcopy(document_loader.idx[r]))
7775
dc["id"] = v
78-
for n in ("name", "package", "cwlVersion"):
76+
for n in ("name", "cwlVersion"):
7977
if n in dc:
8078
del dc[n]
8179
replace_refs(dc, rewrite, r+"/" if "#" in r else r+"#", v+"/")

cwltool/process.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ def empty_subtree(dirpath): # type: (Text) -> bool
592592
raise
593593
return True
594594

595+
595596
_names = set() # type: Set[Text]
596597

597598

cwltool/sandboxjs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
class JavascriptException(Exception):
1515
pass
1616

17+
1718
_logger = logging.getLogger("cwltool")
1819

1920
JSON = Union[Dict[Text,Any], List[Any], Text, int, long, float, bool, None]

cwltool/schemas/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,18 @@ Please cite https://dx.doi.org/10.6084/m9.figshare.3115156.v2
4040

4141
## Implementations
4242

43-
|Software|Description|CWL support|Platform support|Maturity|
43+
|Software|Description|CWL support|Platform support|Platform Maturity|
4444
|--------|-----------|-----------|--------|--------|
4545
|[cwltool](https://github.com/common-workflow-language/cwltool)|Reference implementation of CWL|[![Build Status](https://ci.commonwl.org/job/cwltool-conformance/badge/icon)](http://ci.commonwl.org/job/cwltool-conformance/lastBuild/testReport/)|Linux, OS X, local execution only|Production|
4646
|[Arvados](https://arvados.org)|Distributed computing platform for data analysis on massive data sets. [Using CWL on Arvados](http://doc.arvados.org/user/cwl/cwl-runner.html)|[![Build Status](https://ci.commonwl.org/job/arvados-conformance/badge/icon)](http://ci.commonwl.org/job/arvados-conformance/lastBuild/testReport/)|AWS, GCP, Azure, Slurm|Production|
4747
|[Toil](https://github.com/BD2KGenomics/toil)|Toil is a workflow engine entirely written in Python.|[![Build Status](https://ci.commonwl.org/job/toil-conformance/badge/icon)](http://ci.commonwl.org/job/toil-conformance/lastBuild/testReport/)|AWS, GCP, Azure, OpenStack, Grid Engine, Mesos|Production|
48+
|[Rabix Bunny](https://github.com/rabix/bunny)|Reproducible Analyses for Bioinformatics|[![Build Status](https://ci.commonwl.org/buildStatus/icon?job=rabix-conformance)](https://ci.commonwl.org/job/rabix-conformance/)|Java|alpha|
4849
|[Apache Taverna](http://taverna.incubator.apache.org/)|Domain-independent Workflow Management System|[alpha](https://issues.apache.org/jira/browse/TAVERNA-900)|Java|Production|
4950
|[Galaxy](https://galaxyproject.org/)|Web-based platform for data intensive biomedical research.|[alpha](https://github.com/common-workflow-language/galaxy)|Python|Production|
5051
|[AWE](https://github.com/MG-RAST/AWE)|Workflow and resource management system for bioinformatics data analysis.|[alpha](https://github.com/wgerlach/AWE)|Go|Production|
5152
|[Funnel](https://github.com/bmeg/funnel)|Use Google Genomics Pipeline API with CWL|alpha|GCP|alpha|
52-
|[Rabix Bunny](https://github.com/rabix/bunny)|Reproducible Analyses for Bioinformatics|alpha|Java|alpha|
53+
|[xenon-cwl-runner](https://github.com/NLeSC/xenon-cwl-runner)|Run CWL workflows using Xenon|alpha|[any Xenon backend](http://nlesc.github.io/Xenon/): local, ssh, SLURM, Torque, Grid Engine|Production|
54+
5355

5456
## Repositories of CWL Tools and Workflows
5557

@@ -64,10 +66,12 @@ Please cite https://dx.doi.org/10.6084/m9.figshare.3115156.v2
6466
|--------|-----------|
6567
|[cwltest](https://github.com/common-workflow-language/cwltest)|CWL testing framework, automated testing of tools and workflows written with CWL|
6668
|[cwl-upgrader](https://github.com/common-workflow-language/cwl-upgrader)|Upgrade CWL documents from draft-3 to v1.0|
67-
|[argparse2cwl](https://github.com/common-workflow-language/gxargparse#argparse2cwl)|Generate CWL CommandLineTool wrapper from Python programs that use argparse. Also supports [click](http://click.pocoo.org/5/) argument parser.|
69+
|[argparse2tool](https://github.com/erasche/argparse2tool#cwl-specific-functionality)|Generate CWL CommandLineTool wrappers (and/or Galaxy tool descriptions) from Python programs that use argparse. Also supports the [click](http://click.pocoo.org/5/) argument parser.|
6870
|[cwl2argparse](https://github.com/common-workflow-language/cwl2argparse)|Generate Python argparse code from CWL CommandLineTool description.|
6971
|[pypi2cwl](https://github.com/common-workflow-language/pypi2cwl)|Automatically run argparse2cwl on any package in PyPi|
7072
|[cwlavro](https://github.com/common-workflow-language/cwlavro)|Java classes for loading CWL documents|
73+
|[acd2cwl](https://github.com/common-workflow-language/acd2cwl)|CWL generator for ACD (EMBOSS) files |
74+
|[CWLviewer](https://github.com/MarkRobbo/CWLViewer)|A web application to view and share Common Workflow Language workflows|
7175

7276
## Support, Community and Contributing
7377

cwltool/schemas/draft-2/draft-2/binding-test.cwl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ inputs:
2222
inputBinding:
2323
position: -1
2424

25-
outputs: []
25+
outputs:
26+
- id: "#args"
27+
type:
28+
type: array
29+
items: string
2630

2731
baseCommand: python
2832
arguments: ["bwa", "mem"]

cwltool/schemas/draft-2/draft-2/cat1-testcli.cwl

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,24 @@
1717
}
1818
},
1919
{
20-
id: "#args.py",
21-
type: File,
22-
default: {
23-
class: File,
24-
path: args.py
25-
},
26-
inputBinding: {
27-
position: -1
28-
}
20+
"id": "#args.py",
21+
"type": "File",
22+
"default": {
23+
"class": "File",
24+
"path": "args.py"
25+
},
26+
"inputBinding": {
27+
"position": -1
28+
}
2929
}
3030
],
31-
"outputs": [],
31+
"outputs": [{
32+
"id": "#args",
33+
"type": {
34+
"type": "array",
35+
"items": "string"
36+
}
37+
}],
3238
"baseCommand": "python",
3339
"arguments": ["cat"]
3440
}

cwltool/schemas/draft-2/draft-2/tmap-tool.cwl

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
}
1919
},
2020
{
21-
id: "#args.py",
22-
type: File,
23-
default: {
24-
class: File,
25-
path: args.py
21+
"id": "#args.py",
22+
"type": "File",
23+
"default": {
24+
"class": "File",
25+
"path": "args.py"
2626
},
27-
inputBinding: {
28-
position: -1
27+
"inputBinding": {
28+
"position": -1
2929
}
3030
}
3131
],
@@ -36,6 +36,13 @@
3636
"glob": "output.sam"
3737
},
3838
"type": ["null", "File"]
39+
},
40+
{
41+
"id": "#args",
42+
"type": {
43+
"type": "array",
44+
"items": "string"
45+
}
3946
}
4047
],
4148
"requirements": [

cwltool/schemas/draft-3/draft-3/binding-test.cwl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ inputs:
2323
inputBinding:
2424
position: -1
2525

26-
outputs: []
26+
outputs:
27+
- id: args
28+
type:
29+
type: array
30+
items: string
2731

2832
baseCommand: python
2933
arguments: ["bwa", "mem"]

0 commit comments

Comments
 (0)