Skip to content

Commit

Permalink
Return package_uids in for_packages #444
Browse files Browse the repository at this point in the history
    * This is so we are consistent with scancode-toolkit JSON output
    * Update expected test results

Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed Aug 25, 2022
1 parent 63a2f60 commit 06a3bf2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ v31.0.0 (2022-08-25)
- ``CodebaseResource.for_packages`` now returns a list of
``DiscoveredPackage.package_uid`` or ``DiscoveredPackage.package_url`` if
``DiscoveredPackage.package_uid`` is not present. This is done to reflect the
how scancode-toolkit's JSON output returns ``package_uid`` in the
how scancode-toolkit's JSON output returns ``package_uid``s in the
``for_packages`` field for Resources.

v30.2.0 (2021-12-17)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,7 @@
"name": "WHEEL",
"extension": "",
"programming_language": "",
"mime_type": "text/plain",
"is_binary": false,
"is_text": true,
"is_archive": false,
Expand All @@ -888,6 +889,7 @@
"name": "top_level.txt",
"extension": ".txt",
"programming_language": "",
"mime_type": "text/plain",
"is_binary": false,
"is_text": true,
"is_archive": false,
Expand All @@ -914,6 +916,7 @@
"name": "__init__.py",
"extension": ".py",
"programming_language": "Python",
"mime_type": "text/plain",
"is_binary": false,
"is_text": true,
"is_archive": false,
Expand All @@ -940,6 +943,7 @@
"name": "compatibility.py",
"extension": ".py",
"programming_language": "Python",
"mime_type": "text/x-script.python",
"is_binary": false,
"is_text": true,
"is_archive": false,
Expand All @@ -966,6 +970,7 @@
"name": "current_thread_executor.py",
"extension": ".py",
"programming_language": "Python",
"mime_type": "text/x-script.python",
"is_binary": false,
"is_text": true,
"is_archive": false,
Expand Down

0 comments on commit 06a3bf2

Please sign in to comment.