From 97ad7eb27af189a27b8994384e6d003507b2cd79 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sun, 13 Jul 2014 19:11:59 +0200 Subject: [PATCH] Fix import order --- docs/conf.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 52a96e4..bf4f2d9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,6 +1,10 @@ # -*- coding: utf-8 -*- +import os import sys + +import pkg_resources + extensions = ['sphinx.ext.autodoc'] templates_path = ['_templates'] @@ -11,7 +15,6 @@ master_doc = 'index' project = u'vdirsyncer' copyright = u'2014, Markus Unterwaditzer & contributors' -import pkg_resources try: # The full version, including alpha/beta/rc tags. release = pkg_resources.require('vdirsyncer')[0].version @@ -21,15 +24,12 @@ except pkg_resources.DistributionNotFound: 'this.') sys.exit(1) -del pkg_resources - version = '.'.join(release.split('.')[:2]) # The short X.Y version. exclude_patterns = ['_build'] pygments_style = 'sphinx' -import os on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if not on_rtd: