reuse.copyright module

Utilities related to the parsing and storing of copyright notices.

Parse all copyright lines and merge identical statements making years into a range.

If a same statement uses multiple prefixes, use only the most frequent one.

Given a statement, prefix it with SPDX-FileCopyrightText: if it is not already prefixed with some manner of copyright tag.