Skip to content

Commit

Permalink
Add helper to make releases
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Apr 11, 2014
1 parent 669ce94 commit 697b188
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

import invoke

# Based on https://github.com/pyca/cryptography/blob/master/tasks.py


@invoke.task
def release(version):
invoke.run("git tag -a fibers-{0} -m \"fibers {0} release\"".format(version))
invoke.run("git push --tags")

invoke.run("python setup.py sdist")
invoke.run("twine upload -r pypi dist/fibers-{0}*".format(version))

0 comments on commit 697b188

Please sign in to comment.