File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed
Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ Supported data sources are:
2323* Pip's ` requirements.txt ` format
2424* ` PDM ` manifest and lockfile are not explicitly supported.
2525 However, PDM's Python virtual environments are fully supported. See the docs for an example.
26+ * ` uv ` manifest and lockfile are not explicitly supported.
27+ However, uv's Python virtual environments are fully supported. See the docs for an example.
2628* ` Conda ` as a package manager is no longer supported since version 4.
2729 However, conda's Python environments are fully supported via the methods listed above. See the docs for an example.
2830
Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ def make_argument_parser(**kwargs: Any) -> 'ArgumentParser':
8181 • Build an SBOM from PDM environment:
8282 > pdm.exe info --python
8383 > %(prog)s "%%path-to-pdm-python%%"
84+ • Build an SBOM from uv environment:
85+ > uv.exe python find
86+ > %(prog)s "%%path-to-uv-python%%"
8487 """ )
8588 else : # if os_name == 'posix':
8689 p .epilog = dedent ("""\
@@ -102,6 +105,8 @@ def make_argument_parser(**kwargs: Any) -> 'ArgumentParser':
102105 $ %(prog)s "$(poetry env info --executable)"
103106 • Build an SBOM from PDM environment:
104107 $ %(prog)s "$(pdm info --python)"
108+ • Build an SBOM from uv environment:
109+ $ %(prog)s "$(uv python find)"
105110 """ )
106111 p .add_argument ('--PEP-639' ,
107112 action = 'store_true' ,
Original file line number Diff line number Diff line change @@ -145,6 +145,11 @@ Examples for macOS/Linux and alike
145145
146146 $ cyclonedx-py environment "$(pdm info --python)"
147147
148+ .. code-block :: shell-session
149+ :caption: Build an SBOM from uv environment
150+
151+ $ cyclonedx-py environment "$(uv python find)"
152+
148153 Examples for Windows
149154^^^^^^^^^^^^^^^^^^^^
150155
@@ -183,7 +188,7 @@ Examples for Windows
183188 .. code-block :: doscon
184189 :caption: Build an SBOM from Poetry environment
185190
186- > poetry.exe env info --executable
191+ > poetry.exe env info --executable
187192 > cyclonedx-py environment "%path-to-poetry-python%"
188193
189194 .. code-block :: doscon
@@ -192,6 +197,12 @@ Examples for Windows
192197 > pdm.exe info --python
193198 > cyclonedx-py environment "%path-to-pdm-python%"
194199
200+ .. code-block :: doscon
201+ :caption: Build an SBOM from uv environment
202+
203+ > uv.exe python find
204+ > cyclonedx-py environment "%path-to-uv-python%"
205+
195206
196207 For Pipenv
197208----------
@@ -469,6 +480,22 @@ it is possible to use the functionality for Python (virtual) environments as des
469480
470481
471482
483+ For uv
484+ -------
485+
486+ Support for `uv `_ manifest and lockfile is not explicitly implemented, yet.
487+
488+ However, since uv utilizes Python virtual environments under the hood,
489+ it is possible to use the functionality for Python (virtual) environments as described above.
490+
491+ .. _uv : https://docs.astral.sh/uv/
492+
493+
494+
495+ *****
496+
497+
498+
472499For Conda
473500---------
474501
You can’t perform that action at this time.
0 commit comments