aboutsummaryrefslogtreecommitdiffstats
path: root/tasks.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-01-07 12:26:33 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-01-07 12:26:33 -0800
commitd7e04ae2f45c99034d564fd6a7747bf216d00ea9 (patch)
tree3aa52344b3c0a9c4f7457a281acba849a31655dc /tasks.py
parentffa8b4d5fedad8f9c1fdbd05a2da8fb2679168af (diff)
parent168c29d6d74060b0d9f592b740f8913cc5d07c5e (diff)
downloadcryptography-d7e04ae2f45c99034d564fd6a7747bf216d00ea9.tar.gz
cryptography-d7e04ae2f45c99034d564fd6a7747bf216d00ea9.tar.bz2
cryptography-d7e04ae2f45c99034d564fd6a7747bf216d00ea9.zip
Merge branch 'master' into setup-install-extension
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/tasks.py b/tasks.py
new file mode 100644
index 00000000..f72f43ba
--- /dev/null
+++ b/tasks.py
@@ -0,0 +1,27 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+from __future__ import absolute_import, division, print_function
+
+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("twine upload -s dist/cryptography-{0}*".format(version))