Skip to content
Myr

deduplicate version info

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

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parent 781e00e · Browse files · 1 file+10 added−1 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+10 added−1 removed

  • other:+10 added−1 removed

1 file+10 added−1 removed

modified:setup.py+10 added-1 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 ast40from setuptools import setup414243_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)))484950setup(51 name='Jinja2',43 version='2.8.dev0',52 version=version,53 url='http://jinja.pocoo.org/',54 license='BSD',55 author='Armin Ronacher',56 author_email='armin.ronacher@active-4.com',
27 unmodified lines