From 678ec31229d3acfdaa26586bd75dcb1e5063ebd3 Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Sun, 12 Feb 2017 02:48:44 -0800 Subject: [PATCH] Revert "Change docs to pull version from setup.py" This reverts commit 45b70c952fe4298ac0461cc545929963335f1e95. This commit broke the readthedocs build because RTD is building the docs without running setup.py. So there is no package metadata. --- docs/conf.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 24c4b65..6556cc6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,7 +13,6 @@ import datetime import os -import pkg_resources import sys import time @@ -56,17 +55,11 @@ copyright = u'2012-{0}'.format(BUILD_DATE.year) # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. -try: - release = pkg_resources.get_distribution('Flask-DebugToolbar').version -except pkg_resources.DistributionNotFound: - print('Flask-DebugToolbar must be installed to build the documentation.') - print('Install from source using `pip install -e .` in a virtualenv.') - sys.exit(1) - -if 'dev' in release: - release = ''.join(release.partition('dev')[:2]) - -version = '.'.join(release.split('.')[:2]) +# +# The short X.Y version. +version = '0.10' +# The full version, including alpha/beta/rc tags. +release = '0.10.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.