cwltool.update
==============

.. py:module:: cwltool.update


Attributes
----------

.. autoapisummary::

   cwltool.update.ORDERED_VERSIONS
   cwltool.update.UPDATES
   cwltool.update.DEVUPDATES
   cwltool.update.ALLUPDATES
   cwltool.update.INTERNAL_VERSION
   cwltool.update.ORIGINAL_CWLVERSION


Functions
---------

.. autoapisummary::

   cwltool.update.v1_2to1_3dev1
   cwltool.update.v1_1to1_2
   cwltool.update.v1_0to1_1
   cwltool.update.v1_1_0dev1to1_1
   cwltool.update.v1_2_0dev1todev2
   cwltool.update.v1_2_0dev2todev3
   cwltool.update.v1_2_0dev3todev4
   cwltool.update.v1_2_0dev4todev5
   cwltool.update.v1_2_0dev5to1_2
   cwltool.update.identity
   cwltool.update.checkversion
   cwltool.update.update


Module Contents
---------------

.. py:function:: v1_2to1_3dev1(doc, loader, baseuri)

   Public updater for v1.2 to v1.3.0-dev1.


.. py:function:: v1_1to1_2(doc, loader, baseuri)

   Public updater for v1.1 to v1.2.


.. py:function:: v1_0to1_1(doc, loader, baseuri)

   Public updater for v1.0 to v1.1.


.. py:function:: v1_1_0dev1to1_1(doc, loader, baseuri)

   Public updater for v1.1.0-dev1 to v1.1.


.. py:function:: v1_2_0dev1todev2(doc, loader, baseuri)

   Public updater for v1.2.0-dev1 to v1.2.0-dev2.


.. py:function:: v1_2_0dev2todev3(doc, loader, baseuri)

   Public updater for v1.2.0-dev2 to v1.2.0-dev3.


.. py:function:: v1_2_0dev3todev4(doc, loader, baseuri)

   Public updater for v1.2.0-dev3 to v1.2.0-dev4.


.. py:function:: v1_2_0dev4todev5(doc, loader, baseuri)

   Public updater for v1.2.0-dev4 to v1.2.0-dev5.


.. py:function:: v1_2_0dev5to1_2(doc, loader, baseuri)

   Public updater for v1.2.0-dev5 to v1.2.


.. py:data:: ORDERED_VERSIONS
   :value: ['v1.0', 'v1.1.0-dev1', 'v1.1', 'v1.2.0-dev1', 'v1.2.0-dev2', 'v1.2.0-dev3', 'v1.2.0-dev4',...


.. py:data:: UPDATES
   :type:  dict[str, collections.abc.Callable[[ruamel.yaml.comments.CommentedMap, schema_salad.ref_resolver.Loader, str], tuple[ruamel.yaml.comments.CommentedMap, str]] | None]

.. py:data:: DEVUPDATES
   :type:  dict[str, collections.abc.Callable[[ruamel.yaml.comments.CommentedMap, schema_salad.ref_resolver.Loader, str], tuple[ruamel.yaml.comments.CommentedMap, str]] | None]

.. py:data:: ALLUPDATES

.. py:data:: INTERNAL_VERSION
   :value: 'v1.3.0-dev1'


.. py:data:: ORIGINAL_CWLVERSION
   :value: 'http://commonwl.org/cwltool#original_cwlVersion'


.. py:function:: identity(doc, loader, baseuri)

   Do-nothing, CWL document upgrade function.


.. py:function:: checkversion(doc, metadata, enable_dev)

   Check the validity of the version of the give CWL document.

   Returns the document and the validated version string.


.. py:function:: update(doc, loader, baseuri, enable_dev, metadata, update_to = None)

   Update a CWL document to 'update_to' (if provided) or INTERNAL_VERSION.


