Re: module name for test data?
hi, and sorry for the delay to answer... On 09/09/30 01:13 -0700, Ovid wrote: - Original Message From: David Nicol davidni...@gmail.com you could put the word corpus in there somewhere, since you're publishing some test data. For others to use it, who might be looking for test data, that's what a corpus is in test data jargon (i believe.) Test::Corpus::audio::mpd would set an example of publishing test data to CPAN under the Test::Corpus prefix. ++! You know, I never did like this idea of publishing test data to the CPAN, but I ever dislike even more the idea of people stretching it for legitimate uses. The Test::Corpus:: namespace is lovely. If you publish there and folks are reasonably happy with this, let us know and I'll post some stuff to my blog and Perl-QA to get others to know about this namespace (and potentially use it). i followed your advices and just pushed test::corpus::audio::md. now i need to update my other modules to use this instead of embedding the data themselves. If these corpuses (corpi?) can also guarantee a stable interface, we may even be able to guarantee common sets of test data which different *developers* can use, not just modules. To that end, how would we guarantee a stable interface which people could trust, or be able to quickly bail out or skip if there's an incompatible change? hmm, i also provide a module that configures and launches a test mpd automatically. so it's a bit more than just a corpus. anyway, i guess i can even split it further with test::corpus only shipping the data, and the logic in test::audio::mpd. but really not for today! :-) thanks, jérôme -- jque...@gmail.com
How can I tell MakeMaker to insert recommended modules into META.yml?
How can I tell MakeMaker to insert recommended modules into META.yml? When I edit META.yml manually, the next time I run make dist, MakeMaker generates META.yml anew and discards my entries. What is the right option for WriteMakefile() to tell it that there are modules which are not required but recommended? Thank you!!! Best regards, Steffen
Re: How can I tell MakeMaker to insert recommended modules into META.yml?
In the meantime, I found this: http://use.perl.org/articles/08/09/06/1541246.shtml And with trial and error, I found out this (META_MERGE is the keyword I was looking for and couldn't find in any of MakeMakers documentation files): WriteMakefile( 'META_MERGE'= { 'recommends' = { 'Carp::Clan' = 6.01, 'Date::Calc::XS' = 6.2 } }, 'NAME' = 'Date::Calc', 'VERSION_FROM' = 'lib/Date/Calc.pm', 'ABSTRACT_FROM' = 'lib/Date/Calc.pod', 'PREREQ_PM' = { 'Carp::Clan' = 5.3, 'Bit::Vector' = 7.1 }, 'AUTHOR'= 'Steffen Beyer st...@cpan.org', 'dist' = { COMPRESS = gzip -9, SUFFIX = gz } ); However, for unknown reasons, this worked once, but later the recommends section in META.yml disappeared again. Oops?!?! And I still wonder how I can tell MakeMaker to produce more complex structures such as this: optional_features: - opt_csv: description:Provides parsing of CSV streams requires: Text::CSV_XS:0.43 recommends: Text::CSV: 1.12 Text::CSV_PP:1.20 Text::CSV_XS:0.65 - opt_excel: description:Provides parsing of Microsoft Excel files requires: Spreadsheet::ParseExcel: 0.26 Spreadsheet::ParseExcel::FmtDefault: 0 recommends: Spreadsheet::ParseExcel: 0.49 Which is supposed to allow the user to make a better informed decision whether or not to install certain recommended additional features/modules. Any hints on all that? Many thanks in advance!!! Cheers, Steffen 2009/10/16 O. STeffen BEYer ost...@gmail.com How can I tell MakeMaker to insert recommended modules into META.yml? When I edit META.yml manually, the next time I run make dist, MakeMaker generates META.yml anew and discards my entries. What is the right option for WriteMakefile() to tell it that there are modules which are not required but recommended? Thank you!!! Best regards, Steffen