Get WSME version from the package, not wsme.release

This commit is contained in:
Christophe de Vienne 2012-10-15 16:31:25 +02:00
parent 5a7b305674
commit 4cf7c1cc4e

View File

@ -48,11 +48,14 @@ copyright = u'2011, Christophe de Vienne'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
import wsme.release
import pkg_resources
wsmedist = pkg_resources.require('WSME')[0]
version = wsmedist.version
# The short X.Y version.
version = '.'.join(wsme.release.version.split('.')[:2])
version = '.'.join(version.split('.')[:2])
# The full version, including alpha/beta/rc tags.
release = wsme.release.version
release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.