Skip to content
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

2023 January release #373

Merged
merged 56 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
8e255b4
Update command to install graphviz (#307)
dear-ore Oct 18, 2022
828f41c
YAML collection require a space after the colon (#301)
Fienne Oct 18, 2022
2ee768c
add attribution for Bamiwo Aluko
mr-c Oct 18, 2022
f9e63da
It should be stated that comments start with # (#300)
dear-ore Oct 18, 2022
864f866
Changing command to create a virtual environment (#311)
dear-ore Oct 19, 2022
3b0e1a6
fix typo
mr-c Oct 19, 2022
676582f
Made modifications to pages (#299)
Mackenzie-OO7 Oct 19, 2022
c6daa45
Update prerequisites.md (#312)
dear-ore Oct 19, 2022
8b5809d
fixed typos (#314)
Mackenzie-OO7 Oct 19, 2022
d269169
Docker Clarity (#313)
smyja Oct 19, 2022
e24e362
format the arrangement of the license terms (#317)
Fienne Oct 19, 2022
debd294
Update prerequisites.md (#320)
khaiyra Oct 20, 2022
aaef445
edit hd5 to hdf5 and fix broken link (#323)
Fienne Oct 20, 2022
8b034bb
updated visualization command (#326)
MARVEBUKA Oct 24, 2022
8e9dee1
Update basic-concepts.md (#319)
bamiwoaluko Oct 24, 2022
217d7d8
Update basic-concepts.md (#324)
khaiyra Oct 24, 2022
0b55dc7
Updated titles to use consistent capitalization (#330)
MARVEBUKA Oct 24, 2022
7b71012
Network Access documentation (#335)
khaiyra Oct 28, 2022
ea6ba8e
Add CodeQL workflow for GitHub code scanning (#345)
lgtm-com[bot] Nov 16, 2022
c90de32
Copy fonts style from commonwl.org
kinow Nov 13, 2022
e5e47e0
Update template from pydata sphinx theme
kinow Nov 13, 2022
385340e
clarify CWL runner
mr-c Nov 22, 2022
ec5285f
clarify local script running
mr-c Nov 22, 2022
c46b733
use CWL version 1.2 everywhere
mr-c Nov 22, 2022
1e5d807
rename CWL tests file
mr-c Nov 22, 2022
288d912
add exclude_cache_cmd domain for CMDCache
xjf729 Jan 3, 2023
a2e4fed
add community link to the navbar (#356)
Mackenzie-OO7 Jan 3, 2023
e87eaa2
add PO file for English (#359)
mr-c Jan 24, 2023
712e507
include template for new languages
mr-c Jan 24, 2023
0eacbc6
don't translate English into English
mr-c Jan 24, 2023
22702ac
Added translation using Weblate (Spanish) (#360)
weblate Jan 24, 2023
c2115d7
collapse the translation references
mr-c Jan 24, 2023
230d934
refresh ES
mr-c Jan 24, 2023
76b2479
Translations update from Hosted Weblate (#361)
weblate Jan 24, 2023
f067761
Translations update from Hosted Weblate (#363)
weblate Jan 25, 2023
eb2c36b
remove unused trademarks sections
mr-c Jan 25, 2023
ba5c9e5
Add troubleshooting docs (#364)
kinow Jan 25, 2023
2d7f559
Translated using Weblate (Spanish)
mr-c Jan 25, 2023
055f34d
Switch to a single gettext
mr-c Jan 25, 2023
4ef3d03
Merge remote-tracking branch 'weblate/main'
mr-c Jan 25, 2023
3a715f9
add Weblate to README
mr-c Jan 25, 2023
a809834
convert license to RST to restore indirect links (#366)
mr-c Jan 26, 2023
8efb720
also fix the Spanish translation
mr-c Jan 27, 2023
354dbb2
Patch MyST to keep the context needed to translate Markdown files
kinow Jan 26, 2023
43a5611
Revert "also fix the Spanish translation"
mr-c Jan 27, 2023
eab42db
Revert "convert license to RST to restore indirect links (#366)"
mr-c Jan 27, 2023
3cf11ae
Makefile: drop default turn warnings into errors option
mr-c Jan 27, 2023
0efc0ad
Translated using Weblate (Spanish)
mr-c Jan 27, 2023
761ad42
remove obsolete .rst translations
mr-c Jan 27, 2023
6b74133
add command to update translations
mr-c Jan 27, 2023
8bc1400
Apply suggestions made on #337
tetron Jan 27, 2023
291c637
Merge branch 'release' into staging
tetron Jan 27, 2023
ab019e0
Replace Travis by GH Actions
kinow Feb 8, 2023
b22539f
Add SPHINXOPTS to the make watch build
kinow Feb 1, 2023
229972b
Merge branch 'main' into staging
tetron Feb 10, 2023
59967d0
373 pr updates (#432)
alexiswl Oct 25, 2023
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
44 changes: 44 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI Tests

# Migrated from .travis.yml, based on cwltool's ci-tests.yml.
# See .travis.yml in git history for previous changes and configurations.

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:

ci_tests:
name: CI Tests
runs-on: ubuntu-latest
strategy:
matrix:
py-ver-major: [ 3 ]
py-ver-minor: [ 9, 10, 11 ]

env:
py-semver: ${{ format('{0}.{1}', matrix.py-ver-major, matrix.py-ver-minor) }}

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.py-semver }}
cache: pip
cache-dependency-path: |
**/setup.cfg

- run: pip install -U pip setuptools wheel typing
- run: pip install -e .[all]

- run: make RUNNER=cwltool unittest-examples
42 changes: 42 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "CodeQL"

on:
push:
branches: [ "main", "gh-pages", "release" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "59 14 * * 5"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ javascript, python ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
if: ${{ matrix.language == 'javascript' || matrix.language == 'python' }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"name": "Andrew Jesaitis"
},
{
"name": "bamiwoaluko"
"name": "Bamiwo Aluko"
},
{
"orcid": "https://orcid.org/0000-0002-6206-4638",
Expand Down
2 changes: 1 addition & 1 deletion AUTHORS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Thank you to the following contributors (in alphabetical order by user name):
* Alain Domissy (@alaindomissy)
* Andrew Jesaitis (@andrewjesaitis)
* @bamiwoaluko
* Bamiwo Aluko (@bamiwoaluko)
* Benjamin Carr (@BenjaminHCCarr) <https://orcid.org/0000-0002-6206-4638>
* Michele Mastropietro (@elehcim) <https://orcid.org/0000-0002-6324-5713>
* Emannuel Fernandes de Oliveira Carvalho (@emannuelOC)
Expand Down
43 changes: 39 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,25 +106,29 @@ The `dot` program from Graphviz is needed to render some of the diagrams.

* For Debian/Ubuntu users:
```bash
sudo apt get install graphviz
sudo apt-get install graphviz
```
* For non-Debian/Ubuntu users, follow the directions at [the GraphViz download site](https://graphviz.org/download).
```bash
# Create and activate a virtual environment
python -m venv venv
python3 -m venv venv
source venv/bin/activate
# update the version of pip, setuptools, and wheel
(venv) pip install -U pip setuptools wheel
# Install all the dependencies in your virtual environment.
(venv) pip install ".[all]"
# Create the HTML to visualize locally
(venv) make html
(venv) open _build/index.html
(venv) open _build/html/index.html
# Or you can start a serve that watches for local file changes
(venv) make watch
# Open <http://localhost:8000/> in your browser
```

You can use `udocker` or any other Docker compatible engine to build the
user guide, by setting the following environment variable:
`CWLTOOL_OPTIONS=--udocker`, or `CWLTOOL_OPTIONS=--podman` for Podman, or `CWLTOOL_OPTIONS=--singularity` for Singularity/Apptainer.

> NOTE: When you modify the packages installed with apt or pip, please verify
> if the change needs to be applied to either or to both of CI and readthedocs.
> ReadTheDocs builds and deploys previews. CI builds and deploys production
Expand All @@ -148,7 +152,10 @@ are still working after the change.
Use “tool description” not “tool wrapper” for describing the first argument
given to the `cwl-runner` or `cwltool` commands.

### Code examples

### Code Examples

All CWL documents should be version 1.2 unless there is a very good reason otherwise.

To include code into a Markdown file you have two options. For external files use
the following command:
Expand Down Expand Up @@ -182,6 +189,34 @@ If you are having trouble with links to sections or code blocks, it might
be due to duplicated sections, or to spaces or other characters. To
preview the generated links, use the `myst-anchors` tool.

### Troubleshooting

General advice for troubleshooting is to increase the verbosity of Sphinx
logs. When using `make`, change your command to the following pattern:
`make SPHINXOPTS="-vvv" html`. Or if you are using `sphinx-build`, then
use the following: `sphinx-build -vvv -b html src build/`.

It is also worth removing build directories and files such as `_build`, `build`,
and [`~/.cache/salad`](https://github.com/common-workflow-language/user_guide/issues/268#issuecomment-1276068865).
You may want to start afresh with a new Python virtual environment,
installing the dependencies from scratch.

If running `make html` or `make watch` appears to run fine but [gets stuck
](https://github.com/common-workflow-language/user_guide/issues/268) at some
part of the process (`10%`, `33%`, `57%`, etc.) for longer than 2-5 minutes
you may have to try the following:

1. Check if the Python dependencies installed in your Python virtual environment
have updates available (you can re-create the virtual environment, use `--upgrade`
for `pip`, or manually verify in PyPI and `pip`).
2. Use `top` or `htop` to find out if there is any `cwltool` command running. Then
try running that command individually to see what is the error message.
3. Upgrade your version of `docker` if you have [an error message](
https://github.com/docker/compose/issues/8121#issuecomment-806055733) similar to
`docker: Failed to create the container ID file: open /tmp/....cid: no such file or directory.`.
4. Try using `udocker` instead of `docker`, by using `pip` to install it, and setting
`CWLTOOL_OPTIONS` to `--udocker`.

## Other Resources

General discussion of [Common Workflow Language][cwl-site] project
Expand Down
14 changes: 6 additions & 8 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ You are free:
for any purpose, even commercially.

The licensor cannot revoke these freedoms as long as you follow the
license terms.
license terms:


Under the following terms:

* **Attribution**---You must give appropriate credit (mentioning that
your work is derived from work that is Copyright © the Common Workflow
Expand All @@ -28,16 +28,14 @@ Under the following terms:
so in any reasonable manner, but not in any way that suggests the
licensor endorses you or your use.

**No additional restrictions**---You may not apply legal terms or
* **No additional restrictions**---You may not apply legal terms or
technological measures that legally restrict others from doing
anything the license permits. With the understanding that:

Notices:

* You do not have to comply with the license for elements of the
* You do not have to comply with the license for elements of the
material in the public domain or where your use is permitted by an
applicable exception or limitation.
* No warranties are given. The license may not give you all of the
* No warranties are given. The license may not give you all of the
permissions necessary for your intended use. For example, other
rights such as publicity, privacy, or moral rights may limit how you
use the material.
Expand All @@ -55,7 +53,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

## Trademark



[cc-by-human]: https://creativecommons.org/licenses/by/4.0/
Expand Down
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS = "-W"
#SPHINXOPTS = # was "-W" (turn warnings into errors)
SPHINXBUILD = sphinx-build
SOURCEDIR = src
BUILDDIR = _build
Expand All @@ -25,15 +25,17 @@ watch: clean
@echo
@echo "Building and watching for changes in the documentation."
sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)" \
-b html \
--ignore='**venv' \
--ignore='**.github' \
--ignore='*.egg-info' \
--ignore='**_includes/**/*.txt' \
--watch='cwl'
--watch='cwl' \
$(SPHINXOPTS) $(O)

## unittest-examples :
unittest-examples:
cd src/_includes/cwl; cwltest --test=conformance-test.yml --tool=${RUNNER}
cd src/_includes/cwl; cwltest --test=cwl_tests.yml --tool=${RUNNER}

## check-json :
check-json:
Expand All @@ -42,6 +44,10 @@ check-json:
container-pull:
for container in $$(git grep dockerPull $$(git ls-files *.cwl) | awk '-F: ' '{print $$3}'); do docker pull $${container}; done

update_translations: gettext
sphinx-intl update -p _build/gettext


.PHONY: help clean watch unittest-examples check-json Makefile

# Catch-all target : route all unknown targets to Sphinx using the new
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[![DOI for the latest version](https://zenodo.org/badge/89621457.svg)](https://zenodo.org/badge/latestdoi/89621457)

[![Syntax Check](https://app.travis-ci.com/common-workflow-language/user_guide.svg?branch=main)](https://app.travis-ci.com/common-workflow-language/user_guide)
[![CI Tests](https://github.com/common-workflow-language/user_guide/actions/workflows/ci-tests.yml/badge.svg?branch=main)](https://github.com/common-workflow-language/user_guide/actions/workflows/ci-tests.yml)

[![Translation status](https://hosted.weblate.org/widgets/commonwl/-/user-guide/svg-badge.svg)](https://hosted.weblate.org/engage/commonwl/)

This is the source of the official user guide for the Common Workflow Language standards.

Expand Down
5 changes: 4 additions & 1 deletion cwl/sphinx/runcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ class Singleton(_Singleton("SingletonMeta", (object,), {})):

class CMDCache(Singleton):
cache = {}
exclude_cache_cmd = {hash("cat output.txt")}

def get(self, cmd, working_directory):
h = hash(cmd)
if h in self.cache:
if h in self.exclude_cache_cmd:
return run_command(cmd, working_directory)
elif h in self.cache:
return self.cache[h]
else:
result = run_command(cmd, working_directory)
Expand Down
30 changes: 30 additions & 0 deletions locales/es/LC_MESSAGES/sphinx.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2013, CWL Project Team
# This file is distributed under the same license as the Common Workflow
# Language User Guide package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
#
msgid ""
msgstr ""
"Project-Id-Version: Common Workflow Language User Guide\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-01-25 14:33+0100\n"
"PO-Revision-Date: 2023-01-26 13:55+0000\n"
"Last-Translator: Michael Crusoe <[email protected]>\n"
"Language-Team: Spanish <https://hosted.weblate.org/projects/commonwl/"
"cwl-user-guide-sphinx/es/>\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.16-dev\n"
"Generated-By: Babel 2.10.3\n"

#: ../../src/_templates/sidebar-nav-bs.html:1 d65b012160e9455eb4d2628279fffc42
msgid "Main navigation"
msgstr "Navegación principal"

#: ../../src/_templates/sidebar-nav-bs.html:3 4b3441eb77f448daa60718b7bfa862db
msgid "Section Navigation"
msgstr "Sección Navegación"
Loading