dpctl icon indicating copy to clipboard operation
dpctl copied to clipboard

Change license headers from comments to strings

Open oleksandr-pavlyk opened this issue 4 years ago • 0 comments

So far we have adopted stating license governing Python code as Python comments.

Project loopy states the license as a string in __license__ module attribute, e.g. https://github.com/inducer/loopy/blob/main/loopy/compiled.py#L3

Following loopy, we could also define __copyright__ attribute.

The advantage, particularly for compile extensions, is that license can be dynamically retrieved in a Python session by any user, and presence of the license string can be tested in our test-suite.

oleksandr-pavlyk avatar Dec 09 '21 18:12 oleksandr-pavlyk