python3-jupyter_server: update to 2.12.5.
This commit is contained in:
parent
341fd7d1d1
commit
a7407c9db6
@ -1,38 +0,0 @@
|
||||
commit 2dfc67655dd589948250c49c093bd25c4f08f77c
|
||||
Author: Gonzalo Tornaría <tornaria@cmat.edu.uy>
|
||||
Date: Thu May 25 22:28:37 2023 -0300
|
||||
|
||||
Fix test param for pytest-xdist
|
||||
|
||||
diff --git a/tests/test_gateway.py b/tests/test_gateway.py
|
||||
index fec747afe..8f7f8a463 100644
|
||||
--- a/tests/test_gateway.py
|
||||
+++ b/tests/test_gateway.py
|
||||
@@ -362,15 +362,12 @@ def test_gateway_request_timeout_pad_option(
|
||||
GatewayClient.clear_instance()
|
||||
|
||||
|
||||
-cookie_expire_time = format_datetime(datetime.now(tz=timezone.utc) + timedelta(seconds=180))
|
||||
-
|
||||
-
|
||||
@pytest.mark.parametrize(
|
||||
"accept_cookies,expire_arg,expire_param,existing_cookies,cookie_exists",
|
||||
[
|
||||
(False, None, None, "EXISTING=1", False),
|
||||
(True, None, None, "EXISTING=1", True),
|
||||
- (True, "Expires", cookie_expire_time, None, True),
|
||||
+ (True, "Expires", 180, None, True),
|
||||
(True, "Max-Age", "-360", "EXISTING=1", False),
|
||||
],
|
||||
)
|
||||
@@ -389,6 +386,10 @@ def test_gateway_request_with_expiring_cookies(
|
||||
|
||||
cookie: SimpleCookie = SimpleCookie()
|
||||
cookie.load("SERVERID=1234567; Path=/")
|
||||
+ if expire_arg == "Expires":
|
||||
+ expire_param = format_datetime(
|
||||
+ datetime.now(tz=timezone.utc) +
|
||||
+ timedelta(seconds=expire_param))
|
||||
if expire_arg:
|
||||
cookie["SERVERID"][expire_arg] = expire_param
|
||||
|
@ -1,13 +1,8 @@
|
||||
# Template file for 'python3-jupyter_server'
|
||||
pkgname=python3-jupyter_server
|
||||
version=2.11.0
|
||||
version=2.12.5
|
||||
revision=1
|
||||
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"
|
||||
depends="python3-anyio python3-argon2 python3-jupyter_client
|
||||
python3-jupyter_events python3-jupyter_nbconvert
|
||||
@ -18,12 +13,12 @@ checkdepends="$depends pandoc python3-ipython_ipykernel
|
||||
python3-pytest-console-scripts python3-pytest-jupyter
|
||||
python3-pytest-xdist python3-requests python3-flaky"
|
||||
short_desc="Backend to Jupyter web applications"
|
||||
maintainer="dkwo <nicolopiazzalunga@gmail.com>"
|
||||
maintainer="dkwo <npiazza@disroot.org>, Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="https://github.com/jupyter-server/jupyter_server"
|
||||
changelog="https://raw.githubusercontent.com/jupyter-server/jupyter_server/main/CHANGELOG.md"
|
||||
distfiles="${PYPI_SITE}/j/jupyter-server/jupyter_server-${version}.tar.gz"
|
||||
checksum=78c97ec8049f9062f0151725bc8a1364dfed716646a66819095e0e8a24793eba
|
||||
checksum=0edb626c94baa22809be1323f9770cf1c00a952b17097592e40d03e6a3951689
|
||||
|
||||
if [ "$XBPS_BUILD_ENVIRONMENT" = void-packages-ci ]; then
|
||||
# these tests fail on CI (connect to a tcp address)
|
||||
|
Loading…
x
Reference in New Issue
Block a user