Florian Friesdorf wrote:
> when developing products for plone one needs/wants to define among other
> metadata:
>
> - setup.py
> - name
> - version
> - description
> - egg dependencies
> - profiles/default/metadata.xml
> - name
> - version
> - description
> - product dependencies
>
> Are there approaches already to move these together, e.g. by generating
> both of them from some other file or one from the other, or way more
> elegant, storing profiles/default/metadata.xml within setup.py and have
> GenericSetup read from there?
>
I don't believe metadata.xml contains a name or description. If it did,
it would be the name and description of a GenericSetup profile (it is
perfectly acceptable to have more than one profile per package, which
one of the main reasons unifying these two things doesn't make sense).
In regard to the other items, there is a significant difference between
the version of a package and the version of a profile. The former is
used when determining what packages to install into the Python
environment. The latter is used when determining whether any
GenericSetup upgrade steps are available for a profile. So the version
in metadata.xml is really the version of a profile, and there's really
not any reason to change it unless you have created an upgrade step to
apply some changes between profile versions. (This distinction was
unfortunately made less clear for a short time in the Plone 3.x series
when the version from metadata.xml was the one shown in the quick
installer, but that has fortunately been corrected.)
There's also a difference between egg dependencies (which, again, has to
do with installing packages into the Python environment) and profile
dependencies (which has to do with what profiles get run when some other
profile is run).
hope this helps,
David
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Plone-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-developers