Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CPAN-Meta CPAN distribution.

Report information
The Basics
Id: 72094
Status: open
Priority: 0/
Queue: CPAN-Meta

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

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



Subject: An interface to create META files
This is just a wish list item. I'd like a way to build up a META data structure without knowing anything about the data structure itself. Something like: $meta->add_to_provides( ... ); $meta->add_to_configure_requires( ... ); $meta->set_perl_version( ... ); $meta->set_repository( ... ); I'm not suggesting a particular interface, and there's probably a clever way to take the spec and automatically provide the interface. Some of this relates to my work to convert legacy scripts into distributions.
Subject: Re: [rt.cpan.org #72094] An interface to create META files
Date: Tue, 1 Nov 2011 14:27:59 -0400
To: bug-CPAN-Meta [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Tue, Nov 1, 2011 at 1:00 PM, brian d foy via RT <bug-CPAN-Meta@rt.cpan.org> wrote: Show quoted text
> I'm not suggesting a particular interface, and there's probably a clever way to take the spec and > automatically provide the interface.
I like the idea, though it probably has to be a separate module as a CPAN::META object is designed to be static and valid against the spec once created. I could imagine a CPAN::Meta factory object that takes a bunch of inputs and then outputs a valid CPAN::Meta object on request. -- David