Skip to content

Releases: spdx/tools-python

Release 0.7.0: Support SPDX 2.3 (and other fixes)

08 Dec 10:49

Choose a tag to compare

New features and changes

  • Dropped Python 2 support. Python >= 3.6 is now required.
  • Added pyspdxtools_convertor and pyspdxtools_parser CLI scripts. See the readme for usage instructions.
  • Updated the tools to support SPDX versions up to 2.3 and to conform with the specification. Apart from many bugfixes
    and new properties, some of the more significant changes include:
    • Support for multiple packages per document
    • Support for multiple checksums for packages and files
    • Support for files outside a package
  • Removed example documents from production code. Added additional up-to-date examples to test files.
  • Introduced pytest as the preferred test framework.
  • Improved error message handling and display.
  • Extended the contribution guidelines.
  • Improved tag/value output structure.
  • Added .editorconfig and pyproject.toml.
  • Improved handling of JSON-specific properties documentDescribes and hasFiles.
  • Added new LicenseListVersion tag.
  • Fixed annotation handling for the JSON and Tag/Value formats.
  • Free form text values in Tag/Value no longer require <text> tags if they don't span multiple lines.

Limitations

  • Validation was updated to follow the 2.3 specification. Since there is currently no support for
    version-specific handling, some details may be handled incorrectly for documents using lower
    versions. The changes are mostly restricted to properties becoming optional and new property values becoming
    available, and should be of limited impact. See https://spdx.github.io/spdx-spec/v2.3/diffs-from-previous-editions/
    for a list of changes between the versions.
  • RDF support for 2.3 is not completed, see #295

Breaking changes

There are some breaking changes compared to the 0.6.1 release. Some classes were renamed, some were moved, and files are now saved at document-level instead of package-level. See https://github.com/spdx/tools-python/wiki/How-to-migrate-from-0.6.1-to-0.7.0 for a migration guide.

Contributors

This release was made possible by the following contributors. Thank you very much!

v0.7.0-rc0

30 Nov 15:52

Choose a tag to compare

v0.7.0-rc0 Pre-release
Pre-release

First release candidate for the v0.7.0 release.
Release notes are to be reviewed and revised, the following is auto-generated by Github and is included to give a rough idea:

What's Changed

New Contributors

Full Changelog: v0.6.1...v0.7.0-rc0

v0.6.1

29 Jul 13:33

Choose a tag to compare

Version v0.6.1

v0.6.0

29 Jul 13:33

Choose a tag to compare

Version v0.6.0

Release v0.5.4: Minor new bug fixes and improvements

31 Jul 17:29

Choose a tag to compare

The main change with the previous releases is a bugfix for #27
Other changes are only internal (more tests) and cosmetics

v0.5.3

15 Jun 16:20

Choose a tag to compare

In this release:

  • the lists in RDF and tag/value formats are now really sorted always sorted prior to writing (to ensure a consistent sorting)
  • the order of some tag/value has changed for extracted licenses (the text comes last)
  • several other minor bugs and cleanups were applied.

It is also available on Pypi https://pypi.python.org/pypi/spdx-tools/

v0.5.2

15 Jun 13:37

Choose a tag to compare

In this release:

  • the write_document() method accepts a new validate flag to validate or not a doc before writing it
  • the lists in RDF and tag/value formats are always sorted prior to writing (to ensure a consistent sorting)
  • several other minor bugs and cleanups were applied.

It is also available on Pypi https://pypi.python.org/pypi/spdx-tools/