Re: package.xml vs DOAP
| From: | Greg Beaver | Date: | Thu, 28 May 2009 15:27:15 +0000 |
| Subject: | Re: package.xml vs DOAP | ||
| References: | 1 2 3 | Groups: | php.pear.core |
| Request: | Send a blank email to pear-core+get-8447@lists.php.net to get a copy of this message | ||
Hannes Magnusson wrote:
> On Thu, May 28, 2009 at 02:09, Brett Bieber <brett.bieber@gmail.com> wrote:
>
>> On Fri, May 22, 2009 at 4:10 AM, Hannes Magnusson
>> <hannes.magnusson@gmail.com> wrote:
>>
>>> Are there any plans on using DOAP files rather then package.xml in PEAR2?
>>>
>> Not that I know of.
>>
>> I did some quick research on the DOAP website and have a few
>> unanswered questions. The project goals state "Specifically not in
>> scope… is the description of software releases." Which is exactly what
>> package.xml provides. As far as I can tell, the DOAP schema provides
>> things that are outside of the scope of package.xml, and pertain more
>> to the inner PEAR channel xml files which are pretty well tested. Is
>> this the understanding others have, or am I off-base?
>>
>
> No no, you are totally right. The current release does not contain
> release info - which I classify as "missing elements" :)
> That however, as far as I know, is still planned though and how PEAR
> would solve that would probably be very valuable when DOAP takes that
> step.
>
> package.xml however contains more than just release info, it contains
> a detailed description of the package and its maintainers. With DOAP
> that step could be improved and listing mailinglists, VCS, manual,
> websites.. I think that could improve the user experience a lot.
>
>
>
>> Do you have any problems with the package xml format or other related
>> tools that lead you to ask this Hannes? I think the DOAP project
>> sounds interesting, but it doesn't appear to me to be a direct
>> replacement for package.xml.
>>
>
> It was very poorly worded question on my part :)
> I didn't mean to drop package.xml completely and take up DOAP, I was
> more hoping to combine them somehow in package.xml to provide more
> info to the end user. That info could then easily be aggregated by for
> example the bugtracker, the pear package page, 3rd parties..
Hi Hannes and Brett,
I am/we are flexible, but because of the workload of the existing
features, would need someone else (like you Hannes) to take the lead on
this. We'd call it package.xml 3.0, or perhaps package.doap? And there
would need to be a consistent way to store the data in the registry so
that the same API accesses basic elements. Fortunately, this is
relatively simple because the package.xml access is 100% abstracted from
the underlying data storage into various chains of objects accessed via
-> and ArrayAccess. The API needs a bit more separation through a few
more interfaces for things like dependencies, and I recently noticed
some patterns emerging that could use a bit more abstraction, but that's
all implementation details easily fixed, and not conceptual problems.
Having heard nothing about DOAP except that it rhymes with "dope," I may
be missing the boat completely :). Right now I am concentrating on the
big 3 missing features, post-install scripts (nearly complete), PECL
package install/build (not started), and custom plugins
(roles/tasks/commands) which is partially implemented. I may not have
time to surface and investigate DOAP for a while, but it doesn't mean
I'm indifferent. If you want to email more info on specifics of your
initial idea Hannes, such as how a simple package format might look, and
some of the conceptual things that would be improved, that would be very
cool.
Thanks,
Greg