Skip to content
Myr

Hardcode version in setup.py again.

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 4083d96 · Browse files · 1 file+1 added−10 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+1 added−10 removed

  • other:+1 added−10 removed

1 file+1 added−10 removed

modified:setup.py+1 added-10 removed
33 unmodified lines
34.. _Django: http://www.djangoproject.com/35.. _Jinja2 webpage: http://jinja.pocoo.org/36.. _documentation: http://jinja.pocoo.org/2/documentation/37"""38import re39import ast38from setuptools import setup394043_version_re = re.compile(r'__version__\s+=\s+(.*)')4445with open('jinja2/__init__.py', 'rb') as f:46 version = str(ast.literal_eval(_version_re.search(47 f.read().decode('utf-8')).group(1)))484941setup(42 name='Jinja2',52 version=version,43 version='2.8.dev0',44 url='http://jinja.pocoo.org/',45 license='BSD',46 author='Armin Ronacher',47 author_email='armin.ronacher@active-4.com',
30 unmodified lines