Skip to content

v0.5.0

Compare
Choose a tag to compare
@philvarner philvarner released this 09 May 16:29
· 13 commits to main since this release
7ee8533

Deprecated

  • Support for Python 3.8 has been removed.
  • CLI flags --skip-upload and --skip-validation deprecated in favor of --upload/--no-upload and --validate/no-validate
  • Task constructor arguments skip_upload and skip_validation deprecated in favor of upload and validate

Fixed

  • Several CLI arguments were missing help descriptions

Changed

  • Replaced the use of fsspec with stac-asset for downloading Item Assets
  • --local flag no longer turns off validation
  • The processing:software field 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 method Task.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_mapping to Task class to retrieve the collection mappings
    from upload_options
  • Utils method find_collection to 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