Skip to content

Commit

Permalink
1.3.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
sblack-usu committed Nov 12, 2018
1 parent 39ca498 commit d224611
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.3.1 - 11/12/2018
- input compatible with python3

# 1.3.0 - 11/6/2018
- Add createReferencedFile (/hsapi/scimeta/\<pid\>/)
- Add updateReferencedFile (/hsapi/resource/\<pid\>/scimeta/elements)
Expand Down
10 changes: 8 additions & 2 deletions hs_restclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

__title__ = 'hs_restclient'
__version__ = '1.3.0'
__version__ = '1.3.1'


import os
Expand Down Expand Up @@ -35,6 +35,12 @@
EXPIRES_AT_ROUNDDOWN_SEC = 15


# bind raw_input to input for Python 2 and 3 compatibility
try:
input = raw_input
except NameError:
pass

def default_progress_callback(monitor):
pass

Expand Down Expand Up @@ -70,7 +76,7 @@ def __init__(self, hostname=DEFAULT_HOSTNAME, port=None, use_https=True, verify=
self.auth = auth
elif prompt_auth:
import getpass
username = raw_input("Username: ").strip()
username = input("Username: ").strip()
password = getpass.getpass("Password for {}: ".format(username))
auth = HydroShareAuthBasic(username=username, password=password)
self.auth = auth
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='1.3.0',
version='1.3.1',

description='HydroShare REST API client library',
long_description=long_description,
Expand Down

0 comments on commit d224611

Please sign in to comment.