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.