On 05/06/2016 09:48 AM, Leonardo Rochael Almeida wrote:
On 6 May 2016 at 13:15, Chris Barker wrote:

"python literals" is perfectly well defined -- both by the language
reference, and by "can be parsed by ast.literal_eval" and it addresses
>> the limitations of JSON and is fully declarative.

There is actually prior art for that kind of use. Odoo uses such a
language for its addons system, including package dependencies. See
example file here:

https://github.com/OCA/maintainer-tools/blob/master/template/module/__openerp__.py

Notice the `depends` key, that lists other addons, and the
`external_dependencies` key that can list both python distribution
dependencies as well as external program dependencies.

This is one of the very few things Odoo got right. Let's not look to them for other examples of good coding practices.

--
~Ethan~

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to