Skip to content

[WIP] Draft 4.dev1 #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 97 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
bcfc876
Improve README.rst
Jan 27, 2016
b86a0a5
Fix block indent
Jan 27, 2016
a5877dd
Fix spec link.
Jan 27, 2016
2749d4f
Start working on user guide
Jan 29, 2016
d382c03
Support RDF schemas defined in turtle.
Feb 2, 2016
9635289
Merge branch 'master' into userguide2
Feb 9, 2016
3a902d5
User guide WIP
Feb 10, 2016
4606c70
User guide work in progress.
Feb 11, 2016
a89ca87
Setup flake8 rules for this project...
jmchilton Feb 15, 2016
35addda
Add tox.ini file to run lint in isolated environment.
jmchilton Feb 15, 2016
dcf28e5
Add Travis profile for this project.
jmchilton Feb 15, 2016
33e6dc6
Add tox to .gitignore.
jmchilton Feb 15, 2016
0792960
Enable Python 2.6 to load schema salad...
jmchilton Feb 15, 2016
ce4db11
Add missing tests init file requires for tests.
jmchilton Feb 15, 2016
d94e603
Add unit tests to tox.
jmchilton Feb 15, 2016
803254c
Add more tox generated files to .gitignore.
jmchilton Feb 15, 2016
2def3a1
Add more travis testing.
jmchilton Feb 15, 2016
6f95dcf
Merge pull request #13 from jmchilton/lint
mr-c Feb 15, 2016
4c008ed
Merge pull request #14 from jmchilton/python26
mr-c Feb 15, 2016
1b0707c
More user guide work
Feb 16, 2016
f4fe262
add optional static typing
mr-c Feb 22, 2016
ea41264
fix comment formatting
mr-c Feb 22, 2016
89a10b5
break import cycle; add some py3 compat
mr-c Feb 22, 2016
206e1cd
backout some changes
mr-c Feb 22, 2016
4ee800a
py3 compat
mr-c Feb 23, 2016
cdafe99
restore py2.6 compat
mr-c Feb 23, 2016
b554957
fix py version test logic
mr-c Feb 23, 2016
55a6bac
drop non-functioning codepaths
mr-c Feb 23, 2016
ee31829
update travis+tox
mr-c Feb 23, 2016
57dad1e
travis doesn't have py3.5 yet
mr-c Feb 23, 2016
c4e4c90
Tidy versioned dependencies
mr-c Feb 23, 2016
66665d0
commas, sheesh
mr-c Feb 23, 2016
7983b1d
right, more quoting, okay
mr-c Feb 23, 2016
9ef003e
apply wisdom from @jmchilton
mr-c Feb 23, 2016
6e7c30b
Merge pull request #15 from common-workflow-language/static-typing
jmchilton Feb 23, 2016
26a3afb
run_test.sh add -l to list tests.
Mar 4, 2016
958d92b
drop unused import
mr-c Mar 7, 2016
e7ef703
update URL
mr-c Mar 7, 2016
12ae120
add classifiers to signal py3 compat
mr-c Mar 7, 2016
0c529ff
u+x setup.py
mr-c Mar 7, 2016
d181861
create universal wheel
mr-c Mar 7, 2016
1a8f81b
bump version
mr-c Mar 7, 2016
1aa3455
Merge pull request #16 from common-workflow-language/add-classifiers
mr-c Mar 7, 2016
99f4b26
fix typo
mr-c Mar 7, 2016
5bd04b1
Merge branch 'master' of github.com:common-workflow-language/common-w…
Mar 7, 2016
ff4f93e
Add tests for interaction of input valueFrom expression and different…
Mar 7, 2016
5ac4858
fix title on commonwl.org
mr-c Mar 13, 2016
dadd017
make this easier to run
mr-c Mar 15, 2016
a72ad5e
Merge pull request #191 from common-workflow-language/mr-c-patch-1
mr-c Mar 15, 2016
aeda57e
Add missing gittaggers.py to produce timestamped version numbers.
Mar 15, 2016
f9edc57
Update README.md
stain Mar 16, 2016
b2525a6
Update README.md
stain Mar 16, 2016
94d290b
Add ez_setup.py to bootstrap recent setuptools.
Mar 16, 2016
a147a2c
Add MANIFEST.in
Mar 16, 2016
04a956d
Take out :python_version and remove extras_require because of setuptools
Mar 16, 2016
56c33e2
Userguide wip
Mar 17, 2016
9c8c36f
tolerate git not being installed
mr-c Mar 18, 2016
10c23e9
add citation information
mr-c Mar 18, 2016
0f438d7
make this obvious
mr-c Mar 18, 2016
3e8878a
Exit gracefully on run_tests.sh -l
Mar 16, 2016
031f9bc
Expand discussion of input parameters, start discussing output parame…
Mar 23, 2016
960eb84
Discussion output parameters and capturing stdout.
Mar 23, 2016
521add7
Discuss parameter references.
Mar 23, 2016
101067c
Update tests for workflow scatter+valueFrom to test valueFrom on non-…
Mar 23, 2016
8582797
"Brand" link now uses CWL logo.
Mar 23, 2016
0914ea8
Merge branch 'master' into userguide2
Mar 23, 2016
15c994c
Create correct directory structure for site when running linkchecker.
Mar 24, 2016
72b175f
Add cwlpath.js
Mar 25, 2016
0ea827a
Merge branch 'master' into userguide2
Mar 25, 2016
53e9890
Move examples to draft-3/examples instead of mixing in with conforman…
Mar 25, 2016
f011a46
Fix to use relative paths.
Mar 25, 2016
ab7b1e4
Add section on DockerRequirement, begin discussion of arguments.
Mar 26, 2016
759e0f9
Add "arguments", array examples.
Mar 28, 2016
390dade
Talking about records
Mar 28, 2016
e42b078
Added cwlVersion to examples
Mar 29, 2016
d02a18a
Merge branch 'userguide2'
Mar 29, 2016
c47ad23
Update userguide input dependencies.
Mar 29, 2016
6530959
Add missing file.
Mar 29, 2016
953d8b6
Add "Creating files at runtime" to UserGuide
Mar 31, 2016
0f6ddf2
Add missing files / links. Another section WIP.
Apr 1, 2016
a549f35
Add Javascript expression section to UserGuide. Add conformance test…
Apr 5, 2016
d6e55cc
Remove non-participating organization
mr-c Apr 5, 2016
4daac6d
Update userguide inputs file.
Apr 8, 2016
8008eb7
Talk about Javascript. Fix CWLType.
Apr 13, 2016
f4daf16
Remove redundant example- from examples.
Apr 13, 2016
c6146a0
Merge pull request #192 from mr-c/citation
mr-c Apr 14, 2016
516793f
Switch inputs to use yaml instead of json.
Apr 15, 2016
d34d2ac
Merge branch 'master' of github.com:common-workflow-language/common-w…
Apr 15, 2016
82a09b7
enable coverage testing
mr-c Apr 17, 2016
7b06209
Update docker.cwl
Apr 18, 2016
8596238
Merge pull request #199 from neevor/patch-1
mr-c Apr 19, 2016
e4938b6
Branched draft-4 spec.
Mar 29, 2016
bff8518
Merge commit 'e4938b6da48c09e2755b84cd9502d21c6d733386' into draft-4
mr-c Apr 21, 2016
1473e34
document adding a new draft
mr-c Apr 21, 2016
ba8b894
Add 'draft-4/salad/' from commit '9c8c36f4defedbd55af1956a915dbf5373e…
mr-c Apr 21, 2016
a7fd192
point to new draft
mr-c Apr 21, 2016
7ca86ac
Merge commit 'ba8b89416eefc8d23787d02004279cac04da447d' into draft-4
mr-c Apr 21, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cwltool/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@
def get_schema(): # type: () -> Tuple[Loader,avro.schema.Names,List[Dict[str,Any]]]
cache = {}
for f in cwl_files:
rs = resource_stream(__name__, 'schemas/draft-3/' + f)
rs = resource_stream(__name__, 'schemas/draft-4/' + f)
cache["https://w3id.org/cwl/" + f] = rs.read()
rs.close()

