Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RELEASE 2.0.0 #148

Merged
merged 30 commits into from
Feb 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b45ff18
WIP on `bom.services`
DarthHater Jan 27, 2022
df43a9b
test: refactored fixtures for tests which has uncovered #150, #151 an…
madpah Jan 27, 2022
15b081b
fix: `expression` not supported in Component Licsnes for version 1.0
madpah Jan 27, 2022
70d25c8
fix: Components with no version (optional since 1.4) produce invalid …
madpah Jan 27, 2022
c09e396
fix: regression introduced by first fix for #150
madpah Jan 27, 2022
1f55f3e
fix: further fix for #150
madpah Jan 27, 2022
a35d540
removed unused imports
madpah Jan 27, 2022
9edf6c9
feat: support services in XML BOMs
madpah Jan 31, 2022
2090c08
attempt to resolve Lift finding
madpah Jan 31, 2022
a51766d
fix: temporary fix for `__hash__` of Component with `properties` #153
madpah Jan 31, 2022
0ce5de6
test: refactor to work on PY < 3.10
madpah Jan 31, 2022
32c0139
feat: Complete support for `bom.components` (#155)
madpah Feb 2, 2022
1b733d7
feat: support for `bom.externalReferences` in JSON and XML #124
madpah Feb 2, 2022
6c280e7
chore: bump dependencies
madpah Feb 2, 2022
41a4be0
doc: added page to docs to call out which parts of the specification …
madpah Feb 2, 2022
b3c8d9a
BREAKING CHANGE: adopted PEP-3102 for model classes (#158)
madpah Feb 3, 2022
0f1fd6d
removed unnecessary calls to `hash()` in `__hash__()` methods as poin…
madpah Feb 3, 2022
142b8bf
BREAKING CHANGE: update models to use `Set` rather than `List` (#160)
madpah Feb 8, 2022
2938a6c
feat: support complete model for `bom.metadata` (#162)
madpah Feb 8, 2022
9b6ce4b
BREAKING CHANGE: Updated default schema version to 1.4 from 1.3 (#164)
madpah Feb 8, 2022
5c954d1
fix: `Component.bom_ref` is not Optional in our model implementation …
madpah Feb 15, 2022
a926b34
feat: completed work on #155 (#172)
madpah Feb 16, 2022
020fcf0
BREAKING CHANGE: replaced concept of default schema version with late…
madpah Feb 16, 2022
d189f2c
BREAKING CHANGE: added new model `BomRef` unlocking logic later to en…
madpah Feb 17, 2022
0d82c01
Continuation of #170 - missed updating Vulnerability to use `BomRef` …
madpah Feb 17, 2022
670bde4
implemented `__str__` for `BomRef`
madpah Feb 21, 2022
f014d7c
fix: `license_url` not serialised in XML output #179 (#180)
madpah Feb 21, 2022
b20d9d1
doc: added RTD badge to README
madpah Feb 21, 2022
da3f0ca
feat: bump dependencies
madpah Feb 21, 2022
9a32351
Merge branch 'main' into feat/add-bom-services
madpah Feb 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
[![shield_gh-workflow-test]][link_gh-workflow-test]
[![shield_pypi-version]][link_pypi]
[![shield_conda-forge-version]][link_conda-forge]
[![shield_license]][license_file]
[![shiled_rtd]][link_rtd]
[![shield_license]][license_file]
[![shield_website]][link_website]
[![shield_slack]][link_slack]
[![shield_groups]][link_discussion]
Expand Down Expand Up @@ -55,6 +56,7 @@ See the [LICENSE][license_file] file for the full license.
[shield_gh-workflow-test]: https://img.shields.io/github/workflow/status/CycloneDX/cyclonedx-python-lib/Python%20CI/main?logo=GitHub&logoColor=white "build"
[shield_pypi-version]: https://img.shields.io/pypi/v/cyclonedx-python-lib?logo=pypi&logoColor=white&label=PyPI "PyPI"
[shield_conda-forge-version]: https://img.shields.io/conda/vn/conda-forge/cyclonedx-python-lib?logo=anaconda&logoColor=white&label=conda-forge "conda-forge"
[shiled_rtd]: https://readthedocs.org/projects/cyclonedx-python-library/badge/?version=latest "Read the Docs"
[shield_license]: https://img.shields.io/github/license/CycloneDX/cyclonedx-python-lib "license"
[shield_website]: https://img.shields.io/badge/https://-cyclonedx.org-blue.svg "homepage"
[shield_slack]: https://img.shields.io/badge/slack-join-blue?logo=Slack&logoColor=white "slack join"
Expand All @@ -63,6 +65,7 @@ See the [LICENSE][license_file] file for the full license.
[link_gh-workflow-test]: https://github.com/CycloneDX/cyclonedx-python-lib/actions/workflows/poetry.yml?query=branch%3Amain
[link_pypi]: https://pypi.org/project/cyclonedx-python-lib/
[link_conda-forge]: https://anaconda.org/conda-forge/cyclonedx-python-lib
[link_rtd]: https://cyclonedx-python-library.readthedocs.io/en/latest/?badge=latest
[link_website]: https://cyclonedx.org/
[link_slack]: https://cyclonedx.org/slack/invite
[link_discussion]: https://groups.io/g/CycloneDX
Expand Down
7 changes: 4 additions & 3 deletions cyclonedx/exception/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
from . import CycloneDxException


class ComponentVersionRequiredException(CycloneDxException):
madpah marked this conversation as resolved.
Show resolved Hide resolved
class FormatNotSupportedException(CycloneDxException):
"""
Exception raised when attempting to output to an SBOM version that mandates a Component has a version,
but one is not available/present.
Exception raised when attempting to output a BOM to a format not supported in the requested version.

For example, JSON is not supported prior to 1.2.
"""
pass
Loading