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

Aligning spk-convert-pip with current SPI changes #1168

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dcookspi
Copy link
Collaborator

This modifies the license field processing in spk-convert-pip to align it with the current SPI license processing. The changes are from last September and move a code block around, as well as removing the "Unknown" default value.

This also versions up the spk-convert-pip spk package to v1.4.4 to sync up the version numbers

…nges.

Versions up the spk-convert-pip spk package to v1.4.4

Signed-off-by: David Gilligan-Cook <[email protected]>
@dcookspi dcookspi self-assigned this Jan 14, 2025
@dcookspi dcookspi requested review from jrray and rydrman January 14, 2025 19:09
Signed-off-by: David Gilligan-Cook <[email protected]>
spec = {
"pkg": f"{_to_spk_name(info.name)}/{_to_spk_version(info.version)}",
"api": "v0/package",
"sources": [],
"meta": {
"license": package_license,
Copy link
Collaborator

@rydrman rydrman Jan 22, 2025

Choose a reason for hiding this comment

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

still put this in the metadata, but you should be able to disable the license check - maybe this needs to be split out first to make this possible.

Aka split SpdxLicense rule into two (has license vs is spdx) and then make the semantics such that both can be disabled in these cases so that the actual included license is never checked.

build:
  validation:
    - rules: 
        - allow: SpdxLicense
        - allow: HasLicense

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.

2 participants