We are deploying Plone add-ons as development eggs with buildout. The eggs are pushed to the production as source code checkouts using Mr. Developer buildout recipe and .egg packaging is not done in any point.
What would be best way to automatically update setup.py version stamp on every SVN commit to SVN release number or timestamp? This would give some quick info of tracking of different packages.
Distutils seem to offer some kind of magic version stamping mechanism, but I did not found any reference documentation how this should be used.
Add something like this in setup.cfg:
[egg_info]
tag_build = .dev
tag_svn_revision = 1
This only works for subversion of course; not sure if there are alternatives for other vcs. This file may still be added by default by some of the ZopeSkel templates. Some plone packages have it too; Wichert Akkerman is/was a fan of it.
Note that you do need to run bin/buildout or python setup.py egg_info every time to commit something, else the version info in the egg-info directory is not updated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With