Re: adding META.yml "provides" with ExtUtils::MakeMaker

[email protected] ("Alceu R. de Freitas Jr." via cpan-testers-discuss)
Newsgroups perl.cpan.testers.discuss
Message-ID <[email protected]>
 Hello there Slaven,
It looks like doable.. I'll give it a try and see what happens.

Regarding marking it as required during the "make dist", wouldn't that fall into CONFIGURE_REQUIRES section?

    Em quarta-feira, 20 de março de 2019 18:29:35 BRT, Slaven Rezic <[email protected]> escreveu:  
 
 Hi Alceu,

why not use Module::Metadata, but just optionally, so your users are not forced to install it? E.g. like this (untested):

    if ( $ExtUtils::MakeMaker::VERSION >= 6.46 && eval { require Module::Metadata; 1 }) {
        $WriteMakefileArgs{META_MERGE} = {
            provides => Module::Metadata->provides(dir=>"lib",version=>2),
        };
    }

It would be better if this optional 'require' could be made into a mandatory one during "make dist", but I don't have an idea how to do this.

Regards,
    Slaven
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.