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"]

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

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,24 @@
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
],
32-
"outputs": [],
32+
"outputs": [{
33+
"id": "args",
34+
"type": {
35+
"type": "array",
36+
"items": "string"
37+
}
38+
}],
3339
"baseCommand": "python",
3440
"arguments": ["cat"]
3541
}

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

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
}
2121
},
2222
{
23-
id: "#args.py",
24-
type: File,
25-
default: {
26-
class: File,
27-
path: args.py
28-
},
29-
inputBinding: {
30-
position: -1
31-
}
23+
"id": "#args.py",
24+
"type": "File",
25+
"default": {
26+
"class": "File",
27+
"path": "args.py"
28+
},
29+
"inputBinding": {
30+
"position": -1
31+
}
3232
}
3333
],
3434
"outputs": [
@@ -38,6 +38,13 @@
3838
"glob": "output.sam"
3939
},
4040
"type": ["null", "File"]
41+
},
42+
{
43+
"id": "args",
44+
"type": {
45+
"type": "array",
46+
"items": "string"
47+
}
4148
}
4249
],
4350
"requirements": [

cwltool/schemas/v1.0/CommandLineTool.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,6 @@ $graph:
694694
- name: package
695695
type: string
696696
doc: "The common name of the software to be configured."
697-
jsonldPredicate: "@id"
698697
- name: version
699698
type: string[]?
700699
doc: "The (optional) version of the software to configured."

cwltool/schemas/v1.0/UserGuide.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@
290290
- |
291291
## Parameter references
292292
293-
In a previous example, we used extracted a file using the "tar" program.
294-
However, that example was very limited becuase it assumed that the file
293+
In a previous example, we extracted a file using the "tar" program.
294+
However, that example was very limited because it assumed that the file
295295
we were interested in was called "hello.txt". In this example, you will
296296
see how to reference the value of input parameters dynamically from other
297297
fields.

cwltool/schemas/v1.0/concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ preprocessing steps described in the
8989
[Semantic Annotations for Linked Avro Data (SALAD) Specification](SchemaSalad.html).
9090
An implementation may formally validate the structure of a CWL document using
9191
SALAD schemas located at
92-
https://github.com/common-workflow-language/common-workflow-language/tree/master/draft-4
92+
https://github.com/common-workflow-language/common-workflow-language/tree/master/v1.0
9393

9494
## Identifiers
9595

0 commit comments

Comments
 (0)