Skip to content

[POETRY] option to omit dev-requirements #374

Closed as not planned
Closed as not planned

Description

@rugleb

Hi!
I'm using this command: poetry run cyclonedx-bom -p -i poetry.lock -o cyclonedx-bom.xml --force which generates report with all requirements.
I think we need flag which disable scan of dev-requirements.

Activity

  1. added
    enhancement
    on Jun 20, 2022
  2. jkowalleck commented on Jun 20, 2022

    @jkowalleck
    Member

    Sounds reasonable.

    Pull requests are welcome.
    Do you want to give it a try?

  3. changed the title [-]Skip dev-requirements in report[/-] [+][POETRY] Skip dev-requirements in report[/+] on Jun 20, 2022
  4. changed the title [-][POETRY] Skip dev-requirements in report[/-] [+][POETRY] option to omit dev-requirements[/+] on Jun 20, 2022
  5. camillem commented on Sep 12, 2022

    @camillem

    Hi, I have a need which is similar but a bit different : that would be to have dev-requirements dependencies not omitted but flagged as such. May be by setting the field
    https://cyclonedx.org/docs/1.4/json/#components_items_scope to "optional" for dev-requirements and to "required" for others.

  6. jkowalleck commented on Sep 12, 2022

    @jkowalleck
    Member

    is there some property in CycloneDX that describes a component as a "dev-dependency"? I suppose not.

    @madpah So to publish this as a custom property, it would start with a taxonomy definition. ala cdx:npm:package:development in https://github.com/CycloneDX/cyclonedx-property-taxonomy/blob/main/cdx/npm.md

  7. camillem commented on Sep 13, 2022

    @camillem

    Would it be something like that https://github.com/camillem/cyclonedx-property-taxonomy/blob/main/cdx/poetry.md ?
    (and should I open a new issue, as we have diverged a bit from the initial topic?)

  8. jkowalleck commented on Sep 13, 2022

    @jkowalleck
    Member

    re: #374 (comment)

    [...] should I open a new issue [...]

    yes. an own issue https://github.com/CycloneDX/cyclonedx-property-taxonomy would be good, to discuss the initial needs.
    The PR would then be created by the @CycloneDX/python-maintainers

    and yes, an own issue regarding poetry driven properties would be good, too. - as the original request in this issue was about omitting data.

  9. jkowalleck commented on Oct 3, 2022

    @jkowalleck
    Member

    @camillem , @rugleb , the proposal was made merged - see CycloneDX/cyclonedx-property-taxonomy#29

    if you'd like, you could start with a implementation. or a draft, or ProveOfConcept. :-D

  10. camillem commented on Oct 14, 2022

    @camillem

    @jkowalleck : thanks! Currently trying to come up with a draft/ PoC :-)

  11. jkowalleck commented on Dec 22, 2022

    @jkowalleck
    Member

    @rugleb @camillem this issue was superseded by #474

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsource: poetry

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions