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
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 507
Download (untitled) / with headers
text/plain 507b
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.
From david [...] autopragmatic.com Tue Nov 1 14: 28:27 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-7.255 tagged_above=-99.9 required=10 tests=[AWL=-0.355, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-2598-1320166852-642.72094-4-0 [...] rt.cpan.org>
X-Spam-Flag: NO
References: <RT-Ticket-72094 [...] rt.cpan.org> <rt-3.8.HEAD-2598-1320166852-642.72094-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <CAOeq1c-E9MwR2rG0JTYDyqY_KG+DpPNWqu3MMYXd_29=vFGLJw [...] mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
X-RT-Original-Encoding: utf-8
X-Spam-Score: -7.255
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] autopragmatic.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id C2392240CBB for <cpan-bug+CPAN-Meta [...] hipster.bestpractical.com>; Tue, 1 Nov 2011 14:28:27 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IuCDt4H2B5sX for <cpan-bug+CPAN-Meta [...] hipster.bestpractical.com>; Tue, 1 Nov 2011 14:28:26 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 2B443240C3C for <bug-CPAN-Meta [...] rt.cpan.org>; Tue, 1 Nov 2011 14:28:25 -0400 (EDT)
Received: (qmail 8785 invoked by uid 103); 1 Nov 2011 18:28:25 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 1 Nov 2011 18:28:25 -0000
Received: from mail-vw0-f50.google.com (HELO mail-vw0-f50.google.com) (209.85.212.50) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Tue, 01 Nov 2011 11:28:23 -0700
Received: by vws9 with SMTP id 9so2148374vws.9 for <bug-CPAN-Meta [...] rt.cpan.org>; Tue, 01 Nov 2011 11:28:20 -0700 (PDT)
Received: by 10.52.71.82 with SMTP id s18mr694473vdu.68.1320172100158; Tue, 01 Nov 2011 11:28:20 -0700 (PDT)
Received: by 10.220.191.196 with HTTP; Tue, 1 Nov 2011 11:27:59 -0700 (PDT)
Delivered-To: cpan-bug+CPAN-Meta [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #72094] An interface to create META files
Return-Path: <david [...] autopragmatic.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autopragmatic.com; s=google; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=o0wxfSJyfHxRMKiWxk40lRIgfWrjyLhfaT98azgk4eU=; b=GaHOS8GoiR/uSrmZiywwVA+s5poHzju5svhI131kgJ1CU1AA6Celol+CgZzNfoxeG0 g8hN+J+M/ogEIoz2Ejufdmn/fiBdGI0joPWdE1zHpVSSIWPVHSQhGbVXW6pJgGtYfVNe o4YyzmUAHeAubGB7KQpcQoUuIAel5LbLsMNfg=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+CPAN-Meta [...] hipster.bestpractical.com
X-RT-Mail-Extension: cpan-meta
X-Google-Sender-Auth: aqEflhlJtwtJwWsIM-HLbTAf1f4
Sender: david [...] autopragmatic.com
Date: Tue, 1 Nov 2011 14:27:59 -0400
X-Spam-Level:
To: bug-CPAN-Meta [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
RT-Message-ID: <rt-3.8.HEAD-2603-1320172108-1296.72094-0-0 [...] rt.cpan.org>
Content-Length: 518
Download (untitled) / with headers
text/plain 518b
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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.