From 9e08478a5c259a435d2bdd97c32ebbed447e05b4f5a7c33d876c74ea82ef9bfb Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Mon, 3 Jan 2022 11:58:10 +0000 Subject: [PATCH] Accepting request 943590 from home:bnavigator:branches:devel:languages:python:jupyter:notraitlets5 - Update to 1.13.1 * nudge both the shell and control channels #636 (@Zsailer) * Persistent session storage #614 (@Zsailer) * Nudge on the control channel instead of the shell #628 (@JohanMabille) * Clean up downstream tests #629 (@blink1073) * Clean up version info handling #620 (@blink1073) * Await _finish_kernel_start #617 (@jtpio) * Update to Python 3.10 in the CI workflows #618 (@jtpio) * Use maintainer-tools base setup action #616 (@blink1073) * Consistent logging method #607 (@mwakaba2) * Use pending kernels #593 (@blink1073) * Set xsrf cookie on base url #612 (@minrk) * Update jpserver_extensions trait to work with traitlets 5.x #610 (@Zsailer) * Fix allow_origin_pat property to properly parse regex #603 (@havok2063) * Enforce labels on PRs #613 (@blink1073) * Normalize file name and path in test_api #608 (@toonn) - Multibuild :test flavor, avoid possible buildcycles - Fix libalternatives in test flavor OBS-URL: https://build.opensuse.org/request/show/943590 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-server?expand=0&rev=41 --- _multibuild | 3 ++ jupyter_server-1.11.2.tar.gz | 3 -- jupyter_server-1.13.1.tar.gz | 3 ++ python-jupyter-server.changes | 29 +++++++++++++++++ python-jupyter-server.spec | 61 +++++++++++++++++++---------------- 5 files changed, 68 insertions(+), 31 deletions(-) create mode 100644 _multibuild delete mode 100644 jupyter_server-1.11.2.tar.gz create mode 100644 jupyter_server-1.13.1.tar.gz diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..ec2fdbb --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + \ No newline at end of file diff --git a/jupyter_server-1.11.2.tar.gz b/jupyter_server-1.11.2.tar.gz deleted file mode 100644 index e976a7f..0000000 --- a/jupyter_server-1.11.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c1f32e0c1807ab2de37bf70af97a36b4436db0bc8af3124632b1f4441038bf95 -size 420795 diff --git a/jupyter_server-1.13.1.tar.gz b/jupyter_server-1.13.1.tar.gz new file mode 100644 index 0000000..aeb077a --- /dev/null +++ b/jupyter_server-1.13.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d70ebf8e789a7d0a5cd1588e078ccbbdca388dc2c74a6cd62b9ebb80609344f +size 423717 diff --git a/python-jupyter-server.changes b/python-jupyter-server.changes index 31fac0a..67f5dc8 100644 --- a/python-jupyter-server.changes +++ b/python-jupyter-server.changes @@ -1,3 +1,32 @@ +------------------------------------------------------------------- +Fri Dec 31 15:55:54 UTC 2021 - Ben Greiner + +- Update to 1.13.1 + * nudge both the shell and control channels #636 (@Zsailer) + * Persistent session storage #614 (@Zsailer) + * Nudge on the control channel instead of the shell #628 + (@JohanMabille) + * Clean up downstream tests #629 (@blink1073) + * Clean up version info handling #620 (@blink1073) + * Await _finish_kernel_start #617 (@jtpio) + * Update to Python 3.10 in the CI workflows #618 (@jtpio) + * Use maintainer-tools base setup action #616 (@blink1073) + * Consistent logging method #607 (@mwakaba2) + * Use pending kernels #593 (@blink1073) + * Set xsrf cookie on base url #612 (@minrk) + * Update jpserver_extensions trait to work with traitlets 5.x + #610 (@Zsailer) + * Fix allow_origin_pat property to properly parse regex #603 + (@havok2063) + * Enforce labels on PRs #613 (@blink1073) + * Normalize file name and path in test_api #608 (@toonn) + +------------------------------------------------------------------- +Mon Nov 15 18:42:07 UTC 2021 - Ben Greiner + +- Multibuild :test flavor, avoid possible buildcycles +- Fix libalternatives in test flavor + ------------------------------------------------------------------- Fri Nov 12 21:41:00 UTC 2021 - Ben Greiner diff --git a/python-jupyter-server.spec b/python-jupyter-server.spec index dc9afbf..f0de2a3 100644 --- a/python-jupyter-server.spec +++ b/python-jupyter-server.spec @@ -1,5 +1,5 @@ # -# spec file for package python-jupyter-server +# spec file # # Copyright (c) 2021 SUSE LLC # @@ -17,6 +17,15 @@ # +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif + %if 0%{?suse_version} > 1500 %bcond_without libalternatives %else @@ -25,8 +34,8 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 -Name: python-jupyter-server -Version: 1.11.2 +Name: python-jupyter-server%{psuffix} +Version: 1.13.1 Release: 0 Summary: The backend to Jupyter web applications License: BSD-3-Clause @@ -34,23 +43,9 @@ Group: Development/Languages/Python URL: https://github.com/jupyter-server/jupyter_server # need the release tarball for the static stylesheets Source: https://github.com/jupyter-server/jupyter_server/releases/download/v%{version}/jupyter_server-%{version}.tar.gz -BuildRequires: %{python_module Jinja2} -BuildRequires: %{python_module Send2Trash} -BuildRequires: %{python_module anyio >= 3.1.0} -BuildRequires: %{python_module argon2-cffi} -BuildRequires: %{python_module ipython_genutils} -BuildRequires: %{python_module jupyter-client >= 6.1.1} -BuildRequires: %{python_module jupyter-core >= 4.4.0} BuildRequires: %{python_module jupyter_packaging} -BuildRequires: %{python_module nbconvert} -BuildRequires: %{python_module nbformat} -BuildRequires: %{python_module prometheus_client} -BuildRequires: %{python_module pyzmq >= 17} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module terminado >= 0.8.3} -BuildRequires: %{python_module tornado >= 6.1} -BuildRequires: %{python_module traitlets >= 4.2.1} -BuildRequires: %{python_module websocket-client} + # We need the full stdlib BuildRequires: %{pythons} BuildRequires: fdupes @@ -79,14 +74,9 @@ Requires(postun):update-alternatives %endif Provides: python-jupyter_server = %{version}-%{release} Obsoletes: python-jupyter_server < %{version}-%{release} -# SECTION extras_require test -BuildRequires: %{python_module ipykernel} -BuildRequires: %{python_module pytest >= 6} -BuildRequires: %{python_module pytest-console-scripts} -BuildRequires: %{python_module pytest-mock} -BuildRequires: %{python_module pytest-tornasync} -BuildRequires: %{python_module requests} -# /SECTION +%if %{with test} +BuildRequires: %{python_module jupyter-server-test = %{version}} +%endif %if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" Provides: jupyter-jupyter-server = %{version}-%{release} Obsoletes: jupyter-jupyter-server < %{version}-%{release} @@ -117,6 +107,7 @@ Metapackage for the jupyter_server[test] requirement specifier %prep %setup -q -n jupyter_server-%{version} +%if ! %{with test} %build %python_build @@ -124,11 +115,22 @@ Metapackage for the jupyter_server[test] requirement specifier %python_install %python_clone -a %{buildroot}%{_bindir}/jupyter-server %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif +%if %{with test} %check %{python_expand # provide u-a entrypoints in the correct flavor version -- installed packages and jupyter-server -mkdir build/testbin -for bin in %{_bindir}/*-%{$python_bin_suffix} %{buildroot}%{_bindir}/*-%{$python_bin_suffix} ; do +mkdir -p build/xdgflavorconfig +export XDG_CONFIG_HOME=$PWD/build/xdgflavorconfig +if [ -d /usr/share/libalternatives/ ]; then + for b in /usr/share/libalternatives/*; do + if [ -e "${b}/%{$python_version_nodots}.conf" ]; then + alts -n $(basename ${b}) -p %{$python_version_nodots} + fi + done +fi +mkdir -p build/testbin +for bin in %{_bindir}/*-%{$python_bin_suffix}; do # four percent into 1 by rpm/python expansions ln -s ${bin} build/testbin/$(basename ${bin%%%%-%{$python_bin_suffix}}) done @@ -140,7 +142,9 @@ if [ -e ~/.local/share/jupyter ]; then echo "You might need to delete ~/.local/share/jupyter in order to avoid test failures." fi %pytest jupyter_server +%endif +%if ! %{with test} %pre # If libalternatives is used: Removing old update-alternatives entries. %python_libalternatives_reset_alternative jupyter-server @@ -160,5 +164,6 @@ fi %files %{python_files test} %license COPYING.md +%endif %changelog