Skip to content

Commit

Permalink
Merge pull request cylc#589 from cylc/1.4.x-sync
Browse files Browse the repository at this point in the history
🤖 Merge 1.4.x-sync into master
  • Loading branch information
hjoliver authored Apr 30, 2024
2 parents b007b5f + 0eefd4d commit 63bd916
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion cylc/uiserver/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def initialize(self, *args, **kwargs):
@web.authenticated
def get(self, path):
# authenticate the static handler
# this provides us with login redirection and token cashing
# this provides us with login redirection and token caching
return web.StaticFileHandler.get(self, path)


Expand Down
12 changes: 1 addition & 11 deletions cylc/uiserver/scripts/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
"""

import os
import sys
from unittest.mock import patch
from pathlib import Path

from jupyterhub.app import JupyterHub
Expand All @@ -40,14 +38,6 @@ def main(*args):
# set an env var flag to help load the config
os.environ['CYLC_HUB_VERSION'] = __version__
try:
# JupyterHub 3.0.0 incorrectly passes our config file path as second
# arg of Tornado run_sync, which is supposed to be a timeout value.
# https://github.com/jupyterhub/jupyterhub/pull/4039
# Reviewer: "Will do a 3.0.1 pretty soon after some more 3.0 feedback."
# TODO: once we depend on jupyter >= 3.0.1 can revert to this:
# JupyterHub.launch_instance(args)
with patch.object(sys, "argv", [sys.argv[0]] + list(args)):
# Patch works via traitlets.config.Application.parse_command_line
JupyterHub.launch_instance()
JupyterHub.launch_instance(args)
finally:
del os.environ['CYLC_HUB_VERSION']
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ tests =
mypy>=0.900
pytest-cov>=2.8.0
pytest-tornasync>=0.5.0
pytest>=6
# https://github.com/pytest-dev/pytest/issues/12263
pytest>=6,<8.2
towncrier>=23
types-pkg_resources>=0.1.2
types-requests>2
Expand Down

0 comments on commit 63bd916

Please sign in to comment.