Skip to content
Myr

Use actual release info

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 30d1448 · Browse files · 1 file+12 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−3 removed

  • other:+12 added−3 removed

1 file+12 added−3 removed

modified:docs/conf.py+12 added-3 removed
40 unmodified lines
41# The default replacements for |version| and |release|, also used in various42# other places throughout the built documents.43#44# The short X.Y version.45version = '2.0'46# The full version, including alpha/beta/rc tags.47release = '2.0'45import pkg_resources46try:47 release = pkg_resources.get_distribution('Jinja2').version48except ImportError:49 print 'To build the documentation, The distribution information of Jinja2'50 print 'Has to be available. Either install the package into your'51 print 'development environment or run "setup.py develop" to setup the'52 print 'metadata. A virtualenv is recommended!'53 sys.exit(1)54if 'dev' in release:55 release = release.split('dev')[0] + 'dev'56version = '.'.join(release.split('.')[:2])5758# There are two options for replacing |today|: either, you set today to some59# non-false value, then it is used:60#today = ''
100 unmodified lines