<div dir="ltr">On Mon, Feb 25, 2013 at 10:16 AM, Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com" target="_blank">ncoghlan@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Feb 26, 2013 at 12:59 AM, Daniel Holth <<a href="mailto:dholth@gmail.com">dholth@gmail.com</a>> wrote:<br>

> On Mon, Feb 25, 2013 at 9:54 AM, Nick Coghlan <<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>> wrote:<br>
>><br>
>> On Tue, Feb 26, 2013 at 12:38 AM, Daniel Holth <<a href="mailto:dholth@gmail.com">dholth@gmail.com</a>> wrote:<br>
>> > I'm probably the only one but I'm not a fan of JSON with all the extra "<br>
>> > marks compared to the venerable, lovely, flatter and much easier to edit<br>
>> > Key: value format.<br>
>><br>
>> I don't really care that much about human readability of the raw<br>
>> metadata files, I care a lot more about ease of interoperability for<br>
>> automated tools, and ease of display for generic tools that may not<br>
>> understand the semantics. I also care about the standard format being<br>
>> amenable to the publication of metadata through TUF's JSON based<br>
>> infrastructure.<br>
><br>
><br>
> When I see that file I've always thought "why aren't we writing these by<br>
> hand instead of through setup.py and then validating that they are correct<br>
> with a tool?" Bento's file sortof follows this logic. I can accept JSON.<br>
<br>
</div></div>That's a similar question to the one the distutils2 folks asked before<br>
coming up with setup.cfg. The reason I think we need to assume a<br>
generated file rather than a hand-edited one is because, for the vast<br>
majority of Python users, for the foreseeable future, their static<br>
metadata is going to be generated by running a setup.py file. For most<br>
others, it's going to be generated from either setup.cfg or from<br>
<a href="http://bento.info" target="_blank">bento.info</a>.</blockquote><div><br></div><div style>Well this is a rabbit hole. setup.cfg is what you get when the metadata devolves into "the arguments passed to setup()". Perhaps that is the real reason I don't like JSON that much; the temptation would be to make it nothing more than the argument dict to setup() and that ties us to distutils.</div>
<div style><br></div><div style>It is true that setup.py is where METADATA comes from usually but the file's origin has to not matter by the time you are installing.</div></div></div></div>