Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a few additional common patterns for legal and attribution files #251

Merged
merged 1 commit into from
Sep 24, 2018

Conversation

CAM-Gerlach
Copy link
Contributor

This is a minor refinement to the default license/legal-related globs included in #138 , adding extension support for COPYING and NOTICE as well (since the former is often encountered with extensions, e.g. .txt, .md, .rst; and the Apache license allows .txt as well as an extension), and also adds AUTHORS* as licenses have varying attribution requirements and they are sometimes included by reference in the licenses themselves as well. It also adds them in the docs (sorting the list alphabetically there) and adds some additional test filenames to cover these cases with varied extensions in the tests.

@@ -14,7 +14,8 @@
'dummy_dist-1.0.dist-info/RECORD'
}
DEFAULT_LICENSE_FILES = {
'LICENSE', 'LICENSE.txt', 'LICENCE', 'LICENSE.txt', 'COPYING', 'NOTICE'
('LICENSE', 'LICENSE.txt', 'LICENCE', 'LICENSE.txt', 'COPYING',
'COPYTING.md', 'NOTICE', 'NOTICE.rst', 'AUTHORS', 'AUTHORS.txt')
}
Copy link
Member

@benoit-pierre benoit-pierre Sep 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You just changed the declaration from a set of strings to a set containing only one tuple of strings.

Copy link
Contributor Author

@CAM-Gerlach CAM-Gerlach Sep 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, stupid mistake; thanks for the catch. The other place I changed it was an implicit tuple, and I didn't parse the braces properly at first glance so I didn't see it was already a set. Fixed.

@agronholm
Copy link
Contributor

Thanks!

@CAM-Gerlach
Copy link
Contributor Author

Thanks @agronholm !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants