Closed danieljanes closed 9 months ago
Interesting! Do you know where licensecheck
gets its data from so we can report this in the way it wants? (We have a LICENSE
file in the repository root, which is kinda the "de facto" standard that the GitHub UI respects, for example.)
Without looking into the licensecheck
code, I would guess that license info gets pulled from thewhl
(in .dist-info
). Does your build process/tooling include the LICENSE in the whl
?
I unfortunately don't know the answer to that either… maybe it would be a matter of including the file via the license
key in Flit's package configuration? I would be glad to merge such a PR, if it indeed resolves the issue!
Hi there, for information, this issue is still valid. The liccheck
package when applied on a lib that has audioread
as dependency returns this:
gathering licenses...
...
1 package.
audioread (3.0.1): UNKNOWN
I'm one of the authors of Flower Datasets, an open-source library that allows users to partition datasets for federated learning. Flower Datasets builds on top of Hugging Face Datasets, and it installs
audioread
as a transitive dependency. We uselicensecheck
to ensure that only dependencies with certain types of licenses can be added to our repo.When using
licensecheck
,audioread
does not report the license (MIT), and thus fails the license check: