You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PipReport back to experimental, add pre-generated PipReport parsing (#1201)
* revert experiment graduation, bump threads, and enable fast deps
* put reqs back
* add ability for pip to detect pregenerated reports with a specific naming scheme
* better directory handling
* improve logging
Copy file name to clipboardExpand all lines: docs/detectors/pip.md
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,9 @@ Serialization specifications:
19
19
-https://peps.python.org/pep-0508/
20
20
-https://peps.python.org/pep-0301/
21
21
22
+
The detector can also pick up installation reports that have already been generated in the same directory as the `setup.py` or `requirements.txt` files,
23
+
as long as the report adheres to the following naming scheme: `component-detection-pip-report.json` or `*.component-detection-pip-report.json`
Pip detection is performed by running the following code snippet on every *setup.py*:
@@ -60,3 +63,7 @@ The environment variable `PipReportOverrideBehavior` is used to override pip rep
60
63
-`SourceCodeScan`: Scan `setup.py` and `requirements.txt` files, and record components explicitly from the package files without hitting a remote feed. Does not compile a dependency graph.
61
64
62
65
The environment variable `PipReportSkipFallbackOnFailure` is used to skip the default fallback behavior if pip report fails. Default behavior scans `setup.py` and `requirements.txt` files, and record components explicitly from the package files without hitting a remote feed. Does not compile a dependency graph.
66
+
67
+
The environment variable `PipReportFileLevelTimeoutSeconds` is used to control the timeout limit for generating the PipReport for individual files. This defaults to the overall timeout.
68
+
69
+
The environment variable `PipReportDisableFastDeps` is used to disable the fast deps feature in PipReport.
this.logger.LogDebug("PipReport: Generating pip installation report for {Path} with command: {Command}",formattedPath,pipReportCommand.RemoveSensitiveInformation());
this.Logger.LogInformation("PipReport: Using pre-generated pip report '{ReportFile}' for package file '{File}'.",existingReport.FullName,file.Location);
0 commit comments