Use pkg_resources to resolve the version. Requires that the necessary package metadata have been built before building docs.
This commit is contained in:
parent
750a2b3896
commit
cc80be915b
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import setuptools_scm
|
import pkg_resources
|
||||||
|
|
||||||
extensions = [
|
extensions = [
|
||||||
'sphinx.ext.autodoc',
|
'sphinx.ext.autodoc',
|
||||||
|
@ -13,7 +13,7 @@ project = 'skeleton'
|
||||||
copyright = '2016 Jason R. Coombs'
|
copyright = '2016 Jason R. Coombs'
|
||||||
|
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = setuptools_scm.get_version(root='..', relative_to=__file__)
|
version = pkg_resources.require(project)[0].version
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = version
|
release = version
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user