buildout.packageinfo
is a zc.buildout extension which can be used
to extract package info of an adjacent setup.py
to avoid redundancy.
The info is made available via a specified name in
the [buildout]
section. See supported options for more info.
An example buildout.cfg
using the extension might look like this:
[buildout] extensions = buildout.packageinfo parts = app [app] recipe = zc.recipe.egg interpreter = app eggs = ${buildout:package-name}
Please note that since using this extension only makes sense for
package-specific buildouts, the develop
setting is set to "."
for added convenience.
- name
- This will be accessable as ${buildout:package-name}
- description
- This will be accessable as ${buildout:package-desctiption}
- author
- This will be accessable as ${buildout:package-author}
- author_email
- This will be accessable as ${buildout:package-author-email}
- version
- This will be accessable as ${buildout:package-version}