Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhad6 committed Jan 3, 2024
1 parent 689de0d commit 1da2eab
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

env:
HATCH_VERSION: "1.7.0"
HATCH_VERSION: "1.9.1"
PYTHON_VERSION: "3.9"
PYTHON_PACKAGE_NAME: "jupyterlab_display_name"

Expand All @@ -24,7 +24,7 @@ jobs:
run: pipx install hatch==${{ env.HATCH_VERSION }}

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy to GitHub Pages
on: workflow_dispatch

env:
HATCH_VERSION: "1.7.0"
HATCH_VERSION: "1.9.1"
PACKAGE_VERSION: "0.1.2"
PACKAGE_NAME: "jupyterlab-display-name"
PYTHON_PACKAGE_NAME: "jupyterlab_display_name"
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
run: mv dist/* _site/releases/${{ env.PACKAGE_NAME }}

- name: Upload site artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3

deploy:
needs: build
Expand All @@ -71,4 +71,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
4 changes: 2 additions & 2 deletions jupyterlab_display_name/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from __future__ import annotations
from typing import Any
import os
from tornado.web import RequestHandler
from jupyter_server import DEFAULT_TEMPLATE_PATH_LIST
from jupyter_server.serverapp import ServerApp
from jupyter_server.base.handlers import JupyterHandler
from jupyter_server.auth.identity import PasswordIdentityProvider, User


Expand All @@ -27,7 +27,7 @@ def _load_jupyter_server_extension(_server_app: ServerApp) -> None:
class DisplayNamePasswordIdentityProvider(PasswordIdentityProvider):
"""Password identity provider that also accepts a display name to use."""

def process_login_form(self, handler: JupyterHandler) -> User | None:
def process_login_form(self, handler: RequestHandler) -> User | None:
user = super().process_login_form(handler)
display_name = handler.get_argument("display_name", default=None)
if user is not None and display_name is not None:
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.9"
dependencies = ["jupyter_server>=2.10.0,<3"]
dependencies = ["jupyter_server>=2.12.1,<3", "tornado>=6.4,<7"]

[project.urls]
Homepage = "https://github.com/PainterQubits/jupyterlab-display-name"
Expand All @@ -38,15 +38,15 @@ packages = ["jupyterlab_display_name"]

[tool.hatch.envs.default]
description = "For running JupyterLab in development"
dependencies = ["jupyterlab>=4.0.8,<5", "jupyter-collaboration>=1.2.0,<2"]
dependencies = ["jupyterlab>=4.0.10,<5", "jupyter-collaboration>=2.0.1,<3"]

[tool.hatch.envs.lint]
description = "For linting and type checking Python"
dependencies = [
"flake8>=6.1.0,<7",
"pylint>=3.0.2,<4",
"mypy>=1.6.1,<2",
"black>=23.10.1,<24",
"pylint>=3.0.3,<4",
"mypy>=1.8.0,<2",
"black>=23.12.1,<24",
]

[tool.mypy]
Expand Down

0 comments on commit 1da2eab

Please sign in to comment.