Skip to content

Commit

Permalink
adding script
Browse files Browse the repository at this point in the history
  • Loading branch information
jerowe committed Oct 26, 2022
1 parent 11f7c73 commit 1a54762
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion jupyter_dcv_proxy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ def get_system_user():

def setup_dcv():
def _get_env(port):
return dict(PORT=port, NB_USER=get_system_user(), SESSION_ID=str(uuid.uuid4()))
return dict(
PORT=str(port),
NB_USER=get_system_user(),
SESSION_ID=str(uuid.uuid4())
)

def _get_cmd(port):
dcv_exec = get_dcv_executable("dcv")
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
packages=setuptools.find_packages(),
keywords=["Jupyter"],
classifiers=["Framework :: Jupyter"],
scripts=["jupyter_dcv_proxy/run-dcv-user-session.sh"],
install_requires=["jupyter-server-proxy>=3.2.0"],
entry_points={"jupyter_serverproxy_servers": ["dcv = jupyter_dcv_proxy:setup_dcv"]},
package_data={
"jupyter_dcv_proxy": ["icons/dcv.svg"],
"jupyter_dcv_proxy": ["icons/dcv.svg", "run-dcv-user-session.sh"],
},
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
Expand Down

0 comments on commit 1a54762

Please sign in to comment.