File: tasks.py

package info (click to toggle)
python-django-babel 0.4.0-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 180 kB
  • sloc: python: 434; makefile: 173
file content (13 lines) | stat: -rw-r--r-- 356 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
import invoke


@invoke.task
def release(version):
    """`version`` should be a string like '0.4' or '1.0'."""
    invoke.run('git tag -s {0}'.format(version))
    invoke.run('git push --tags')

    invoke.run('python setup.py sdist')
    invoke.run('python setup.py bdist_wheel')

    invoke.run('twine upload -s dist/django*babel{0}* '.format(version))