Skip to content

feat: SPDX license instead of expression #378

Closed

Description

@jkowalleck

BASED ON Discussed in #377

have a feature switch, that causes the output to change in behaviour:

instead of

<?xml version="1.0" encoding="UTF-8"?>
<bom xmlns="http://cyclonedx.org/schema/bom/1.4"
     serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79"
     version="1">
    <components>
        <component type="library">
            <group>org.acme</group>
            <name>card-verifier</name>
            <version>1.0.2</version>
            <licenses>
                <expression>(Apache-2.0 OR MIT)</expression>
            </licenses>
        </component>
    </components>
</bom>

the output should look like this:

<?xml version="1.0" encoding="UTF-8"?>
<bom xmlns="http://cyclonedx.org/schema/bom/1.4"
     serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79"
     version="1">
    <components>
        <component type="library">
            <group>org.acme</group>
            <name>card-verifier</name>
            <version>1.0.2</version>
            <licenses>
                <license>
                    <id>Apache-2.0</id>
                </license>
                <license>
                    <id>MIT</id>
                </license>
            </licenses>
        </component>
    </components>
</bom>

Activity

  1. changed the title [-]SPDX license instead of expression[/-] [+]feat: SPDX license instead of expression[/+] on Jun 24, 2022
  2. madpah commented on Jun 27, 2022

    @madpah
    Collaborator

    Duplicates #354

  3. jkowalleck commented on Sep 12, 2022

    @jkowalleck
    MemberAuthor

    discussed the topic with @madpah , and we think we will prefer ad different solution:
    we will take the opportunity and create a factory in the cyclonedx-python-lib via CycloneDX/cyclonedx-python-lib#304
    that accepts any string and will create the fitting license model from it - an expression, a named, or an SPDX one.

  4. jkowalleck commented on Sep 19, 2022

    @jkowalleck
    MemberAuthor

    might be closed via #417

  5. self-assigned this
    on Nov 14, 2023
  6. added this to the 4.0.0 milestone on Nov 14, 2023
  7. linked a pull request that will close this issuefeat!: rewrite CLI and parsers #610on Nov 14, 2023
  8. jkowalleck commented on Dec 25, 2023

    @jkowalleck
    MemberAuthor

    fixed by #605

  9. jkowalleck commented on Dec 25, 2023

    @jkowalleck
    MemberAuthor

    This feature will be part of the next/upcoming major release.
    Changelog: see #605
    Install via: pip install cyclonedx-bom==4.0.0rc1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions