Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade ScanCode-toolkit to latest v32 #569 #715

Merged
merged 57 commits into from
May 18, 2023
Merged

Conversation

tdruez
Copy link
Contributor

@tdruez tdruez commented May 5, 2023

No description provided.

tdruez added 30 commits May 4, 2023 19:23
Signed-off-by: Thomas Druez <[email protected]>
Signed-off-by: Thomas Druez <[email protected]>
Signed-off-by: Thomas Druez <[email protected]>

# Conflicts:
#	scanpipe/pipes/output.py
Signed-off-by: Thomas Druez <[email protected]>
tdruez added 22 commits May 15, 2023 12:04
Signed-off-by: Thomas Druez <[email protected]>
Signed-off-by: Thomas Druez <[email protected]>
Signed-off-by: Thomas Druez <[email protected]>
Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CHANGELOG.rst Outdated Show resolved Hide resolved
scanpipe/models.py Outdated Show resolved Hide resolved
"other_license_expression": "",
"other_license_expression_spdx": "",
"other_license_detections": [],
"extracted_license_statement": "['MIT']",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bug!! we should not have this ugly repr-like in the extracted license statement but proper YAML like this was done before with the SCTK 31.x in "declared_license" . @AyanSinhaMahapatra ping :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll fix this in scancode-toolkit v32.0.0rc5, but this is not in the way of the upgrade, as the extracted license statement will continue to be a string, but it will be using yaml (and now parse-able) instead of the repr used now.

Btw, @pombredanne this was not yaml in v31 at all, see https://github.com/nexB/scancode-toolkit/blob/v31.2.6/tests/packagedcode/data/plugin/bower-package-expected.json#LL143C11-L145C13 for example. It used to be everything from dicts/list/strings etc.

Copy link
Member

@AyanSinhaMahapatra AyanSinhaMahapatra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tdruez thanks! I've tested with scanning and using multiple and different pipelines, migrating old data, and the views. Everything works as expected and nicely. I'll also open follow up issues on more upgrades for later.

@tdruez tdruez merged commit 657c1af into main May 18, 2023
@tdruez tdruez deleted the 569-toolkit-upgrade-v32 branch May 18, 2023 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants