Skip to content

Commit 92d4e79

Browse files
authored
Merge branch 'main' into patch-1
2 parents e9fb86c + 948c48e commit 92d4e79

File tree

9 files changed

+38
-17
lines changed

9 files changed

+38
-17
lines changed

CITATION.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# Citation
22

3-
To cite the Common Workflow Language and the CWL project in a scholary work, please use:
3+
To cite the Common Workflow Language project in a scholary work, please use:
44

5-
Michael R. Crusoe, Sanne Abeln, Alexandru Iosup, Peter Amstutz, John Chilton, Nebojša Tijanić, Hervé Ménager, Stian Soiland-Reyes, Bogdan Gavrilović, Carole Goble, and The CWL Community. 2022. Methods included: standardizing computational reuse and portability with the Common Workflow Language. Commun. ACM 65, 6 (June 2022), 54–63. https://doi.org/10.1145/3486897
5+
Michael R. Crusoe, Sanne Abeln, Alexandru Iosup, Peter Amstutz, John Chilton, Nebojša Tijanić,
6+
Hervé Ménager, Stian Soiland-Reyes, Bogdan Gavrilović, Carole Goble, and The CWL Community. 2022.
7+
Methods Included: Standardizing Computational Reuse and Portability with the Common Workflow Language.
8+
Commun. ACM 65, 6 (June 2022), 54–63. https://doi.org/10.1145/3486897
69

10+
```
711
@article{10.1145/3486897,
812
author = {Crusoe, Michael R. and Abeln, Sanne and Iosup, Alexandru and Amstutz, Peter and Chilton, John and Tijani\'{c}, Neboj\v{s}a and M\'{e}nager, Herv\'{e} and Soiland-Reyes, Stian and Gavrilovi\'{c}, Bogdan and Goble, Carole and Community, The CWL},
913
title = {Methods Included: Standardizing Computational Reuse and Portability with the Common Workflow Language},
@@ -22,6 +26,7 @@ month = {may},
2226
pages = {54–63},
2327
numpages = {10}
2428
}
29+
```
2530

2631
To cite just the CWL standards themselves, please use the following inclusive of the DOI:
2732

@@ -32,6 +37,7 @@ Stojanovic, Luka (2016): Common Workflow Language, v1.0. Specification,
3237
Common Workflow Language working group. https://w3id.org/cwl/v1.0/
3338
https://dx.doi.org/10.6084/m9.figshare.3115156.v2
3439

40+
```
3541
@data{cwl,
3642
doi = {10.6084/m9.figshare.3115156.v2},
3743
url = {https://doi.org/10.6084/m9.figshare.3115156.v2},
@@ -45,8 +51,9 @@ Luka Stojanovic
4551
title = {Common Workflow Language, v1.0},
4652
year = {2016}
4753
}
54+
```
4855

49-
# the above is from https://github.com/common-workflow-language/common-workflow-language/blob/main/CITATION
56+
[//]: # (the above is from https://github.com/common-workflow-language/common-workflow-language/blob/main/CITATION.cff)
5057

5158
Our preferred DOI for the "CWL User Guide" is http://doi.org/10.5281/zenodo.840129
5259

CONTRIBUTING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ in `Makefile`).
101101
# Create and activate a virtual environment
102102
python -m venv venv
103103
source venv/bin/activate
104+
# update the version of pip, setuptools, and wheel
105+
(venv) pip -U pip setuptools wheel
104106
# Install the dependencies in your virtual environment
105-
(venv) python -mpip install .[all]
107+
(venv) pip install .[all]
106108
# Create the HTML to visualize locally
107109
(venv) make html
108-
(venv) firefox _build/index.html
110+
(venv) open _build/index.html
109111
# Or you can start a serve that watches for local file changes
110112
(venv) make watch
111113
# Open <http://localhost:8000/> in your browser

cwl/sphinx/runcmd.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,20 @@ def run(self):
169169
r = match.group("replacement").replace("\\", "")
170170
output = re.sub(p, r, output)
171171

172+
# Note: Sphinx's CodeBlock directive expects an array of command-line
173+
# output lines: https://github.com/sphinx-doc/sphinx/blob/c51a88da8b7b40e8d8cbdb1fce85ca2346b2b59a/sphinx/directives/code.py#L114
174+
# But the runcmd original code was simply wrapping a string
175+
# containing \n in the text as a one-element array, e.g.
176+
# ["cwltool --debug ...\ncwltool Version..."].
177+
# That caused the output to be correctly rendered, but the
178+
# emphasize-lines directive parameter to fail if the lines were
179+
# anything greater than 0 (as the self.content array had 1 elem).
180+
# See: https://github.com/common-workflow-language/user_guide/issues/269
181+
output = output.split("\n")
182+
172183
# Set up our arguments to run the CodeBlock parent run function
173184
self.arguments[0] = syntax
174-
self.content = [output]
185+
self.content = output
175186
node = super(RunCmdDirective, self).run()
176187

