From 2f4df27df2d0a9d927d1ee14df9181ebfdc09e17 Mon Sep 17 00:00:00 2001 From: Amjith Ramanujam Date: Thu, 18 Dec 2014 10:30:58 -0800 Subject: [PATCH] Improvements to release and TODO list. --- TODO | 3 ++- release.py | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 75deba1e..73ac7f30 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,6 @@ # vi: ft=vimwiki -* [ ] Separate the column completions to be table specific. +* [o] Separate the column completions to be table specific. (SELECT, INSERT, UPDATE) +* [ ] Column completion for nested sql. * [ ] Add JOIN to the list of keywords and provide proper autocompletion for it. * [ ] Use a pager to display the output. (Check Click's document). * [ ] Improve the smart completion for Insert statement. (Needs table specific columns) diff --git a/release.py b/release.py index 4f49cd07..2417978b 100644 --- a/release.py +++ b/release.py @@ -2,6 +2,7 @@ import re import ast import subprocess +import sys DEBUG = False @@ -45,6 +46,10 @@ if __name__ == '__main__': subprocess.check_output = lambda x: x ver = version('pgcli/__init__.py') + print ('Releasing Version:', ver) + choice = raw_input('Are you sure? (Y/N)') + if choice.lower() != 'y': + sys.exit(1) commit_for_release('pgcli/__init__.py', ver) create_git_tag('v%s' % ver) register_with_pypi()