python3-jupyter_server: update to 2.9.1.
This commit is contained in:
parent
36510e02d9
commit
8afa8410e2
|
@ -1,17 +1,25 @@
|
||||||
See: https://github.com/jupyter-server/jupyter_server/issues/1296#issuecomment-1751887150
|
commit 13def167faf8898b2e19fc04f24c0ff6f6cc35fa
|
||||||
|
Author: Gonzalo Tornaría <tornaria@cmat.edu.uy>
|
||||||
|
Date: Mon Oct 16 10:38:36 2023 -0300
|
||||||
|
|
||||||
|
utcnow deprecation
|
||||||
|
|
||||||
|
See: https://github.com/jupyter-server/jupyter_server/issues/1296#issuecomment-1751887150
|
||||||
|
|
||||||
|
diff --git a/jupyter_server/_tz.py b/jupyter_server/_tz.py
|
||||||
|
index 24847b430..ea3e65fe2 100644
|
||||||
--- a/jupyter_server/_tz.py
|
--- a/jupyter_server/_tz.py
|
||||||
+++ b/jupyter_server/_tz.py
|
+++ b/jupyter_server/_tz.py
|
||||||
@@ -5,7 +5,7 @@ Just UTC-awareness right now
|
@@ -7,7 +7,7 @@ Just UTC-awareness right now
|
||||||
"""
|
|
||||||
# Copyright (c) Jupyter Development Team.
|
|
||||||
# Distributed under the terms of the Modified BSD License.
|
# Distributed under the terms of the Modified BSD License.
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
-from datetime import datetime, timedelta, tzinfo
|
-from datetime import datetime, timedelta, tzinfo
|
||||||
+from datetime import datetime, timedelta, tzinfo, timezone
|
+from datetime import datetime, timedelta, tzinfo, timezone
|
||||||
|
from typing import Callable
|
||||||
|
|
||||||
# constant for zero offset
|
# constant for zero offset
|
||||||
ZERO = timedelta(0)
|
@@ -42,6 +42,12 @@ def utc_aware(unaware: Callable[..., datetime]) -> Callable[..., datetime]:
|
||||||
@@ -39,6 +39,12 @@ def utc_aware(unaware):
|
|
||||||
utcfromtimestamp = utc_aware(datetime.utcfromtimestamp)
|
utcfromtimestamp = utc_aware(datetime.utcfromtimestamp)
|
||||||
utcnow = utc_aware(datetime.utcnow)
|
utcnow = utc_aware(datetime.utcnow)
|
||||||
|
|
||||||
|
@ -22,10 +30,10 @@ See: https://github.com/jupyter-server/jupyter_server/issues/1296#issuecomment-1
|
||||||
+def utcfromtimestamp(timestamp):
|
+def utcfromtimestamp(timestamp):
|
||||||
+ return datetime.fromtimestamp(timestamp, timezone.utc)
|
+ return datetime.fromtimestamp(timestamp, timezone.utc)
|
||||||
|
|
||||||
def isoformat(dt):
|
def isoformat(dt: datetime) -> str:
|
||||||
"""Return iso-formatted timestamp
|
"""Return iso-formatted timestamp
|
||||||
diff --git a/tests/test_gateway.py b/tests/test_gateway.py
|
diff --git a/tests/test_gateway.py b/tests/test_gateway.py
|
||||||
index 8f7f8a463..598006e29 100644
|
index 37ce8b03e..e1ea0869e 100644
|
||||||
--- a/tests/test_gateway.py
|
--- a/tests/test_gateway.py
|
||||||
+++ b/tests/test_gateway.py
|
+++ b/tests/test_gateway.py
|
||||||
@@ -78,7 +78,7 @@ omitted_kernels: Dict[str, bool] = {}
|
@@ -78,7 +78,7 @@ omitted_kernels: Dict[str, bool] = {}
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
# Template file for 'python3-jupyter_server'
|
# Template file for 'python3-jupyter_server'
|
||||||
pkgname=python3-jupyter_server
|
pkgname=python3-jupyter_server
|
||||||
version=2.7.3
|
version=2.9.1
|
||||||
revision=1
|
revision=1
|
||||||
build_style=python3-pep517
|
build_style=python3-pep517
|
||||||
|
# these tests are flaky with jupyter_core 5.5.0
|
||||||
|
make_check_args="
|
||||||
|
--deselect=tests/services/kernels/test_api.py::test_connection[jp_server_config0]
|
||||||
|
--deselect=tests/services/sessions/test_api.py::test_restart_kernel[jp_server_config0]
|
||||||
|
"
|
||||||
hostmakedepends="hatchling hatch-jupyter-builder"
|
hostmakedepends="hatchling hatch-jupyter-builder"
|
||||||
depends="python3-anyio python3-argon2 python3-jupyter_client
|
depends="python3-anyio python3-argon2 python3-jupyter_client
|
||||||
python3-jupyter_events python3-jupyter_nbconvert
|
python3-jupyter_events python3-jupyter_nbconvert
|
||||||
|
@ -18,11 +23,11 @@ license="BSD-3-Clause"
|
||||||
homepage="https://github.com/jupyter-server/jupyter_server"
|
homepage="https://github.com/jupyter-server/jupyter_server"
|
||||||
changelog="https://raw.githubusercontent.com/jupyter-server/jupyter_server/main/CHANGELOG.md"
|
changelog="https://raw.githubusercontent.com/jupyter-server/jupyter_server/main/CHANGELOG.md"
|
||||||
distfiles="${PYPI_SITE}/j/jupyter-server/jupyter_server-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/j/jupyter-server/jupyter_server-${version}.tar.gz"
|
||||||
checksum=d4916c8581c4ebbc534cebdaa8eca2478d9f3bfdd88eae29fcab0120eac57649
|
checksum=9ba71be4b9c16e479e4c50c929f8ac4b1015baf90237a08681397a98c76c7e5e
|
||||||
|
|
||||||
if [ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ]; then
|
if [ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ]; then
|
||||||
# these tests fail on CI (connect to a tcp address)
|
# these tests fail on CI (connect to a tcp address)
|
||||||
make_check_args="
|
make_check_args+="
|
||||||
--deselect=tests/extension/test_launch.py::test_launch_instance
|
--deselect=tests/extension/test_launch.py::test_launch_instance
|
||||||
--deselect=tests/extension/test_launch.py::test_base_url
|
--deselect=tests/extension/test_launch.py::test_base_url
|
||||||
--deselect=tests/extension/test_launch.py::test_token_file
|
--deselect=tests/extension/test_launch.py::test_token_file
|
||||||
|
|
Loading…
Reference in New Issue