http://qs321.pair.com?node_id=1099308

skx has asked for the wisdom of the Perl Monks concerning the following question:

I maintain a couple of modules on CPAN, and having recently started exploring the facilities available there I've come across the "kwalitee" score.

Using the TinyDNS::Reader module as an example I see that the score listing shows an error:

META.yml does not conform to any recognised META.yml Spec.

My generated tarball, made with "perl Makefile.PL ; make dist" contains what looks to me like a valid META.yml file, so I'm a little confused as the the problem.

Can a kind soul help me understand my problem? (The module comes from a github repository, if that is useful.)

Steve
--

Replies are listed 'Best First'.
Re: Fixing Kwalitee
by Khen1950fx (Canon) on Sep 03, 2014 at 01:27 UTC
    I used Test::CPAN::Meta::YAML to check the validity of the YAML.
    #!/usr/bin/perl use strict; use warnings; use Test::More tests => 2; use Test::CPAN::Meta::YAML; meta_spec_ok('META.yml', 1.4, 'valid YAML');
    The problem is requires:. You would want to use 0 and not the tilde. Here's the corrected META.yml:
    --- #YAML:1.0 name: TinyDNS-Reader version: 0.5 abstract: Parser for TinyDNS records. author: - Steve Kemp <steve@steve.org.uk> license: perl_5 distribution_type: module configure_requires: ExtUtils::MakeMaker: 0 build_requires: ExtUtils::MakeMaker: 0 requires: Test::More: 0 Test::NoTabs: 0 Test::Pod: 0 resources: bugtracker: https://github.com/skx/TinyDNS--Reader/issues homepage: https://github.com/skx/TinyDNS--Reader/ license: http://dev.perl.org/licenses/ repository: https://github.com/skx/TinyDNS--Reader.git no_index: directory: - t - inc generated_by: ExtUtils::MakeMaker version 6.57_05 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4
    The test results:
    1..2 ok 1 - META.yml contains valid YAML ok 2 - valid YAML
    The YAML is valid.

      Perfect, thank you very much.

      Steve
      --