Skip to content

Commit

Permalink
py-cyclonedx-python-lib: update to 6.0.0.
Browse files Browse the repository at this point in the history
v6.0.0 (2023-12-10)

Breaking

    feat!: v6.0.0 (#492)

Breaking Changes

    Removed symbols that were already marked as deprecated (via #493)
    Removed symbols in parser.* (#489 via #495)
    Removed output.LATEST_SUPPORTED_SCHEMA_VERSION (#491 via #494)
    Serialization of unsupported enum values might downgrade/migrate/omit them (#490 via #496)
    Handling might raise warnings if a data loss occurred due to omitting.
    The result is a guaranteed valid XML/JSON, since no (enum-)invalid values are rendered.
    Serialization of any model.component.Component with unsupported type raises exception.serialization.SerializationOfUnsupportedComponentTypeException (#490 via #496)
    Object model.bom_ref.BomRef's property value defaults to Null, was arbitrary UUID (#504 via #505)
    This change does not affect serialization. All bom-refs are guaranteed to have unique values on rendering.
    Removed helpers from public API (#503 via #506)

Added

    Basic support for CycloneDX 1.5 (#404 via #488) -- Thanks to @Churro
        No data models were enhanced nor added, yet.
        Pull requests to add functionality are welcome.
        Existing enumerable got new cases, to reflect features of CycloneDX 1.5 (#404 via #488)
        Outputters were enabled to render CycloneDX 1.5 (#404 via #488)

Tests

    Created (regression/unit/integration/functional) tests for CycloneDX 1.5 (#404 via #488)
    Created (regression/functional) tests for Enums' handling and completeness (#490 via #496)

Misc

    Bumped dependency py-serializable@^0.16, was @^0.15 (via #496)

API Changes — the details for migration

    Added new sub-package exception.serialization (via #496)
    Removed class models.ComparableTuple (#503 via #506)
    Enum model.ExternalReferenceType got new cases, to reflect features for CycloneDX 1.5 (#404 via #488)
    Removed function models.get_now_utc (#503 via #506)
    Removed function models.sha1sum (#503 via #506)
    Enum model.component.ComponentType got new cases, to reflect features for CycloneDX 1.5 (#404 via #488)
    Removed model.component.Component.__init__()'s deprecated optional kwarg namespace (via #493)
    Use kwarg group instead.
    Removed model.component.Component.__init__()'s deprecated optional kwarg license_str (via #493)
    Use kwarg licenses instead.
    Removed deprecated method model.component.Component.get_namespace() (via #493)
    Removed class models.dependency.DependencyDependencies (#503 via #506)
    Removed model.vulnerability.Vulnerability.__init__()'s deprecated optional kwarg source_name (via #493)
    Use kwarg source instead.
    Removed model.vulnerability.Vulnerability.__init__()'s deprecated optional kwarg source_url (via #493)
    Use kwarg source instead.
    Removed model.vulnerability.Vulnerability.__init__()'s deprecated optional kwarg recommendations (via #493)
    Use kwarg recommendation instead.
    Removed model.vulnerability.VulnerabilityRating.__init__()'s deprecated optional kwarg score_base (via #493)
    Use kwarg score instead.
    Enum model.vulnerability.VulnerabilityScoreSource got new cases, to reflect features for CycloneDX 1.5 (#404 via #488)
    Removed output.LATEST_SUPPORTED_SCHEMA_VERSION (#491 via #494)
    Removed deprecated function output.get_instance() (via #493)
    Use function output.make_outputter() instead.
    Added new class output.json.JsonV1Dot5, to reflect CycloneDX 1.5 (#404 via #488)
    Added new item to dict output.json.BY_SCHEMA_VERSION, to reflect CycloneDX 1.5 (#404 via #488)
    Added new class output.xml.XmlV1Dot5, to reflect CycloneDX 1.5 (#404 via #488)
    Added new item to dict output.xml.BY_SCHEMA_VERSION, to reflect CycloneDX 1.5 (#404 via #488)
    Removed class parser.ParserWarning (#489 via #495)
    Removed class parser.BaseParser (#489 via #495)
    Enum schema.SchemaVersion got new case V1_5, to reflect CycloneDX 1.5 (#404 via #488)
  • Loading branch information
0-wiz-0 committed Dec 17, 2023
1 parent c15335c commit ce82673
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
4 changes: 2 additions & 2 deletions security/py-cyclonedx-python-lib/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.20 2023/12/07 08:33:39 wiz Exp $
# $NetBSD: Makefile,v 1.21 2023/12/17 22:22:06 wiz Exp $

DISTNAME= cyclonedx_python_lib-5.2.0
DISTNAME= cyclonedx_python_lib-6.0.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/g}
CATEGORIES= security python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/cyclonedx-python-lib/}
Expand Down
22 changes: 18 additions & 4 deletions security/py-cyclonedx-python-lib/PLIST
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
@comment $NetBSD: PLIST,v 1.8 2023/11/07 22:58:58 wiz Exp $
@comment $NetBSD: PLIST,v 1.9 2023/12/17 22:22:06 wiz Exp $
${PYSITELIB}/cyclonedx/__init__.py
${PYSITELIB}/cyclonedx/__init__.pyc
${PYSITELIB}/cyclonedx/__init__.pyo
${PYSITELIB}/cyclonedx/_internal/__init__.py
${PYSITELIB}/cyclonedx/_internal/__init__.pyc
${PYSITELIB}/cyclonedx/_internal/__init__.pyo
${PYSITELIB}/cyclonedx/_internal/compare.py
${PYSITELIB}/cyclonedx/_internal/compare.pyc
${PYSITELIB}/cyclonedx/_internal/compare.pyo
${PYSITELIB}/cyclonedx/_internal/hash.py
${PYSITELIB}/cyclonedx/_internal/hash.pyc
${PYSITELIB}/cyclonedx/_internal/hash.pyo
${PYSITELIB}/cyclonedx/_internal/time.py
${PYSITELIB}/cyclonedx/_internal/time.pyc
${PYSITELIB}/cyclonedx/_internal/time.pyo
${PYSITELIB}/cyclonedx/exception/__init__.py
${PYSITELIB}/cyclonedx/exception/__init__.pyc
${PYSITELIB}/cyclonedx/exception/__init__.pyo
Expand All @@ -14,6 +26,9 @@ ${PYSITELIB}/cyclonedx/exception/model.pyo
${PYSITELIB}/cyclonedx/exception/output.py
${PYSITELIB}/cyclonedx/exception/output.pyc
${PYSITELIB}/cyclonedx/exception/output.pyo
${PYSITELIB}/cyclonedx/exception/serialization.py
${PYSITELIB}/cyclonedx/exception/serialization.pyc
${PYSITELIB}/cyclonedx/exception/serialization.pyo
${PYSITELIB}/cyclonedx/factory/__init__.py
${PYSITELIB}/cyclonedx/factory/__init__.pyc
${PYSITELIB}/cyclonedx/factory/__init__.pyo
Expand Down Expand Up @@ -62,9 +77,6 @@ ${PYSITELIB}/cyclonedx/output/json.pyo
${PYSITELIB}/cyclonedx/output/xml.py
${PYSITELIB}/cyclonedx/output/xml.pyc
${PYSITELIB}/cyclonedx/output/xml.pyo
${PYSITELIB}/cyclonedx/parser/__init__.py
${PYSITELIB}/cyclonedx/parser/__init__.pyc
${PYSITELIB}/cyclonedx/parser/__init__.pyo
${PYSITELIB}/cyclonedx/py.typed
${PYSITELIB}/cyclonedx/schema/__init__.py
${PYSITELIB}/cyclonedx/schema/__init__.pyc
Expand All @@ -83,6 +95,8 @@ ${PYSITELIB}/cyclonedx/schema/_res/bom-1.3.SNAPSHOT.schema.json
${PYSITELIB}/cyclonedx/schema/_res/bom-1.3.SNAPSHOT.xsd
${PYSITELIB}/cyclonedx/schema/_res/bom-1.4.SNAPSHOT.schema.json
${PYSITELIB}/cyclonedx/schema/_res/bom-1.4.SNAPSHOT.xsd
${PYSITELIB}/cyclonedx/schema/_res/bom-1.5.SNAPSHOT.schema.json
${PYSITELIB}/cyclonedx/schema/_res/bom-1.5.SNAPSHOT.xsd
${PYSITELIB}/cyclonedx/schema/_res/jsf-0.82.SNAPSHOT.schema.json
${PYSITELIB}/cyclonedx/schema/_res/spdx.SNAPSHOT.schema.json
${PYSITELIB}/cyclonedx/schema/_res/spdx.SNAPSHOT.xsd
Expand Down
8 changes: 4 additions & 4 deletions security/py-cyclonedx-python-lib/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.14 2023/12/07 08:33:39 wiz Exp $
$NetBSD: distinfo,v 1.15 2023/12/17 22:22:06 wiz Exp $

BLAKE2s (cyclonedx_python_lib-5.2.0.tar.gz) = c49d0a7c6ea994e3decc7cfe0591e18b2e8b5d482e892a1ad7168e74f21e8b4e
SHA512 (cyclonedx_python_lib-5.2.0.tar.gz) = 855fe99df1f287c3d2ef722468b3342675900bea9ef0c87e47598a58860d913e20a22b557a3ca66071f8c4ffbab9e93ffe064d05019d6a2b4a83b060335a76e5
Size (cyclonedx_python_lib-5.2.0.tar.gz) = 433613 bytes
BLAKE2s (cyclonedx_python_lib-6.0.0.tar.gz) = ce06cb9ba92a7cbc52eb0f105a10eb93a32d2191db86b36d5781f09d8150f0f7
SHA512 (cyclonedx_python_lib-6.0.0.tar.gz) = cd9eb9efd9ba55b936f9b47bb78079fb2da4c572c4c5264d76b1ca7c55aa6c35239cea8674c30e0e32cf861cdb29f88a6bfa34d0c6191cc7327145e40519e9fa
Size (cyclonedx_python_lib-6.0.0.tar.gz) = 511251 bytes

0 comments on commit ce82673

Please sign in to comment.