Skip Menu |

This queue is for tickets about the Module-CPANTS-Analyse CPAN distribution.

Report information
The Basics
Id: 89082
Status: resolved
Priority: 0/
Queue: Module-CPANTS-Analyse

People
Owner: Nobody in particular
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: new metric: MYMETA.{yml,json} bundled
MYMETA.{yml,json} are generated at install time. They must NOT be bundled in CPAN distributions. Check this for details: http://weblog.bulknews.net/post/44251476706/stop-shipping-mymeta-to-cpan Too many authors make that mistake: http://grep.cpan.me/?q=file%3AMYMETA.json+requires Note that just checking if MYMETA.yml/MYMETA.json is present in the distribution directory may not be a good idea: the distribution author may use Module::CPANTS::Analyse from his working directory through the use of Test::Kwalitee. The best would be to be able to distinguish that case. So a metric should check if MYMETA.yml/MYMETA.json is in the distribution: - it should ensure that they are not registered in MANIFEST (if MANIFEST exists) - if MANIFEST.SKIP is bundled it should check that it skips MYMETA.yml and MYMETA.json (see ExtUtils::Manifest::maniskip()) - if we are in a clean directory check that neither MYMETA.yml or MYMETA.json exists -- Olivier Mengué - http://perlresume.org/DOLMEN
I just noticed that cpants.cpanauthors.org is checking for MYMETA, but I have not found which module is used for that task... -- Olivier Mengué - http://perlresume.org/DOLMEN
On Tue Oct 01 06:07:05 2013, DOLMEN wrote: Show quoted text
> I just noticed that cpants.cpanauthors.org is checking for MYMETA, but > I have not found which module is used for that task...
https://github.com/cpants/Module-CPANTS-SiteKwalitee/blob/master/lib/Module/CPANTS/SiteKwalitee/MyMeta.pm#L24 As this metric is only valid with uploaded distributions (ie. not for Test::Kwalitee), this is not included in Module::CPANTS::Analyse.