Skip to content

Commit dd858fd

Browse files
committed
master -> main
1 parent 8493962 commit dd858fd

File tree

10 files changed

+51
-51
lines changed

10 files changed

+51
-51
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ jobs:
4747
script: tox
4848
branches:
4949
only:
50-
- master
50+
- main
5151
notifications:
5252
email: false

CWLProv.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ These set which vocabularies ("namespaces") are used by the CWLProv statements::
230230
prefix wf <arcp://uuid,0e6cb79e-fe70-4807-888c-3a61b9bf232a/workflow/packed.cwl#>
231231
prefix foaf <http://xmlns.com/foaf/0.1/>
232232

233-
Note that the `arcp <https://tools.ietf.org/id/draft-soilandreyes-arcp-03.html>`__ base URI will correspond to the UUID of each master workflow run.
233+
Note that the `arcp <https://tools.ietf.org/id/draft-soilandreyes-arcp-03.html>`__ base URI will correspond to the UUID of each main workflow run.
234234

235235
Account who launched cwltool
236236
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pydocstyle_report.txt: $(PYSOURCES)
8989
pydocstyle setup.py $^ > $@ 2>&1 || true
9090

9191
diff_pydocstyle_report: pydocstyle_report.txt
92-
diff-quality --violations=pycodestyle --fail-under=100 $^
92+
diff-quality --compare-branch=main --violations=pycodestyle --fail-under=100 $^
9393

9494
## format : check/fix all code indentation and formatting (runs black)
9595
format:

README.rst

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ CWL conformance tests: |Conformance Status| |Linux Status| |Windows Status| |Cov
1212
.. |Conformance Status| image:: https://ci.commonwl.org/buildStatus/icon?job=cwltool-conformance
1313
:target: https://ci.commonwl.org/job/cwltool-conformance/
1414

15-
.. |Linux Status| image:: https://img.shields.io/travis/common-workflow-language/cwltool/master.svg?label=Linux%20builds
15+
.. |Linux Status| image:: https://img.shields.io/travis/common-workflow-language/cwltool/main.svg?label=Linux%20builds
1616
:target: https://travis-ci.org/common-workflow-language/cwltool
1717

18-
.. |Windows Status| image:: https://img.shields.io/appveyor/ci/mr-c/cwltool/master.svg?label=Windows%20builds
18+
.. |Windows Status| image:: https://img.shields.io/appveyor/ci/mr-c/cwltool/main.svg?label=Windows%20builds
1919
:target: https://ci.appveyor.com/project/mr-c/cwltool
2020

2121
.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/common-workflow-language/cwltool.svg
@@ -24,49 +24,49 @@ CWL conformance tests: |Conformance Status| |Linux Status| |Windows Status| |Cov
2424
.. |Downloads| image:: https://pepy.tech/badge/cwltool/month
2525
:target: https://pepy.tech/project/cwltool
2626

27-
.. |CommandLineTool Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/command_line_tool.json?icon=commonwl
27+
.. |CommandLineTool Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/command_line_tool.json?icon=commonwl
2828
:target: https://ci.commonwl.org/job/cwltool-conformance/
2929

30-
.. |DockerRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/docker.json?icon=commonwl
30+
.. |DockerRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/docker.json?icon=commonwl
3131
:target: https://ci.commonwl.org/job/cwltool-conformance/
3232

33-
.. |EnvVarRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/env_var.json?icon=commonwl
33+
.. |EnvVarRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/env_var.json?icon=commonwl
3434
:target: https://ci.commonwl.org/job/cwltool-conformance/
3535

36-
.. |ExpressionTool Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/expression_tool.json?icon=commonwl
36+
.. |ExpressionTool Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/expression_tool.json?icon=commonwl
3737
:target: https://ci.commonwl.org/job/cwltool-conformance/
3838

39-
.. |InitialWorkDirRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/initial_work_dir.json?icon=commonwl
39+
.. |InitialWorkDirRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/initial_work_dir.json?icon=commonwl
4040
:target: https://ci.commonwl.org/job/cwltool-conformance/
4141

42-
.. |InlineJavascriptRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/inline_javascript.json?icon=commonwl
42+
.. |InlineJavascriptRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/inline_javascript.json?icon=commonwl
4343
:target: https://ci.commonwl.org/job/cwltool-conformance/
4444

45-
.. |MultipleInputRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/multiple_input.json?icon=commonwl
45+
.. |MultipleInputRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/multiple_input.json?icon=commonwl
4646
:target: https://ci.commonwl.org/job/cwltool-conformance/
4747

