feat: mark dev-dependencies component.scope
as "excluded"
#675
Labels
enhancement
New feature or request
good first issue
Good for newcomers
hacktoberfest
help wanted
Extra attention is needed
source: pipenv
source: poetry
Is your feature request related to a problem? Please describe.
Per CycloneDX specification, the components' scope means (see docs)
Current implementation does not set any scope, meaning the fallback to "required".
for dev-dependencies this would be wrong.
Describe the solution you'd like
mark all components, that are dev-dependencies only, as "excluded" in the resulting SBOM.
Describe alternatives you've considered
none
Additional context
for
poetry
poetry knowns the "dev" group/category - things that are in there only (not in any other) are dev-dependencies
for
pipenv
pipenv knowns a group/category called "dev-packages" - things that are in there only (not in any other) are dev-dependencies
for
pyproject.toml
pyproject knows optional-dependency groups. see also PEP735 (draft)
there is no accepted PEP for that matter (or is there?), but commonly, people use "dev" or
"devel", "development" group to tell development-dependencies. - things that are in there, but not in any other, are dev-dependencies
Since there is no consensus here, the pyproject SHOULD have no effect on the
component.scope
, for nowThe text was updated successfully, but these errors were encountered: