Skip to content

Look in package-ecosystem specific key-files for referenced licenses and summary #3707

Description

@AyanSinhaMahapatra

If we scan beartype-0.17.2-py3-none-any.whl we get the following output scan:
beartype-0.17.2.json

This has a lot of unknown-license-references detected for the following reasons:

The following header is present in every .py file:

# --------------------( LICENSE                            )--------------------
# Copyright (c) 2014-2024 Beartype authors.
# See "LICENSE" for further details.

The referenced license file is present at:
beartype-0.17.2-py3-none-any.whl-extract/beartype-0.17.2.dist-info/LICENSE which is not the root of the scan directory, but rather a ecosystem specific location that we need to look into, so we miss this LICENSE file as we only look at sibling files and files at root.

We should implement something like get_key_files() for each ecosystem specific handler, and use this in the following license references logic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions