v5.0.0-rc.1
Pre-release
Pre-release
·
219 commits
to main
since this release
BREAKING CHANGES
- Dropped support for python<3.8 (#436 via #441; enable #433)
- Reworked license related models, collections, and factories (#365 via #466)
- Behavior
- API
- Enum
schema.SchemaVersion
is no longer string-like (#442 via #447) - Enum
schema.OutputVersion
is no longer string-like (#442 via #447) - Abstract class
output.BaseOutput
requires implementation of new methodoutput_format
(#446 via #447) - Abstract method
output.BaseOutput.output_as_string()
got new optional parameterindent
(#437 via #458) - Abstract method
output.BaseOutput.output_as_string()
accepts arbitrary kwargs (via #458, #462) - Removed class
factory.license.LicenseChoiceFactory
(via #466)
The old functionality was integrated intofactory.license.LicenseFactory
. - Method
factory.license.LicenseFactory.make_from_string()
's parametername_or_spdx
was renamed tovalue
(via #466) - Method
factory.license.LicenseFactory.make_from_string()
's return value can also be aLicenseExpression
(#365 via #466)
The behavior imitates the oldfactory.license.LicenseChoiceFactory.make_from_string()
- Renamed class
module.License
tomodule.license.DisjunctliveLicense
(#365 via #466) - Removed class
module.LicenseChoice
(#365 via #466)
Use dedicated classesmodule.license.DisjunctliveLicense
andmodule.license.LicenseExpression
instead - All occurrences of
models.LicenseChoice
were replaced bymodels.licenses.License
(#365 via #466) - All occurrences of
SortedSet[LicenseChoice]
were specialized tomodels.license.LicenseRepository
(#365 via #466)
- Enum
Fixed
- Serialization of multy-licenses (#365 via #466)
- Detect unused "dependent" components in
model.bom.validate()
(via #464)
Changed
- Updated latest supported list of supported SPDX license identifiers (via #433)
- Shipped schema files are moved to a protected space (via #433)
These files were never intended for public use. - XML output uses a default namespace, which makes results smaller. (#438 via #458)
Added
- Support for Python 3.12 (via #460)
- JSON- & XML-Validators (#432, #446 via #433, #448)
The functionality might require additional dependencies, that can be installed with the extra "validation".
See the docs in section "Installation" for details. - JSON & XML can be generated in a more human-friendly form (#437, #438 via #458)
- Type hints, typings & overloads for better integration downstream (via #463)
- API
- New sub-package
validation
(#432, #446 via #433, #448) - New class
exception.MissingOptionalDependencyException
(#432 via #433) - New class
exception.LicenseExpressionAlongWithOthersException
(#453 via #452) - New dictionaries
output.{json,xml}.BY_SCHEMA_VERSION
(#446 via #447) - Existing implementations of class
output.BaseOutput
now have a new methodoutput_format
(#446 via #447) - Existing implementations of method
output.BaseOutput.output_as_string()
got new optional parameterindent
(#437 via #458) - Existing implementations of method
output.BaseOutput.output_to_file()
got new optional parameterindent
(#437 via #458) - New method
factory.license.LicenseFactory.make_with_expression()
(via #466) - New class
model.license.DisjunctiveLicense
(#365 via #466) - New class
model.license.LicenseExpression
(#365 via #466) - New class
model.license.LicenseRepository
(#365 via #466) - New class
serialization.LicenseRepositoryHelper
(#365 via #466)
- New sub-package
Tests
- Added validation tests with official CycloneDX schema test data (#432 via #433)
- Use proper snapshots, instead of pseudo comparison (#437 via #464)
- Added regression test for bug #365 (via #466, #467)
Misc
- Bumped internal dev- and QA-tools (#436 via #441)
- Raised dependency on
py-serializable@^0.15.0
, was@^0.11.1
(via #458, #463, #464, #466)
What's Changed
- chore: publish coverage report to codacy by @jkowalleck in #439
- proper enums by @jkowalleck in #447
- feat: easy access validators by @jkowalleck in #448
- fix:
bom.validate()
detects invalid license constellations by @jkowalleck in #452 - feat: options for beautiful output by @jkowalleck in #458
- chore: remove encoding leadin by @jkowalleck in #459
- feat: support python 3.12 by @jkowalleck in #460
- fix: tuple comparison by @jkowalleck in #461
- fix: typing for
kwargs
by @jkowalleck in #462 - Feat: typing, typehints, & overload by @jkowalleck in #463
- tests: snapshots and complete deep comparison, instead of pseudo-compare by @jkowalleck in #464
- fix: multiple licenses issue #365 by @jkowalleck in #466
- tests: import mixed licenses by @jkowalleck in #467
Full Changelog: v4.2.2...v5.0.0-rc.1