Fix import order

This commit is contained in:
Markus Unterwaditzer 2014-07-13 19:11:59 +02:00
parent c8f97b43ec
commit 97ad7eb27a

View file

@ -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: