From c5c46d4e809f47c20241202826fd9958b51778cd Mon Sep 17 00:00:00 2001 From: Andre Gomes Date: Thu, 18 Jul 2024 16:44:48 +0100 Subject: [PATCH 1/2] Update README.md Fix Python example to handle extras in requirements.txt --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ab4a17df..20a137f6 100644 --- a/README.md +++ b/README.md @@ -508,7 +508,7 @@ Very often, you can get away with `grep`ing the `requirements.txt` file check de ``` cat requirements.txt | grep -v \# \ -| sed -E -e 's|([^= ]+)==([^= ]+)|pypi/pypi/-/\1/\2|' -e 's| ||g' \ +| sed -E -e 's|([^= ]+)==([^= ]+)|pypi/pypi/-/\1/\2|' -e 's| ||g' -e 's|\[.*\]||g' \ | sort | uniq \ | java -jar /dash-licenses/org.eclipse.dash.licenses-.jar - ``` From 4afba5053d22a70a0323d7efb8dfc4d854c1e549 Mon Sep 17 00:00:00 2001 From: Andre Gomes Date: Fri, 19 Jul 2024 14:56:42 +0100 Subject: [PATCH 2/2] Update README.md Add note clarifying one Python example should be avoided --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 20a137f6..a935c1ae 100644 --- a/README.md +++ b/README.md @@ -520,6 +520,8 @@ Steps: 3. Sort the results and remove duplicates; and 4. Invoke the tool. +> **Note:** This is a quick workaround and not intended to be a robust or reliable solution. + Alternatively, use `pipdeptree` to find all of the dependencies in your _virtual environment_, convert them into ClearlyDefined IDs, and pipe the results to the Eclipse Dash License Tool: ```