summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith@newrelic.com>2014-12-18 10:30:58 -0800
committerAmjith Ramanujam <amjith@newrelic.com>2014-12-18 10:30:58 -0800
commit2f4df27df2d0a9d927d1ee14df9181ebfdc09e17 (patch)
tree11552ee998f53a7056b2b17dac1c4e5c9b8802dc
parent7d98b4a90bddeb60351d4747a72e1a4e17427c2b (diff)
Improvements to release and TODO list.
-rw-r--r--TODO3
-rw-r--r--release.py5
2 files changed, 7 insertions, 1 deletions
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()