summaryrefslogtreecommitdiffstats
path: root/sms-client
diff options
context:
space:
mode:
authorDileep Ranganathan <dileep.ranganathan@intel.com>2018-09-12 05:40:34 -0700
committerDileep Ranganathan <dileep.ranganathan@intel.com>2018-09-12 05:40:34 -0700
commit3831216e94677642b32c554d551d995f394195e7 (patch)
treea2b9a1e06e9c0cb077724f10fe30f1324a178a73 /sms-client
parent9ab7ffee2902ff7c2dbebaeb80c2ebce6c5977cd (diff)
Added python3 support for sms client
Added python3 support for sms client Change-Id: I49dfa4de5b1c4aed07dd0ef8e85fcf1d448bfc92 Issue-ID: AAF-438 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Diffstat (limited to 'sms-client')
-rw-r--r--sms-client/python/onapsmsclient/onapsmsclient/__init__.py6
-rw-r--r--sms-client/python/onapsmsclient/setup.py6
2 files changed, 9 insertions, 3 deletions
diff --git a/sms-client/python/onapsmsclient/onapsmsclient/__init__.py b/sms-client/python/onapsmsclient/onapsmsclient/__init__.py
index 43fa1e6..9f31c3e 100644
--- a/sms-client/python/onapsmsclient/onapsmsclient/__init__.py
+++ b/sms-client/python/onapsmsclient/onapsmsclient/__init__.py
@@ -14,7 +14,11 @@
import requests
import requests.exceptions
-import urlparse
+
+try:
+ from urllib.parse import urlparse
+except ImportError:
+ from urlparse import urlparse
name = "onapsmsclient"
diff --git a/sms-client/python/onapsmsclient/setup.py b/sms-client/python/onapsmsclient/setup.py
index bf5675f..619b0f4 100644
--- a/sms-client/python/onapsmsclient/setup.py
+++ b/sms-client/python/onapsmsclient/setup.py
@@ -23,7 +23,7 @@ setup(
long_description="python-package onapsmsclient client library for using"
" Secret Management Service (SMS) inside ONAP. Refer "
"https://wiki.onap.org/display/DW/Secret+Management+Service for more details.",
- version="0.0.1",
+ version="0.0.2",
url="https://gerrit.onap.org/r/gitweb?p=aaf%2Fsms.git;a=summary",
license="Apache 2",
author="Kiran Kamineni",
@@ -32,9 +32,11 @@ setup(
platforms=["all"],
install_requires=[
'requests>=2.7.0',
+ 'urllib3>=1.22'
],
classifiers=[
"Intended Audience :: Developers",
- "Programming Language :: Python :: 2.7"
+ "Programming Language :: Python :: 2.7",
+ "Programming Language :: Python :: 3.6"
]
)