Releases: stac-utils/stac-task
Releases · stac-utils/stac-task
v0.7.0
⚠️ Breaking Change
- (#176) Removed support for Python 3.9.
Added
- (#176) Adds a
collection_matchersarray to the payload process block to support deterministic order when collection matching. - (#176) Adds a
collection_optionsobject to the payload process block to support collection-specific options such as upload options. - (#176) Adds direct access to the payload dictionary through
self.payloadon the Task class. - (#176) Adds access to payload properties through
self.payload.<property>on the Task class.
Changed
- (#176) Separated the payload data model from the Task class.
Deprecated
- (#176) Direct access to the payload dictionary through
self._payloadis deprecated in favor ofself.payload. - (#176) Direct access to payload properties through
self.<property>is deprecated in favor ofself.payload.<property>. - (#167) The collection mapping in the
collectionsfield inupload_optionsis deprecated in favor ofcollection_matchers.
v0.6.1
Deprecated
- Bare
ProcessDefinitionobjects are deprecated in favor of arrays ofProcessDefinitionobjects.
Added
- Adds workflow-level options to the ProcessDefinition object in a new
workflow_optionsfield. They are combined with each task's options, giving precedence to the task options on conflict. - Adds a
workflow_optionsproperty to theTaskclass that returns theworkflow_optionsdictionary from theProcessDefinitionobject. - Adds a
task_optionsproperty to theTaskclass that returns the task options from thetasksdictionary in theProcessDefinitionobject.
v0.6.0
v0.5.1
- download_item_assets and download_items_assets methods now accept a parameter
file_namefor configuring the filename to save the STAC Item as. If unset, it defaults toitem.jsonand if set toNonethe filename is inferred from the ID.
v0.5.0
Deprecated
- Support for Python 3.8 has been removed.
- CLI flags
--skip-uploadand--skip-validationdeprecated in favor of--upload/--no-uploadand--validate/no-validate - Task constructor arguments
skip_uploadandskip_validationdeprecated in favor ofuploadandvalidate
Fixed
- Several CLI arguments were missing
helpdescriptions
Changed
- Replaced the use of fsspec with stac-asset for downloading Item Assets
--localflag no longer turns off validation- The
processing:softwarefield is no longer added to Items by default. This is
because the intention of the STAC Processing Extension is to add metadata about the
processing of the data, whereas stactask is frequently used only for processing
metadata. Users wishing to retain this field can call the methodTask.add_software_version_to_item(item)on the resulting item to add it. - Task logging now identifies the task instance that is logging, e.g.,
INFO:my-task-name:[my-collection/workflow-my-workflow/task-1] Task did a thing. - Collection assignment now assigns the first matching collection expression, rather
than the last.
Added
- Property
collection_mappingtoTaskclass to retrieve the collection mappings
from upload_options - Utils method
find_collectionto allow the retrieval of the collection name for
an Item dict - Task method
upload_local_item_assets_to_s3(item)to upload all local assets to S3 - Added support for using stdin and stdout as input and output for task, e.g.,
cat in.json | src/mytask/mytask.py run --local | tee out.json
v0.4.2
v0.4.1
v0.4.0
v0.3.0
Changed
- handler now explicitly calls performs workdir cleanup
- workdir cleanup is correctly defensive and logs errors
v0.2.0
[v0.2.0] - 2023-11-16
Changed
-
Ensure
workdiris an absolute path
(#54). -
When a
workdiris set for aTasktheworkdirwill no longer be removed
by default (#51). That is,
thesave_workdirargument toTaskconstructor now defaults toNone, and
if left asNonethe default behavior is now conditional on whether or not a
workdiris specified.- If
workdirisNone, a temp directory will be created andsave_workdir
will default toFalse(remove working directory). - If a
workdiris specified, thensave_workdirwill default toTrue
(keep working directory).
In either case, an explicit
TrueorFalsevalue forsave_workdirwill
take precedence. - If