Skip to content

dedup does not work with logically equivalent expressions #130

@chinyeungli

Description

@chinyeungli
>>> from license_expression import Licensing
>>> lic_exp = "(apache-2.0 OR mit) AND (mit OR apache-2.0)"
>>> str(Licensing().dedup(lic_exp))
'(apache-2.0 OR mit) AND (mit OR apache-2.0)'

The apache-2.0 OR mit and mit OR apache-2.0 is technically equivalent and should be deduplicated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions