1 # -*- coding: utf-8 -*-
6 Shortcuts for various tasks.
8 :copyright: Copyright 2008 by Armin Ronacher.
14 """Run the testsuite."""
15 local("cd tests; py.test")
20 local("pylint --rcfile scripts/pylintrc jinja")
23 def release(**kwargs):
24 """Release, tag and upload Jinja2 to the Cheeseshop."""
26 _version_re = re.compile(r'VERSION\s*=\s["\'](.*?)["\']')
30 match = _version_re.match(line)
32 version = match.group(1)
35 raise RuntimeError('no version def in setup.py :-/')
39 local('hg tag -m "%s" "%s"' % ('tagged %r' % version, version))
40 local('python setup.py release sdist upload')