Get WSME version from the package, not wsme.release
This commit is contained in:
parent
5a7b305674
commit
4cf7c1cc4e
@ -48,11 +48,14 @@ copyright = u'2011, Christophe de Vienne'
|
|||||||
# |version| and |release|, also used in various other places throughout the
|
# |version| and |release|, also used in various other places throughout the
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
import wsme.release
|
import pkg_resources
|
||||||
|
wsmedist = pkg_resources.require('WSME')[0]
|
||||||
|
version = wsmedist.version
|
||||||
|
|
||||||
# The short X.Y 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.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = wsme.release.version
|
release = version
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user