You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Include README in the Read The Docs site
Pin tox before 4.0 for now
Move the CLI options to a new page
Headings formatting fix
Fix udocker/singularity examples
Explicit section for Singularity
Many other docstring cleanups throughout the codebase
The reference implementation consists of two packages. The ``cwltool`` package
@@ -64,11 +65,14 @@ default CWL interpreter installed on a host.
64
65
``cwltool`` is provided by the CWL project, `a member project of Software Freedom Conservancy <https://sfconservancy.org/news/2018/apr/11/cwl-new-member-project/>`_
65
66
and our `many contributors <https://github.com/common-workflow-language/cwltool/graphs/contributors>`_.
66
67
68
+
.. contents:: Table of Contents
69
+
70
+
*******
67
71
Install
68
-
-------
72
+
*******
69
73
70
74
``cwltool`` packages
71
-
^^^^^^^^^^^^^^^^^^^^
75
+
====================
72
76
73
77
Your operating system may offer cwltool directly. For `Debian <https://tracker.debian.org/pkg/cwltool>`_, `Ubuntu <https://launchpad.net/ubuntu/+source/cwltool>`_,
74
78
and similar Linux distribution try
@@ -112,19 +116,19 @@ If installing alongside another CWL implementation (like ``toil-cwl-runner`` or
112
116
pip install cwltool
113
117
114
118
MS Windows users
115
-
^^^^^^^^^^^^^^^^
119
+
================
116
120
117
-
1. Install `"Windows Subsystem for Linux 2" (WSL2) and Docker Desktop <https://docs.docker.com/docker-for-windows/wsl/#prerequisites>`_
118
-
2. Install `Debian from the Microsoft Store <https://www.microsoft.com/en-us/p/debian/9msvkqc78pk6>`_
119
-
3. Set Debian as your default WSL 2 distro: ``wsl --set-default debian``.
120
-
4. Return to the Docker Desktop, choose `Settings → Resources → WSL Integration<https://docs.docker.com/desktop/windows/images/wsl2-choose-distro.png>`_ and under "Enable integration with additional distros" select "Debian",
121
-
5. Reboot if you have not yet already.
122
-
6. Launch Debian and follow the Linux instructions above (``apt-get install cwltool`` or use the ``venv`` method)
121
+
1. `Install Windows Subsystem for Linux 2and Docker Desktop <https://docs.docker.com/docker-for-windows/wsl/#prerequisites>`_.
122
+
2. `Install Debian from the Microsoft Store <https://www.microsoft.com/en-us/p/debian/9msvkqc78pk6>`_.
123
+
3. Set Debian as your default WSL 2 distro: ``wsl --set-default debian``.
124
+
4. Return to the Docker Desktop, choose ``Settings`` → ``Resources`` → ``WSL Integration`` and under "Enable integration with additional distros" select "Debian",
125
+
5. Reboot if you have not yet already.
126
+
6. Launch Debian and follow the Linux instructions above (``apt-get install cwltool`` or use the ``venv`` method)
123
127
124
128
Network problems from within WSL2? Try `these instructions <https://github.com/microsoft/WSL/issues/4731#issuecomment-702176954>`_ followed by ``wsl --shutdown``.
125
129
126
130
``cwltool`` development version
127
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
131
+
===============================
128
132
129
133
Or you can skip the direct ``pip`` commands above and install the latest development version of ``cwltool``:
130
134
@@ -140,33 +144,42 @@ maintain which implementation ``cwl-runner`` points to via a symbolic file
140
144
system link or `another facility <https://wiki.debian.org/DebianAlternatives>`_.
141
145
142
146
Recommended Software
143
-
^^^^^^^^^^^^^^^^^^^^
147
+
====================
148
+
149
+
We strongly suggested to have the following installed:
150
+
151
+
* One of the following software container engines
144
152
145
-
You may also want to have the following installed:
Use ``--pack`` to combine a workflow made up of multiple files into a
275
290
single compound document. This operation takes all the CWL files
@@ -285,7 +300,7 @@ document. The top-level workflow is named ``#main``.
285
300
286
301
287
302
Running only part of a workflow
288
-
-------------------------------
303
+
===============================
289
304
290
305
You can run a partial workflow with the ``--target`` (``-t``) option. This
291
306
takes the name of an output parameter, workflow step, or input
@@ -315,7 +330,7 @@ selected targets.
315
330
316
331
317
332
Visualizing a CWL document
318
-
--------------------------
333
+
==========================
319
334
320
335
The ``--print-dot`` option will print a file suitable for Graphviz ``dot`` program. Here is a bash onliner to generate a Scalable Vector Graphic (SVG) file:
321
336
@@ -324,7 +339,7 @@ The ``--print-dot`` option will print a file suitable for Graphviz ``dot`` progr
``http://commonwl.org/cwltool#MPIRequirement``. When the tool
@@ -669,7 +684,7 @@ given in the following table; all are optional.
669
684
670
685
671
686
Enabling Fast Parser (experimental)
672
-
-----------------------------------
687
+
===================================
673
688
674
689
For very large workflows, `cwltool` can spend a lot of time in
675
690
initialization, before the first step runs. There is an experimental
@@ -682,12 +697,12 @@ initialization overhead, however as of this writing it has several limitations:
682
697
683
698
- Several other cases fail, as documented in https://github.com/common-workflow-language/cwltool/pull/1720
684
699
685
-
===========
700
+
***********
686
701
Development
687
-
===========
702
+
***********
688
703
689
704
Running tests locally
690
-
---------------------
705
+
=====================
691
706
692
707
- Running basic tests ``(/tests)``:
693
708
@@ -719,7 +734,7 @@ program
719
734
Instructions for running these tests can be found in the Common Workflow Language Specification repository at https://github.com/common-workflow-language/common-workflow-language/blob/main/CONFORMANCE_TESTS.md .
720
735
721
736
Import as a module
722
-
------------------
737
+
==================
723
738
724
739
Add
725
740
@@ -743,7 +758,7 @@ The easiest way to use cwltool to run a tool or workflow from Python is to use a
743
758
744
759
745
760
CWL Tool Control Flow
746
-
---------------------
761
+
=====================
747
762
748
763
Technical outline of how cwltool works internally, for maintainers.
749
764
@@ -801,9 +816,8 @@ Technical outline of how cwltool works internally, for maintainers.
801
816
Docker container, waits for it to complete, collects output, and makes
802
817
the output callback.
803
818
804
-
805
819
Extension points
806
-
----------------
820
+
================
807
821
808
822
The following functions can be passed to main() to override or augment
0 commit comments