File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1111# All configuration values have a default; values that are commented out
1212# serve to show the default.
1313
14+ import datetime
1415import sys , os
1516
1617# If extensions (or modules to document with autodoc) are in another directory,
1718# add these directories to sys.path here. If the directory is relative to the
1819# documentation root, use os.path.abspath to make it absolute, like shown here.
1920#sys.path.append(os.path.abspath('.'))
20- sys .path .append (os .path .abspath ('../../' ))
21+ sys .path .insert (0 , os .path .join (os .path .dirname (__file__ ), '../../' ))
22+
23+ import sqlparse
2124
2225# -- General configuration -----------------------------------------------------
2326
4043
4144# General information about the project.
4245project = u'python-sqlparse'
43- copyright = u'2009 , Andi Albrecht'
46+ copyright = u'%s , Andi Albrecht' % datetime . date . today (). strftime ( '%Y' )
4447
4548# The version info for the project you're documenting, acts as replacement for
4649# |version| and |release|, also used in various other places throughout the
4750# built documents.
4851#
4952# The short X.Y version.
50- version = '0.1.0'
53+ version = sqlparse . __version__
5154# The full version, including alpha/beta/rc tags.
52- release = '0.1.0'
55+ release = sqlparse . __version__
5356
5457# The language for content autogenerated by Sphinx. Refer to documentation
5558# for a list of supported languages.
You can’t perform that action at this time.
0 commit comments