177188
return node

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ packages = find_namespace:
3232
include_package_data = True
3333
python_requires = >=3.6
3434
install_requires =
35-
cwl_runner
35+
cwltool
36+
cwlref-runner
3637
cwl-utils==0.*
3738
myst-parser==0.*
3839
pydata-sphinx-theme==0.*

src/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ These can be set by using the default field
290290
input:
291291
default:true
292292
```
293-
## Concating Strings in Inputs
293+
## Concatenating Strings in Inputs
294294

295295
The valueFrom field must be used instead of default.
296296

src/introduction/prerequisites.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ environment:
5454
5555
$ python -m venv venv
5656
$ source venv/bin/activate
57+
$ (venv) pip install -U pip setuptools wheel
5758
$ (venv) pip install cwltool
5859
```
5960

6061
```{note}
61-
You can find the `cwl-runner` source code [here](https://github.com/common-workflow-language/cwltool/tree/main/cwlref-runner).
62+
You can find the `cwl-runner` source code [here](https://github.com/common-workflow-language/cwltool/tree/main/cwlref-runner).
6263
Visit the `cwltool` [documentation](https://github.com/common-workflow-language/cwltool#install)
6364
for other ways to install `cwltool` with `apt` and `conda`.
6465
```

src/topics/file-formats.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ parameterization.
4242
:name: sample.yml
4343
```
4444

45-
___Note:___ To follow the example below, you need to download the example input file, *file-formats.bam*. The file is available from [https://github.com/common-workflow-language/user_guide/raw/main/_includes/cwl/file-formats/file-formats.bam
46-
](https://github.com/common-workflow-language/user_guide/raw/main/_includes/cwl/file-formats/file-formats.bam) and can be downloaded e.g. via `wget`:
45+
___Note:___ To follow the example below, you need to download the example input file, *file-formats.bam*. The file is available from <https://github.com/common-workflow-language/user_guide/raw/main/_includes/cwl/file-formats/file-formats.bam>
46+
and can be downloaded e.g. via `wget`:
4747

4848
```{code-block}
4949
$ wget https://github.com/common-workflow-language/user_guide/raw/main/_includes/cwl/file-formats/file-formats.bam

src/topics/inputs.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ In the first example, you can't provide `itemA` without also providing `itemB`.
222222

223223
```{runcmd} cwltool record.cwl record-job2.yml
224224
:working-directory: src/_includes/cwl/inputs
225-
:emphasize-lines: 3, 9-10, 24
225+
:emphasize-lines: 4, 10-11, 23
226226
````
227227
228228
```{code-block} console
@@ -241,7 +241,7 @@ matching item (`itemC`) is added to the command line and remaining item (`itemD`
241241

242242
```{runcmd} cwltool record.cwl record-job3.yml
243243
:working-directory: src/_includes/cwl/inputs
244-
:emphasize-lines: 9-10, 24
244+
:emphasize-lines: 9-10, 22
245245
````
246246
247247
```{code-block} console
@@ -266,7 +266,6 @@ that accepts `null` (i.e. no value provided), or any value from an enum.
266266
:language: cwl
267267
:caption: "`exclusive-parameter-expressions.cwl`"
268268
:name: exclusive-parameter-expressions.cwl
269-
:emphasize-lines: 7, 21-23
270269
```
271270

272271
Note how the JavaScript expression uses the value of the exclusive input parameter
@@ -284,7 +283,7 @@ output field (a `string`), resulting in failure when running your workflow.
284283
285284
```{runcmd} cwltool exclusive-parameter-expressions.cwl
286285
:working-directory: src/_includes/cwl/inputs
287-
:emphasize-lines: 6-10
286+
:emphasize-lines: 5-10
288287
```
289288

290289
To correct it, you must remember to use an or operator in your JavaScript expression

src/topics/troubleshooting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ create the directory for you if it does not exist already):
2929

3030
```{runcmd} cwltool --cachedir /tmp/cachedir/ troubleshooting-wf1.cwl
3131
:working-directory: src/_includes/cwl/troubleshooting
32-
:emphasize-lines: 12-14, 19-21
32+
:emphasize-lines: 13-15, 18-20
3333
```
3434

3535
The workflow is in the `permanentFail` status due to `step_b` failing to execute the
@@ -53,7 +53,7 @@ Also note that the status of `step_b` is now of success.
5353

5454
```{runcmd} cwltool --cachedir /tmp/cachedir/ troubleshooting-wf1-stepb-fixed.cwl
5555
:working-directory: src/_includes/cwl/troubleshooting
56-
:emphasize-lines: 12, 16-18
56+
:emphasize-lines: 12-16
5757
```
5858

5959
In this example the workflow step `step_a` was not re-evaluated as it had been cached, and

0 commit comments

Comments
 (0)