diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-23 10:07:39 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-23 10:07:39 -0500 |
commit | cc80be915b6912056990bf71324826e244432533 (patch) | |
tree | cbca005dc19e8dfc5e4906861dfca9808c14c59b | |
parent | 750a2b38964adc868b1a7f4570afa1532418b12c (diff) | |
download | pytest-runner-cc80be915b6912056990bf71324826e244432533.tar.gz |
Use pkg_resources to resolve the version. Requires that the necessary package metadata have been built before building docs.
-rw-r--r-- | docs/conf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py index 9c7ad1b..5abe25a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -import setuptools_scm +import pkg_resources extensions = [ 'sphinx.ext.autodoc', @@ -13,7 +13,7 @@ project = 'skeleton' copyright = '2016 Jason R. Coombs' # 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. release = version |