Age | Commit message (Collapse) | Author |
|
* NEWS.org (Changes in 0.3.0): New section.
|
|
* .guix/ccwl-distribution.scm: New file.
|
|
* Makefile (dist): Move $(dist_archive).asc to ...
(distsign): ... here.
|
|
* Makefile (clean): Delete .depends.
|
|
We now build the website as a computed-file G-expression in a Guix
channel. Guix channels always discard the git repository information,
and don't have access to the git tags. We can fix this problem later
if and when we switch to using tissue for the website.
* build-aux/build-home-page.el (org-dblock-write:download): Do not
infer release information from git tags. Hard-code them.
|
|
This reverts commit af2f18534bd38703b98cb329d3110a8073d39fb6. When
building as a Guix channel, the complete git repository is not
available anyway.
|
|
* configure.scm (version): Sort tags latest first when picking out the
version.
|
|
* .guix/ccwl-package.scm: Import git-minimal from (gnu packages
version-control).
(ccwl-source-with-git-repo): New variable.
(ccwl-website-gexp): Make git visible via PATH. Use
ccwl-source-with-git-repo.
|
|
* .guix/ccwl-package.scm: Import emacs-minimal from (gnu packages
emacs), font-charter and font-fira-code from (gnu packages fonts),
%guile-build-system-modules from (guix build-system guile), and (guix
profiles).
(ccwl-website-gexp, ccwl-website): New variables.
|
|
* ccwl/ccwl.scm (collect-steps): Deduplicate global workflow input
keys across branches of tees.
* tests/ccwl.scm (key, collect-steps): New variables.
("rename should work even on the final output of a
workflow"): Update order of elements in expected list.
("tee must deduplicate global workflow input keys"): New test.
* ccwl/utils.scm (append-mapn): Delete function.
* tests/utils.scm ("append-mapn"): Delete test.
|
|
* tests/ccwl.scm ("rename should work even on the final output of a
workflow"): Put expected expression before actual expression.
|
|
* ccwl/ccwl.scm (collect-steps): Implement identity construct.
* doc/ccwl.skb (Cookbook)[The identity construct]: New section.
* doc/identity-construct.scm: New file.
|
|
This was missed out on an earlier commit this year.
* tests/yaml.scm: Bump copyright year.
|
|
* ccwl/yaml.scm (display-atom): Escape strings if they contain any
indicator character.
|
|
* ccwl/ccwl.scm (<input>)[separator]: New field.
* ccwl/ccwl.scm (run-arg-position, run-args): Support array input
specifiers.
(run-arg-separator): New function.
(command): Set separator on input objects.
* ccwl/cwl.scm (input->cwl-scm): Serialize itemSeparator.
* tests/ccwl.scm ("commands with non-string #:separator parameters
must raise a &ccwl-violation condition"): New test.
* doc/ccwl.skb (Cookbook)[Array input item separators]: New section.
* doc/array-input-item-separators.scm: New file.
|
|
* ccwl/ccwl.scm (run-arg-prefix): Operate on a specific run argument,
rather than on a list of them.
(command): Scan run-args only once when constructing inputs.
|
|
Parsing run arguments recursively allows us to share code between
different pattern matchers. For example, the input matcher and
the (prefix input) matcher can share code. This will come in handy as
our pattern matchers grow more complex.
* ccwl/ccwl.scm (run-args): Parse run arguments recursively.
|
|
* .dir-locals.el (scheme-mode): Indent test-condition.
|
|
* doc/ccwl.skb (Tutorial)[Let's write a spell check workflow]: Update
source reference to rename.
|
|
* ccwl/ccwl.scm (collect-steps): Comment on passing global workflow
inputs through all commands.
|
|
With recursion, we no longer need an explicit call to map, and the
code is less deeply nested. This is good for clarity.
* ccwl/ccwl.scm (collect-steps): Reimplement rename recursively.
|
|
* ccwl/ccwl.scm (collect-steps): Report unknown keys passed to rename.
* tests/ccwl.scm ("rename with unknown key must raise a
&ccwl-violation condition"): New test.
|
|
* tests/ccwl.scm ("rename with non-keyword arguments must raise a
&ccwl-violation condition"): New test.
|
|
* tests/ccwl.scm (test-condition): New syntax.
(ccwl-violation-with-message?): New function.
Rewrite almost all tests using test-condition.
|
|
This code remnant actually compiled successfully and was well-hidden
from sight!
* ccwl/ccwl.scm (key->output): Delete code remnant from previous
editing.
|
|
* ccwl/ccwl.scm (collect-steps): Error out if arguments have been
supplied more than once.
|
|
* scripts/ccwl (main): When ccwl crashes, say so explicitly.
|
|
Setting the other and binding fields to #f is a type violation. It
messes with code that expects these fields to always contain lists.
* ccwl/ccwl.scm (cwl-workflow): Set other and binding fields of inputs
and outputs to the empty list.
|
|
cwl-workflow needs to be a macro so we have access to syntax objects
necessary to raise a &cwl-violation condition.
* ccwl/ccwl.scm (cwl-workflow): Rewrite as macro. Report error if CWL
file does not exist.
|
|
* ccwl/ccwl.scm (function-inputs, function-outputs, function-object):
Support <workflow> objects as functions.
(<workflow>): Move above function-outputs.
* ccwl/cwl.scm (workflow->cwl-scm): Allow nested workflows.
|
|
* ccwl/ccwl.scm (ensure-yaml-serializable): Accept parameter name for
&formatted-message condition.
(input): Explicitly pass parameter name #:other. Restrict #:binding
parameter to YAML serializable trees.
*
doc/capture-output-file-with-parameter-reference.scm (extract-specific-file),
doc/capture-output-file.scm (extract),
doc/decompress-compile-run.scm (compile): Pass an YAML serializable
tree, not an expression, as the #:binding parameter.
|
|
* ccwl/ccwl.scm (collect-steps): Report errors in rename mappings.
|
|
* ccwl/utils.scm (pairify): Ignore extra elements when list has an odd
number of elements.
* tests/utils.scm ("pairify must ignore extra elements when list has
an odd number of elements"): New test.
|
|
* ccwl/ccwl.scm (collect-steps): Implement scatter-cross and
scatter-nested-cross.
(key->output): Nest output array types for nested cross product
scatters.
|
|
* ccwl/ccwl.scm (type->syntax): New function.
(key->output): Use type->syntax.
|
|
* ccwl/ui.scm (report-formatted-message): Colorize format specifiers
not format arguments.
* tests/ui.scm ("report-formatted-message must not fail on arguments
that are not strings"): New test.
|
|
* ccwl/yaml.scm (display-dictionary-entry): Serialize atomic values on
the same line.
* tests/yaml.scm ("dictionary keys that map to an atomic value must be
serialized on the same line"): New test.
|
|
Identifiers are important so the generated HTML documentation can have
permanent URIs to all chapters and sections. We are not too concerned
with adding identifiers to subsections since we don't list them in the
table of contents.
* doc/ccwl.skb: Add chapter and section identifiers to all chapters
and sections.
|
|
* ccwl/yaml.scm (scm->yaml): Comment on cases handled.
|
|
* ccwl/yaml.scm (atom?): New function.
(display-dictionary-entry, scm->yaml): Display arrays with a single
atomic element on the same line.
* tests/yaml.scm ("strings with hyphen characters should be escaped",
"strings with asterisk characters should be escaped"): Update tests
with new behaviour.
("single element vectors must be serialized on the same line"): New
test.
|
|
* ccwl/ccwl.scm (construct-type-syntax): Construct types recursively
to support nested arrays.
(key->output): Recursively convert stdout types to File types.
* ccwl/cwl.scm (type->cwl): New function.
(input->cwl-scm, output->cwl-scm): Use type->cwl.
* tests/ccwl.scm (make-array-type): New function.
(construct-type-syntax-wrapper): New syntax.
("construct-type-syntax on primitive types", "construct-type-syntax on
array types", "construct-type-syntax on nested array types"): New
tests.
* tests/cwl.scm, doc/array-types.scm, doc/nested-array-types.scm: New
files.
* doc/ccwl.skb (Cookbook)[Array types]: New section.
|
|
I forgot to add this file in my previous commit.
* doc/scatter-gather.scm: New file.
|
|
* ccwl/ccwl.scm (<step>): Wrap constructor make-step.
[scattered-inputs, scatter-method]: New fields.
(collect-scatter-step): New function.
(collect-steps): Implement scatter.
(key->output): If step scatters, convert output to an array type.
(workflow): Add syntax to initialize scattered-inputs and
scatter-method fields of <step> object.
* ccwl/cwl.scm (workflow->cwl-scm): Add ScatterFeatureRequirement if
workflow contains scattering steps. Serialize scattered-inputs and
scatter-method.
* doc/ccwl.skb (Cookbook)[Scatter/gather]: New section.
|
|
* ccwl/ccwl.scm (key->output): Clarify in the docstring that this is
meant for workflow outputs only.
|
|
This conversation should be in ccwl.scm, not in cwl.scm. cwl.scm
should only deal with CWL serialization concerns.
* ccwl/cwl.scm (output->cwl-scm): Move conversion to ...
* ccwl/ccwl.scm (key->output): ... here.
(<output>)[type]: Add setter.
|
|
It is easier (no need to juggle complex with-syntax constructs) to do
more complicated operations outside of the scope of syntax.
* ccwl/ccwl.scm (key->output): Build output from key outside of
syntax.
|
|
* ccwl/ccwl.scm (<array-type>): New type.
(memoize, make-array-type, construct-type-syntax): New functions.
(input, output): Use construct-type-syntax.
* ccwl/cwl.scm (output->cwl-scm, input->cwl-scm): Render array types.
|
|
* ccwl/cwl.scm (output->cwl-scm): Handle both command and workflow
outputs. Accept #:workflow? argument to indicate workflow outputs.
(workflow->cwl-scm): Use output->cwl-scm.
|
|
* ccwl/cwl.scm (input->cwl-scm): New function.
(workflow->cwl-scm, command->cwl-scm): Use input->cwl-scm.
|
|
* ccwl/ccwl.scm (input=?): Delete function.
|