[RFC] DateTime::Bundle::Minimal and DateTime::Bundle::Basic
I just installed Bundle::DateTime on my Darwin machine ... I hadn't looked through the docs beforehand :) Can I suggest two other bundles that I'm willing to maintain (they shouldn't need much alteration anyway. Not like the full bundle!) Bundle::DateTime::Minimal is the minimum needed to install and use DateTime.pm Bundle::DateTime::Basic contains the above, plus the extra modules required for Sets and Spans as well as the main Format modules Maybe we could also look at Bundle::DateTime::Formatters to quick-install all the formatters and Bundle::DateTime::Events to quick-install all events and DateTime::Bundle::Calendars to install all the calendars. That's more work though ... package Bundle::DateTime::Minimal; Class::Factory::Util 1.3 - prereq's of DateTime Params::Validate 0.52 Test::More 0 Time::Local 1.04 Class::Singleton 1.03 - prereq of DT::TimeZone DateTime::Locale 0.03 - needed by DateTime DateTime::TimeZone 0.25 - needed by DateTime DateTime package Bundle::DateTime::Basic; Bundle::DateTime::Minimal; DateTime::Set DateTime::Format::Strptime -- needed by DT::F::Builder DateTime::Format::Builder -- prereq of several other formats
Re: [RFC] DateTime::Bundle::Minimal and DateTime::Bundle::Basic
Rick Measham schreef: I just installed Bundle::DateTime on my Darwin machine ... I hadn't looked through the docs beforehand :) Can I suggest two other bundles that I'm willing to maintain (they shouldn't need much alteration anyway. Not like the full bundle!) Bundle::DateTime::Minimal is the minimum needed to install and use DateTime.pm Bundle::DateTime::Basic contains the above, plus the extra modules required for Sets and Spans as well as the main Format modules I would prefer just 1 more bundle, Bundle::DateTime, containing the mimimum needed for DateTime.pm, and a few selected other modules that don't introduce new prereq's: DT prereq's: Class::Factory::Util 1.3 - prereq's of DateTime Params::Validate 0.52 Test::More 0 Time::Local 1.04 Class::Singleton 1.03 - prereq of DT::TimeZone DateTime::Locale 0.03 - needed by DateTime DateTime::TimeZone 0.25 - needed by DateTime DateTime your choices for basic: DateTime::Set DateTime::Format::Strptime -- needed by DT::F::Builder DateTime::Format::Builder -- prereq of several other formats my additions: DateTime::Format::HTTP DateTime::Format::ISO8601 DateTime::Format::Mail Maybe we could also look at Bundle::DateTime::Formatters to quick-install all the formatters and Bundle::DateTime::Events to quick-install all events and DateTime::Bundle::Calendars to install all the calendars. That's more work though ... I can't imagine anyone else but a kalendrophile installing all calendars, or all events, and kalendrophiles can just install Bundle::DateTime::Complete. (I created Bundle::DateTime for myself, to have a simple method of getting all DT modules; I don't think it's the best way to install DateTime.pm, so I wouldn't mind renaming it to B::DT::Complete. With the name as it is, a query for DateTime in the CPAN.pm shell will return both DateTime.pm and Bundle/DateTime.pm, which is not good.) Eugene
Re: [RFC] DateTime::Bundle::Minimal and DateTime::Bundle::Basic
Dave Rolsky schreef: On Wed, 22 Oct 2003, Eugene van der Pijll wrote: DT prereq's: Class::Factory::Util 1.3 - prereq's of DateTime Params::Validate 0.52 Test::More 0 Time::Local 1.04 Class::Singleton 1.03 - prereq of DT::TimeZone DateTime::Locale 0.03 - needed by DateTime DateTime::TimeZone 0.25 - needed by DateTime DateTime I don't get how this is useful. If you use CPAN or CPANPLUS to install DateTime, it will tell you that you need these prereqs anyway. The first few versions of Bundle::DateTime left out those prereqs. As a result, the bundle was difficult to install for the first time: I can't remember exactly what happened, but DateTime couldn't be installed first time round because of its prereqs; the prereqs were installed; then CPAN first tried to install all other modules in Bundle::DateTime before installing DateTime itself, and each installation failed of course... The best solution seemed to be to include the prereqs in the Bundle. Eugene
Re: [RFC] DateTime::Bundle::Minimal and DateTime::Bundle::Basic
Dave Rolsky schreef: DateTime, it will tell you that you need these prereqs anyway. Eugene van der Pijll [EMAIL PROTECTED] wrote: The first few versions of Bundle::DateTime left out those prereqs. As a result, the bundle was difficult to install for the first time: A good point Dave, so there's really no need for Bundle::DateTime::Minimal, as you get the same thing by just installing DateTime with CPAN. So then we're left with the other bundle, which Eugene has suggested calling Bundle::DateTime, and moving the existing bundle to Bundle::DateTime::Complete. That sounds like a good idea, however I'm not sure about including DT::F::Mail and DT::F::HTTP. They seem to be fairly specific-task oriented modules. I admit that they're probably common tasks, but if I wanted a quick way to get up and going with DateTime, but it was for DBI, I'd be annoyed that I was getting net-related modules. I'm open to including them, just a little disinclined. Cheers! Rick P.S. Eugene: as you point out, you need to include all prerequisites in the bundle. It also seems that the order is of the utmost importance. I had to install the current bundle at least four times before it got everything installed. I wondered if that could be because it installs the modules in the order in the file rather than downloading them all and checking prereq's first. On the other hand I seem to recall CPAN.pm didn't fully install before it went on to the next one.. maybe I have an old CPAN. Cheers more! Rick
Re: [RFC] DateTime::Bundle::Minimal and DateTime::Bundle::Basic
Also, regarding DTF::HTTP suitability, it has a requirement of HTTP::Date which is part of LWP. This probably counts against it for bundling (though most people using bundles probably have LWP already). cheers, -- Iain. http://eh.org/~koschei/ pgp0.pgp Description: PGP signature