in the indexing email, attempt to detect the license
(from QAH 2015 Berlin)
We should attempt to extract the licence for the uploaded distribution, and possibly warn the user if no valid licence was found.
in the email receipt after an upload:
User: BOB (Bob) Distribution file: Foo-Bar-1.23.tar.gz LICENSE: perl5 META-driven license: yes ...
CPANTS has licence-extracting code that we can copy and adapt.
@rjbs also suggested we have some sort of EULA on PAUSE that an author must eventually agree to (e.g. that we apply the perl5 license to all uploads that are not explicitly licensed), but this is a separate issue and will take some time to implement.
CPANTS code: https://github.com/cpants/Module-CPANTS-Analyse/blob/master/lib/Module/CPANTS/Kwalitee/License.pm
(Maybe this should be its own module? Module::GuessLicense?)
that's crazy talk, having common code that everything uses consistently? :)