Skip to content

1.1.0 (Feb 16, 2021)

Choose a tag to compare

@tdruez tdruez released this 16 Feb 15:05
· 1258 commits to main since this release
  • Display project extra data in the project details view. #88

  • Add a @Profile decorator for profiling pipeline step execution. #73

  • Support inputs as tarballs in root_filesystem pipelines.
    The input archives are now extracted with extractcode to the codebase/ directory. #96

  • Improve support for unknown distros in docker and root_filesystem pipelines.
    The pipeline logs the distro errors on the project instead of failing. #97

  • Implement Pipeline registration through distribution entry points.
    Pipeline can now be installed as part of external libraries.
    With this change pipelines are no longer referenced by the
    Python script path, but by their registered name.
    This is a breaking command line API change. #91

  • Add a "Run Pipeline" button in the Pipeline modal of the Project details view.
    Pipelines can now be added from the Project details view. #84

  • Upgrade scancode-toolkit to version 21.2.9

  • Allow to start the pipeline run immediately on addition in the add_pipeline action
    of the Project API endpoint. #92

  • Rename the pipes.outputs module to pipes.output for consistency.

  • Remove the dependency on Metaflow. #82


WARNING: The new Pipelines syntax is not backward compatible with v1.0.x, the default built-in Pipeline were migrated.
Refer to the migration section bellow if you are using custom Pipelines.

Migrate Pipeline to 1.1.x:

  • Remove django.setup()
  • Remove @step decorators
  • Remove start() and end() methods
  • Remove all the self.next() calls
  • Remove the if __name__ == "__main__" section
  • Add a steps argument after the methods:
steps = (
    step1,
    step2,
)

See https://github.com/nexB/scancode.io/tree/1.1.0/scanpipe/pipelines for more Pipeline examples.