48-
.. |Core Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/required.json?icon=commonwl
48+
.. |Core Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/required.json?icon=commonwl
4949
:target: https://ci.commonwl.org/job/cwltool-conformance/
5050

51-
.. |ResourceRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/resource.json?icon=commonwl
51+
.. |ResourceRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/resource.json?icon=commonwl
5252
:target: https://ci.commonwl.org/job/cwltool-conformance/
5353

54-
.. |ScatterRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/scatter.json?icon=commonwl
54+
.. |ScatterRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/scatter.json?icon=commonwl
5555
:target: https://ci.commonwl.org/job/cwltool-conformance/
5656

57-
.. |SchemaDefRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/schema_def.json?icon=commonwl
57+
.. |SchemaDefRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/schema_def.json?icon=commonwl
5858
:target: https://ci.commonwl.org/job/cwltool-conformance/
5959

60-
.. |ShellCommandequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/shell_command.json?icon=commonwl
60+
.. |ShellCommandequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/shell_command.json?icon=commonwl
6161
:target: https://ci.commonwl.org/job/cwltool-conformance/
6262

63-
.. |StepInputRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/step_input.json?icon=commonwl
63+
.. |StepInputRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/step_input.json?icon=commonwl
6464
:target: https://ci.commonwl.org/job/cwltool-conformance/
6565

66-
.. |SubWorkflowRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/subworkflow.json?icon=commonwl
66+
.. |SubWorkflowRequirement Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/subworkflow.json?icon=commonwl
6767
:target: https://ci.commonwl.org/job/cwltool-conformance/
6868

69-
.. |Workflow Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/master/cwltool/cwl_v1.0/cwltool_latest/workflow.json?icon=commonwl
69+
.. |Workflow Support| image:: https://badgen.net/https/raw.githubusercontent.com/common-workflow-language/conformance/main/cwltool/cwl_v1.0/cwltool_latest/workflow.json?icon=commonwl
7070
:target: https://ci.commonwl.org/job/cwltool-conformance/
7171

7272

@@ -173,21 +173,21 @@ with the ``--user-space-docker-cmd`` option.
173173
One such "user space" friendly docker replacement is ``udocker`` https://github.com/indigo-dc/udocker and another
174174
is ``dx-docker`` https://wiki.dnanexus.com/Developer-Tutorials/Using-Docker-Images
175175

176-
udocker installation: https://github.com/indigo-dc/udocker/blob/master/doc/installation_manual.md#22-install-from-indigo-datacloud-repositories
176+
udocker installation: https://github.com/indigo-dc/udocker/blob/main/doc/installation_manual.md#22-install-from-indigo-datacloud-repositories
177177

