Skip to content

Commit

Permalink
Merge pull request #84 from DLHub-Argonne/funcx_requirements
Browse files Browse the repository at this point in the history
Funcx requirements
  • Loading branch information
ZhuozhaoLi committed Aug 7, 2020
2 parents bc6d88f + 5b11c7c commit d3bbf14
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
17 changes: 10 additions & 7 deletions dlhub_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,24 @@ def __init__(self, dlh_authorizer=None, search_client=None, http_timeout=None,

fx_scope = "https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all"
auth_res = login(services=["search", "dlhub",
fx_scope],
fx_scope, "openid"],
app_name="DLHub_Client",
client_id=CLIENT_ID,
clear_old_tokens=force_login,
token_dir=_token_dir,
no_local_server=kwargs.get("no_local_server", True),
no_browser=kwargs.get("no_browser", True))
# openid_authorizer = auth_res["openid"]
dlh_authorizer = auth_res["dlhub"]
fx_authorizer = auth_res[fx_scope]
self._search_client = auth_res["search"]
self._fx_client = FuncXClient(force_login=True,
fx_authorizer=fx_authorizer,
no_local_server=kwargs.get("no_local_server", True),
no_browser=kwargs.get("no_browser", True),
funcx_service_address='https://funcx.org/api/v1')

self._fx_client = FuncXClient(force_login=force_login,
# fx_authorizer=fx_authorizer,
no_local_server=kwargs.get("no_local_server", True),
no_browser=kwargs.get("no_browser", True),
funcx_service_address='https://api.funcx.org/v1',)
# openid_authorizer=openid_authorizer)

# funcX endpoint to use
self.fx_endpoint = '86a47061-f3d9-44f0-90dc-56ddc642c000'
Expand Down Expand Up @@ -454,4 +457,4 @@ def clear_funcx_cache(self, servable=None):
else:
self.fx_cache = {}

return self.fx_cache
return self.fx_cache
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ jsonpickle>=1.0
requests>=2.20.0
mdf_toolbox>=0.5.0
jsonschema>=3.0.0
funcx>=0.0.1a5
funcx>=0.0.2a0
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
"that other scientists have published."),
install_requires=[
"pandas",
"requests==2.20.0",
"requests>=2.20.0",
"jsonschema>=3.0.0",
"globus_sdk",
"jsonpickle",
"mdf_toolbox>=0.4.0",
"funcx>=0.0.1a5"
"funcx>=0.0.2a0"
],
python_requires=">=3.4",
classifiers=[
Expand Down

0 comments on commit d3bbf14

Please sign in to comment.