Skip to content

Commit edc93c3

Browse files
authored
Allow build with cyclonedx-python-lib 6.0.0+ (#715)
* Allow build with cyclonedx-python-lib 6.0.0+ get_instance() has been renamed to make_outputter() and removed in 6.0.0. * Update lower bound of cyclonedx-python-lib make_outputter() has been added since 5.0.0.
1 parent 2dd185f commit edc93c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pip_audit/_format/cyclonedx.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def format(
9090
logger.warning("--fix output is unsupported by CycloneDX formats")
9191

9292
bom = _pip_audit_result_to_bom(result)
93-
formatter = output.get_instance(
93+
formatter = output.make_outputter(
9494
bom=bom,
9595
output_format=self._inner_format.value,
9696
schema_version=output.SchemaVersion.V1_4,

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ classifiers = [
2828
]
2929
dependencies = [
3030
"CacheControl[filecache] >= 0.13.0",
31-
"cyclonedx-python-lib >= 4,< 6",
31+
"cyclonedx-python-lib >= 5,< 7",
3232
"html5lib>=1.1",
3333
"packaging>=23.0.0", # https://github.com/pypa/pip-audit/issues/464
3434
"pip-api>=0.0.28",

0 commit comments

Comments
 (0)