There are several questions about getting the version string into setup.py. I have a slightly different set of requirements:
- I need version (e.g. 1.2.3) string and a build number (the result of$ git describe --tags --always HEAD)
- I need these versions available in my Flask application (e.g. app.config['VERSION'] = '1.2.3'andapp.config['BUILD'] = '1.2.3-33-g93abc32'
- I need the version string available in setup.py
I don't really care if the version/build strings are under version control, though it seems that the version would make sense to have there.
So I guess the question, perhaps, is how do I inject some build information into my project from setup.py?
 
    