Package managers or text files may declare a license string that may not be an SPDX license format. For example, many projects declare their license as BSD but it is unclear which BSD.
oss-review-toolkit has an implementation that comes reasonably close.
https://github.com/heremaps/oss-review-toolkit/blob/490c2da69435182db19c6dbdebad863de41a7108/spdx-utils/src/main/kotlin/SpdxLicenseAliasMapping.kt
https://github.com/heremaps/oss-review-toolkit/blob/518e17c0b1385cc403960cfdfdff69e76240cb27/spdx-utils/src/main/kotlin/SpdxDeclaredLicenseMapping.kt
This is written in kotlin but it looks reasonably straightforward to convert it to python2/3
This would be useful for tools that are reading user-declared licenses.
cc @tsteenbe @goneall @kestewart
Package managers or text files may declare a license string that may not be an SPDX license format. For example, many projects declare their license as
BSDbut it is unclear whichBSD.oss-review-toolkit has an implementation that comes reasonably close.
https://github.com/heremaps/oss-review-toolkit/blob/490c2da69435182db19c6dbdebad863de41a7108/spdx-utils/src/main/kotlin/SpdxLicenseAliasMapping.kt
https://github.com/heremaps/oss-review-toolkit/blob/518e17c0b1385cc403960cfdfdff69e76240cb27/spdx-utils/src/main/kotlin/SpdxDeclaredLicenseMapping.kt
This is written in kotlin but it looks reasonably straightforward to convert it to python2/3
This would be useful for tools that are reading user-declared licenses.
cc @tsteenbe @goneall @kestewart