Skip to content

Commit

Permalink
Use pkg_resources to resolve the version. Requires that the necessary…
Browse files Browse the repository at this point in the history
… package metadata have been built before building docs.
  • Loading branch information
jaraco committed Sep 23, 2016
1 parent 750a2b3 commit cc80be9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import setuptools_scm
import pkg_resources

extensions = [
'sphinx.ext.autodoc',
Expand All @@ -13,7 +13,7 @@
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

Expand Down

0 comments on commit cc80be9

Please sign in to comment.