BrightcoveOS/Diamond — pull request #160 by bcakipp (2012-10-24 17:51:04+00:00)
Title: Automatically Set Version based on git tag information

This change automatically sets the diamond version to .. The current tag is 3.1, and there have been zero commits since the tag, so the version is 3.1.0. When this change is pulled in, the new version will be 3.1.1.

The purpose of this change is to make it easier to build uniquely versioned packages. Most package management systems require that version numbers be unique and increasing in order to install and update a package. This change will allow people to build packages off of master at any given time with a unique package version.

This is accomplished through using the git describe command to get the current tag info. This is passed into setup.py via a textfile (version.txt). The textfile is generated by the version make target (related target's have been updated to depend on this target).

The other change of note is that since debian packages get there version info from the changelog file, the make deb target will now automatically update this file with the current version number.