178178
dx-docker installation: start with the DNAnexus toolkit (see https://wiki.dnanexus.com/Downloads for instructions).
179179

180180
Run `cwltool` just as you normally would, but with the new option, e.g. from the conformance tests:
181181

182182
.. code:: bash
183183
184-
cwltool --user-space-docker-cmd=udocker https://raw.githubusercontent.com/common-workflow-language/common-workflow-language/master/v1.0/v1.0/test-cwl-out2.cwl https://github.com/common-workflow-language/common-workflow-language/blob/master/v1.0/v1.0/empty.json
184+
cwltool --user-space-docker-cmd=udocker https://raw.githubusercontent.com/common-workflow-language/common-workflow-language/main/v1.0/v1.0/test-cwl-out2.cwl https://github.com/common-workflow-language/common-workflow-language/blob/main/v1.0/v1.0/empty.json
185185
186186
or
187187

188188
.. code:: bash
189189
190-
cwltool --user-space-docker-cmd=dx-docker https://raw.githubusercontent.com/common-workflow-language/common-workflow-language/master/v1.0/v1.0/test-cwl-out2.cwl https://github.com/common-workflow-language/common-workflow-language/blob/master/v1.0/v1.0/empty.json
190+
cwltool --user-space-docker-cmd=dx-docker https://raw.githubusercontent.com/common-workflow-language/common-workflow-language/main/v1.0/v1.0/test-cwl-out2.cwl https://github.com/common-workflow-language/common-workflow-language/blob/main/v1.0/v1.0/empty.json
191191
192192
``cwltool`` can use `Singularity <http://singularity.lbl.gov/>`_ version 2.6.1
193193
or later as a Docker container runtime.
@@ -201,7 +201,7 @@ those involving Docker container ENTRYPOINTs.
201201

202202
.. code:: bash
203203
204-
cwltool --singularity https://raw.githubusercontent.com/common-workflow-language/common-workflow-language/master/v1.0/v1.0/v1.0/cat3-tool-mediumcut.cwl https://github.com/common-workflow-language/common-workflow-language/blob/master/v1.0/v1.0/cat-job.json
204+
cwltool --singularity https://raw.githubusercontent.com/common-workflow-language/common-workflow-language/main/v1.0/v1.0/v1.0/cat3-tool-mediumcut.cwl https://github.com/common-workflow-language/common-workflow-language/blob/main/v1.0/v1.0/cat-job.json
205205
206206
Running a tool or workflow from remote or local locations
207207
---------------------------------------------------------
@@ -648,7 +648,7 @@ To run the basic tests after installing `cwltool` execute the following:
648648
pip install -rtest-requirements.txt
649649
py.test --ignore cwltool/schemas/ --pyarg cwltool
650650
651-
To run various tests in all supported Python environments we use `tox <https://github.com/common-workflow-language/cwltool/tree/master/tox.ini>`_. To run the test suite in all supported Python environments
651+
To run various tests in all supported Python environments we use `tox <https://github.com/common-workflow-language/cwltool/tree/main/tox.ini>`_. To run the test suite in all supported Python environments
652652
first downloading the complete code repository (see the ``git clone`` instructions above) and then run
653653
the following in the terminal:
654654
``pip install tox; tox``
@@ -666,7 +666,7 @@ The GitHub repository for the CWL specifications contains a script that tests a
666666
implementation against a wide array of valid CWL files using the `cwltest <https://github.com/common-workflow-language/cwltest>`_
667667
program
668668

669-
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/master/CONFORMANCE_TESTS.md
669+
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
670670

671671
Import as a module
672672
------------------

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ on_finish:
5050
5151
branches:
5252
only:
53-
- master
53+
- main

cwltool/provenance_profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ def finalize_prov_profile(self, name):
718718
"""Transfer the provenance related files to the RO."""
719719
# NOTE: Relative posix path
720720
if name is None:
721-
# master workflow, fixed filenames
721+
# main workflow, fixed filenames
722722
filename = "primary.cwlprov"
723723
else:
724724
# ASCII-friendly filename, avoiding % as we don't want %2520 in manifest.json

cwltool/workflow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def __init__(
8080
self.provenance_object = None # type: Optional[ProvenanceProfile]
8181
if loadingContext.research_obj is not None:
8282
run_uuid = None # type: Optional[UUID]
83-
is_master = not loadingContext.prov_obj # Not yet set
84-
if is_master:
83+
is_main = not loadingContext.prov_obj # Not yet set
84+
if is_main:
8585
run_uuid = loadingContext.research_obj.ro_uuid
8686

8787
self.provenance_object = ProvenanceProfile(
@@ -92,8 +92,8 @@ def __init__(
9292
orcid=loadingContext.orcid,
9393
run_uuid=run_uuid,
9494
fsaccess=loadingContext.research_obj.fsaccess,
95-
) # inherit RO UUID for master wf run
96-
# TODO: Is Workflow(..) only called when we are the master workflow?
95+
) # inherit RO UUID for main wf run
96+
# TODO: Is Workflow(..) only called when we are the main workflow?
9797
self.parent_wf = self.provenance_object
9898

9999
# FIXME: Won't this overwrite prov_obj for nested workflows?

tests/test_http_input.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
def test_http_path_mapping() -> None:
1010

11-
input_file_path = "https://raw.githubusercontent.com/common-workflow-language/cwltool/master/tests/2.fasta"
11+
input_file_path = "https://raw.githubusercontent.com/common-workflow-language/cwltool/main/tests/2.fasta"
1212
tempdir = tempfile.mkdtemp()
1313
base_file = [
1414
{
1515
"class": "File",
16-
"location": "https://raw.githubusercontent.com/common-workflow-language/cwltool/master/tests/2.fasta",
16+
"location": "https://raw.githubusercontent.com/common-workflow-language/cwltool/main/tests/2.fasta",
1717
"basename": "chr20.fa",
1818
}
1919
] # type: List[CWLObjectType]

tests/test_provenance.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,10 @@ def check_prov(
451451
g.serialize(sys.stdout, format="ttl")
452452
runs = set(g.subjects(RDF.type, WFPROV.WorkflowRun))
453453

454-
# master workflow run URI (as urn:uuid:) should correspond to arcp uuid part
454+
# main workflow run URI (as urn:uuid:) should correspond to arcp uuid part
455455
uuid = arcp.parse_arcp(arcp_root).uuid
456-
master_run = URIRef(uuid.urn)
457-
assert master_run in runs, "Can't find run %s in %s" % (master_run, runs)
456+
main_run = URIRef(uuid.urn)
457+
assert main_run in runs, "Can't find run %s in %s" % (main_run, runs)
458458
# TODO: we should not need to parse arcp, but follow
459459
# the has_provenance annotations in manifest.json instead
460460

@@ -466,7 +466,7 @@ def check_prov(
466466
engine = engines.pop()
467467

468468
assert (
469-
master_run,
469+
main_run,
470470
PROV.wasAssociatedWith,
471471
engine,
472472
) in g, "Wf run not associated with wf engine"
@@ -483,15 +483,15 @@ def check_prov(
483483
# than the tool run
484484
# (NOTE: the WorkflowEngine is also activity, but not declared explicitly)
485485
else:
486-
# Check all process runs were started by the master worklow
486+
# Check all process runs were started by the main worklow
487487
stepActivities = set(g.subjects(RDF.type, WFPROV.ProcessRun))
488488
# Although semantically a WorkflowEngine is also a ProcessRun,
489489
# we don't declare that,
490490
# thus only the step activities should be in this set.
491-
assert master_run not in stepActivities
491+
assert main_run not in stepActivities
492492
assert stepActivities, "No steps executed in workflow"
493493
for step in stepActivities:
494-
# Let's check it was started by the master_run. Unfortunately, unlike PROV-N
494+
# Let's check it was started by the main_run. Unfortunately, unlike PROV-N
495495
# in PROV-O RDF we have to check through the n-ary qualifiedStart relation
496496
starts = set(g.objects(step, PROV.qualifiedStart))
497497
assert starts, "Could not find qualifiedStart of step %s" % step
@@ -500,8 +500,8 @@ def check_prov(
500500
assert (
501501
start,
502502
PROV.hadActivity,
503-
master_run,
504-
) in g, "Step activity not started by master activity"
503+
main_run,
504+
) in g, "Step activity not started by main activity"
505505
# Tip: Any nested workflow step executions should not be in this prov file,
506506
# but in separate file
507507
if nested:

travis.bash

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ venv() {
88
}
99

1010
if [[ "$version" = "v1.0" ]] ; then
11-
wget https://github.com/common-workflow-language/common-workflow-language/archive/master.tar.gz
12-
tar xzf master.tar.gz && rm master.tar.gz
11+
wget https://github.com/common-workflow-language/common-workflow-language/archive/main.tar.gz
12+
tar xzf main.tar.gz && rm main.tar.gz
1313
else
1414
repo=$(echo $version | sed 's/\(v[0-9]*\.\)\([0-9]*\).*/\1\2/')
15-
wget https://github.com/common-workflow-language/cwl-${repo}/archive/master.tar.gz
16-
tar xzf master.tar.gz && rm master.tar.gz
15+
wget https://github.com/common-workflow-language/cwl-${repo}/archive/main.tar.gz
16+
tar xzf main.tar.gz && rm main.tar.gz
1717
fi
1818

1919
docker pull node:slim
@@ -33,9 +33,9 @@ do
3333
if [[ "$version" = "v1.0" ]]
3434
then
3535
DRAFT="DRAFT=v1.0"
36-
pushd common-workflow-language-master || exit 1
36+
pushd common-workflow-language-main || exit 1
3737
else
38-
pushd cwl-${repo}-master || exit 1
38+
pushd cwl-${repo}-main || exit 1
3939
fi
4040
rm -f .coverage* coverage.xml
4141
source=$(realpath ../cwltool)
@@ -76,7 +76,7 @@ EOF
7676
then
7777
EXTRA="EXTRA=${EXTRA}"
7878
fi
79-
if [ "$GIT_BRANCH" = "origin/master" ] && [[ "$version" = "v1.0" ]] && [[ "$CONTAINER" = "docker" ]] && [ $PYTHON_VERSION -eq 3 ]
79+
if [ "$GIT_BRANCH" = "origin/main" ] && [[ "$version" = "v1.0" ]] && [[ "$CONTAINER" = "docker" ]] && [ $PYTHON_VERSION -eq 3 ]
8080
then
8181
rm -Rf conformance
8282
git clone http://"${jenkins_cwl_conformance}"@github.com/common-workflow-language/conformance.git
@@ -122,7 +122,7 @@ EOM
122122
done
123123
done
124124
# build new docker container
125-
if [ "$GIT_BRANCH" = "origin/master" ] && [[ "$version" = "v1.0" ]]
125+
if [ "$GIT_BRANCH" = "origin/main" ] && [[ "$version" = "v1.0" ]]
126126
then
127127
./build-cwl-docker.sh || true
128128
fi

0 commit comments

Comments
 (0)