license-expression
license-expression copied to clipboard
Utility library to parse, normalize and compare License expressions for Python using a boolean logic engine. For expressions using SPDX or any other license id scheme.
Based on https://github.com/openembedded/openembedded-core/blob/14241ed09f9ed317045cf75a6d08416d3579bb8d/meta/lib/oe/license.py#L217 and https://www.openembedded.org/wiki/Recipe_License_Fields these are license symbols using `&` for AND and `|` for OR which should be supported most likely mostly out of the box. See also:...
Since we are soon to include bundle licenses data for easy bootstrapping using calver for versions makes sense.
I would like to have a function that takes an expression string as an argument and validates this expression. It could be build from Licensing.parse() but I would prefer having...
Say I start from these expressions: - primary: bsd-new - initial: bsd-new AND bsd-simplified AND mit AND mit AND bsd-new AND gpl-2.0 I would like a way to end with...
Travis seems to be a lost cause on macOS for Python (it is not supported). @altendky recommended to try Azure pipelines that support WIndows, Linux and macOS. This is following...
This issue will capture progress on making `license-expression` and `boolean.py` into online tools. Transpiling tools that did not quite work: 1. RapydScript https://github.com/atsepkov/RapydScript Lacks support for importing things (like, `import...
See https://github.com/nexB/license-expression/pull/14#issuecomment-306405955
This PR was motivated by a discussion about [PEP 639](https://discuss.python.org/t/pep-639-round-3-improving-license-clarity-with-better-package-metadata/53020/1) which might recommend using this package in build tools. In that context, package size is a big concern. The package...
I am trying to make a standalone executable of my [Meta Package Manager](https://github.com/kdeldycke/meta-package-manager) project, which depends on [`cyclonedx-python-lib`](https://github.com/CycloneDX/cyclonedx-python-lib) for SBOM export, itself depending on `license-expression`. For this I use [Nuitka](https://github.com/Nuitka/Nuitka)...