mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Fix import order
This commit is contained in:
parent
c8f97b43ec
commit
97ad7eb27a
1 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import pkg_resources
|
||||||
|
|
||||||
extensions = ['sphinx.ext.autodoc']
|
extensions = ['sphinx.ext.autodoc']
|
||||||
|
|
||||||
templates_path = ['_templates']
|
templates_path = ['_templates']
|
||||||
|
|
@ -11,7 +15,6 @@ master_doc = 'index'
|
||||||
project = u'vdirsyncer'
|
project = u'vdirsyncer'
|
||||||
copyright = u'2014, Markus Unterwaditzer & contributors'
|
copyright = u'2014, Markus Unterwaditzer & contributors'
|
||||||
|
|
||||||
import pkg_resources
|
|
||||||
try:
|
try:
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = pkg_resources.require('vdirsyncer')[0].version
|
release = pkg_resources.require('vdirsyncer')[0].version
|
||||||
|
|
@ -21,15 +24,12 @@ except pkg_resources.DistributionNotFound:
|
||||||
'this.')
|
'this.')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
del pkg_resources
|
|
||||||
|
|
||||||
version = '.'.join(release.split('.')[:2]) # The short X.Y version.
|
version = '.'.join(release.split('.')[:2]) # The short X.Y version.
|
||||||
|
|
||||||
exclude_patterns = ['_build']
|
exclude_patterns = ['_build']
|
||||||
|
|
||||||
pygments_style = 'sphinx'
|
pygments_style = 'sphinx'
|
||||||
|
|
||||||
import os
|
|
||||||
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
||||||
|
|
||||||
if not on_rtd:
|
if not on_rtd:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue