Skip to content

Commit 1473e34

Browse files
committed
document adding a new draft
1 parent e4938b6 commit 1473e34

File tree

4 files changed

+31
-34
lines changed

4 files changed

+31
-34
lines changed

doc/add-new-draft.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
How to make a new draft version of the CWL spec
2+
3+
1. Duplicate prior draft-n directory to draft-n+1 in a branch
4+
2. Update references to the new draft name.
5+
3. Pull in the latest metaschema
6+
7+
git subtree add -P draft-4/salad schema_salad_repo/master
8+
9+
4. In the reference implementation (cwltool): make a new branch, and update the
10+
subtree checkout of the spec:
11+
12+
git subtree merge -P cwltool/schemas/ cwl_repo/draft-4
13+
14+
Where `cwl_repo` is the remote repository for the CWL specifications.
15+
4. In the reference implementation, teach it about the new draft version:
16+
17+
a. Edit `cwltool/update.py`: append a new entry to the updates dictionary and
18+
change the previous last version to point to an update function
19+
b. Edit `cwltool/process.py`: update `get_schema` to look in the new
20+
directory
21+
c. Edit `setup.py` to include the new schemas in the `package_data` stanza

draft-4/CommandLineTool.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,10 @@ $graph:
3636
- {$include: intro.md}
3737

3838
- |
39-
## Introduction to draft 3
40-
41-
This specification represents the third milestone of the CWL group. Since
42-
draft-2, this draft introduces the following major changes and additions:
43-
44-
* Greatly simplified naming within a document with scoped identifiers, as
45-
described in the [Schema Salad specification](SchemaSalad.html).
46-
* The draft-2 concept of pluggable expression engines has been replaced
47-
by a [streamlined expression syntax](#Parameter_references)
48-
and standardization on [Javascript](#Expressions).
49-
* [File](#File) objects can now include a `format` field to indicate
50-
the file type.
51-
* The addition of [ShellCommandRequirement](#ShellCommandRequirement).
52-
* The addition of [ResourceRequirement](#ResourceRequirement).
53-
* The separation of CommandLineTool and Workflow components into
54-
separate specifications.
39+
## Introduction to draft 4
40+
41+
This specification represents the third milestone of the CWL group.
42+
Since draft-3, this draft introduces the following major changes and additions:
5543
5644
## Purpose
5745

draft-4/Process.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $namespaces:
66

77
$graph:
88

9-
- name: "Common Workflow Language, Draft 3"
9+
- name: "Common Workflow Language, Draft 4"
1010
type: documentation
1111
doc: {$include: concepts.md}
1212

draft-4/Workflow.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $graph:
99
type: documentation
1010
doc:
1111
- |
12-
# Common Workflow Language (CWL) Workflow Description, draft 3
12+
# Common Workflow Language (CWL) Workflow Description, draft 4
1313
1414
This version:
1515
* https://w3id.org/cwl/draft-4/
@@ -32,22 +32,10 @@ $graph:
3232

3333
- |
3434
35-
## Introduction to draft 3
35+
## Introduction to draft 4
3636
37-
This specification represents the third milestone of the CWL group. Since
38-
draft-2, this draft introduces the following changes and additions:
39-
40-
* Greatly simplified naming within a document with scoped identifiers, as
41-
described in the [Schema Salad specification](SchemaSalad.html).
42-
* The draft-2 concept of pluggable expression engines has been replaced
43-
by a [streamlined expression syntax)[#Parameter_references]
44-
and standardization on [Javascript](#Expressions).
45-
* [File](#File) objects can now include a `format` field to indicate
46-
the file type.
47-
* The addition of [MultipleInputFeatureRequirement](#MultipleInputFeatureRequirement).
48-
* The addition of [StepInputExpressionRequirement](#StepInputExpressionRequirement).
49-
* The separation of Workflow and CommandLineTool components into
50-
separate specifications.
37+
This specification represents the third milestone of the CWL group. Since
38+
draft-3, this draft introduces the following changes and additions:
5139
5240
## Purpose
5341
@@ -470,4 +458,4 @@ $graph:
470458
extends: "#ProcessRequirement"
471459
doc: |
472460
Indicate that the workflow platform must support the `valueFrom` field
473-
of [WorkflowStepInput](#WorkflowStepInput).
461+
of [WorkflowStepInput](#WorkflowStepInput).

0 commit comments

Comments
 (0)