You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gobblin.apache.org by ab...@apache.org on 2018/01/23 22:05:50 UTC
incubator-gobblin git commit: [GOBBLIN-384] Update Python version to
v3
Repository: incubator-gobblin
Updated Branches:
refs/heads/master c6b3824aa -> fd0c30a61
[GOBBLIN-384] Update Python version to v3
Closes #2261 from abti/gobblin-dev
Project: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/commit/fd0c30a6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/tree/fd0c30a6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/diff/fd0c30a6
Branch: refs/heads/master
Commit: fd0c30a61e87c2d6208a0d2f9c4761dd1b5d37b7
Parents: c6b3824
Author: Abhishek Tiwari <ab...@gmail.com>
Authored: Tue Jan 23 14:05:43 2018 -0800
Committer: Abhishek Tiwari <ab...@gmail.com>
Committed: Tue Jan 23 14:05:43 2018 -0800
----------------------------------------------------------------------
dev/gobblin-pr | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/fd0c30a6/dev/gobblin-pr
----------------------------------------------------------------------
diff --git a/dev/gobblin-pr b/dev/gobblin-pr
index a189db7..a7b3209 100755
--- a/dev/gobblin-pr
+++ b/dev/gobblin-pr
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Licensed to the Apache Software Foundation (ASF) under one or more
@@ -37,6 +37,10 @@ import subprocess
import sys
import textwrap
+# Print current SSL version, commented and left around for debugging
+# import ssl
+# print(ssl.OPENSSL_VERSION)
+
# Python 3 compatibility
try:
import urllib2 as urllib
@@ -48,13 +52,13 @@ if sys.version_info[0] == 3:
try:
import click
except ImportError:
- print("Could not find the click library. Run 'sudo pip install click' to install.")
+ print("Could not find the click library. Run 'sudo pip3 install click' to install.")
sys.exit(-1)
try:
import keyring
except ImportError:
- print("Could not find the keyring library. Run 'sudo pip install keyring' to install.")
+ print("Could not find the keyring library. Run 'sudo pip3 install keyring' to install.")
sys.exit(-1)
# Location of your Gobblin git development area
@@ -532,7 +536,7 @@ def resolve_jira_issue(comment=None, jira_id=None, merge_branches=None):
except ImportError:
raise PRToolError(
"Could not find jira-python library; exiting. Run "
- "'sudo pip install jira' to install.")
+ "'sudo pip3 install jira' to install.")
if merge_branches is None:
merge_branches = []