for f in salad_files:
rs = resource_stream(__name__, 'schemas/draft-3/salad/schema_salad/metaschema/' + f)
rs = resource_stream(__name__, 'schemas/draft-4/salad/schema_salad/metaschema/' + f)
cache["https://w3id.org/cwl/salad/schema_salad/metaschema/" + f] = rs.read()
rs.close()

Expand Down
21 changes: 21 additions & 0 deletions cwltool/schemas/CITATION
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
To cite the Common Workflow Language standard in a publication, please use:

Amstutz, Peter; Andeer, Robin; Chapman, Brad; Chilton, John; Crusoe, Michael
R.; Valls Guimerà, Roman; Carrasco Hernandez, Guillermo; Ivkovic, Sinisa;
Kartashov, Andrey; Kern, John; Leehr, Dan; Ménager, Hervé; Mikheev, Maxim;
Pierce, Tim; Randall, Josh; Soiland-Reyes, Stian; Stojanovic, Luka; Tijanić,
Nebojša (2016): Common Workflow Language, draft 3. figshare.
https://dx.doi.org/10.6084/m9.figshare.3115156.v1

@data{common-workflow-language-draft3,
doi = {10.6084/m9.figshare.3115156.v1},
url = {http://dx.doi.org/10.6084/m9.figshare.3115156.v1},
author = {Peter Amstutz; Robin Andeer; Brad Chapman; John Chilton;
Michael R. Crusoe; Roman Valls Guimerà; Guillermo Carrasco Hernandez;
Sinisa Ivkovic; Andrey Kartashov; John Kern; Dan Leehr; Hervé Ménager;
Maxim Mikheev; Tim Pierce; Josh Randall; Stian Soiland-Reyes; Luka Stojanovic;
Nebojša Tijanić; },
publisher = {Figshare},
title = {Common Workflow Language, draft 3},
year = {2016}
}
17 changes: 13 additions & 4 deletions cwltool/schemas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,19 @@ Bioinformatics, Medical Imaging, Chemistry, Physics, and Astronomy.

## CWL Specification

The current stable specification is [draft 3](http://common-workflow-language.github.io/draft-3/):
The current stable specification is [draft 3](http://www.commonwl.org/draft-3/):

http://common-workflow-language.github.io/draft-3/
http://www.commonwl.org/draft-3/

Older drafts: [draft-1](https://github.com/common-workflow-language/common-workflow-language/tree/master/draft-1), [draft-2](http://common-workflow-language.github.io/draft-2/)
The next work-in-progress specification is [draft 4](http://www.commonwl.org/draft-4/):

http://www.commonwl.org/draft-4/

Older drafts: [draft-1](https://github.com/common-workflow-language/common-workflow-language/tree/master/draft-1), [draft-2](http://www.commonwl.org/draft-2/)

### Citation

Please cite https://dx.doi.org/10.6084/m9.figshare.3115156.v1

## Implementations

Expand All @@ -44,6 +52,8 @@ Some of the software supporting running Common Workflow Language tools or workfl
[Airflow wiki page](https://github.com/common-workflow-language/common-workflow-language/wiki/SciDAP)
* [cwl2script](https://github.com/common-workflow-language/cwl2script),
[cwl2script page](https://github.com/common-workflow-language/common-workflow-language/wiki/cwl2script)
* [Apache Taverna](http://taverna.incubator.apache.org/),
[Apache Taverna wiki page](https://github.com/common-workflow-language/common-workflow-language/wiki/Taverna)

## Examples

Expand Down Expand Up @@ -101,7 +111,6 @@ Conduct](https://github.com/common-workflow-language/common-workflow-language/bl
* [Apache Taverna](http://taverna.incubator.apache.org/)
* [Institut Pasteur](http://www.pasteur.fr)
* [Wellcome Trust Sanger Institute](https://www.sanger.ac.uk/)
* [University of California Davis](http://ucdavis.edu)
* [University of California Santa Cruz](https://cbse.soe.ucsc.edu/research/bioinfo)
* [Harvard Chan School of Public Health](http://www.hsph.harvard.edu/)
* [Cincinnati Children's Hospital Medical Center](http://www.cincinnatichildrens.org/)
Expand Down
21 changes: 21 additions & 0 deletions cwltool/schemas/doc/add-new-draft.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
How to make a new draft version of the CWL spec

1. Duplicate prior draft-n directory to draft-n+1 in a branch
2. Update references to the new draft name.
3. Pull in the latest metaschema

git subtree add -P draft-4/salad schema_salad_repo/master

4. In the reference implementation (cwltool): make a new branch, and update the
subtree checkout of the spec:

git subtree merge -P cwltool/schemas/ cwl_repo/draft-4

Where `cwl_repo` is the remote repository for the CWL specifications.
4. In the reference implementation, teach it about the new draft version:

a. Edit `cwltool/update.py`: append a new entry to the updates dictionary and
change the previous last version to point to an update function
b. Edit `cwltool/process.py`: update `get_schema` to look in the new
directory
c. Edit `setup.py` to include the new schemas in the `package_data` stanza
2 changes: 1 addition & 1 deletion cwltool/schemas/draft-3/Process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $graph:
type: enum
extends: "sld:PrimitiveType"
symbols:
- File
- cwl:File
doc:
- "Extends primitive types with the concept of a file as a first class type."
- "File: A File object"
Expand Down
5 changes: 3 additions & 2 deletions cwltool/schemas/draft-3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

The CWL specifications are divided up into several documents.

<!--
The [User Guide](UserGuide.html) provides a gentle introduction to writing CWL
command line tools and workflows.
-->

The [Command Line Tool Description Specification](CommandLineTool.html)
specifies the document schema and execution semantics for wrapping and
Expand All @@ -19,3 +17,6 @@ The
[Semantic Annotations for Linked Avro Data (SALAD) Specification](SchemaSalad.html)
specifies the preprocessing steps that must be applied when loading CWL
documents and the schema language used to write the above specifications.

If you use the CWL specifications or distribute CWL descriptions with a
publication you should [cite the standard](https://dx.doi.org/10.6084/m9.figshare.3115156.v1)
Loading