From: Armin Ronacher Date: Sun, 26 Jul 2015 17:49:32 +0000 (+0200) Subject: Hardcode version in setup.py again. X-Git-Tag: 2.8~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75a9ddd193d196e447cb7bbf71643adb70ca2114;p=thirdparty%2Fjinja.git Hardcode version in setup.py again. --- diff --git a/setup.py b/setup.py index 3bfa749d..8ffd1c9c 100644 --- a/setup.py +++ b/setup.py @@ -35,21 +35,12 @@ For more informations visit the new `Jinja2 webpage`_ and `documentation`_. .. _Jinja2 webpage: http://jinja.pocoo.org/ .. _documentation: http://jinja.pocoo.org/2/documentation/ """ -import re -import ast from setuptools import setup -_version_re = re.compile(r'__version__\s+=\s+(.*)') - -with open('jinja2/__init__.py', 'rb') as f: - version = str(ast.literal_eval(_version_re.search( - f.read().decode('utf-8')).group(1))) - - setup( name='Jinja2', - version=version, + version='2.8.dev0', url='http://jinja.pocoo.org/', license='BSD', author='Armin Ronacher',