Skip to content

Commit 697b188

Browse files
committed
Add helper to make releases
1 parent 669ce94 commit 697b188

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tasks.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
import invoke
3+
4+
# Based on https://github.com/pyca/cryptography/blob/master/tasks.py
5+
6+
7+
@invoke.task
8+
def release(version):
9+
invoke.run("git tag -a fibers-{0} -m \"fibers {0} release\"".format(version))
10+
invoke.run("git push --tags")
11+
12+
invoke.run("python setup.py sdist")
13+
invoke.run("twine upload -r pypi dist/fibers-{0}*".format(version))
14+

0 commit comments

Comments
 (0)