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
This commit is contained in:
Benjamin Greiner 2022-01-03 11:58:10 +00:00 committed by Git OBS Bridge
parent b100f228b4
commit 9e08478a5c
5 changed files with 68 additions and 31 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c1f32e0c1807ab2de37bf70af97a36b4436db0bc8af3124632b1f4441038bf95
size 420795

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6d70ebf8e789a7d0a5cd1588e078ccbbdca388dc2c74a6cd62b9ebb80609344f
size 423717

View File

@ -1,3 +1,32 @@
-------------------------------------------------------------------
Fri Dec 31 15:55:54 UTC 2021 - Ben Greiner <code@bnavigator.de>
- 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 <code@bnavigator.de>
- Multibuild :test flavor, avoid possible buildcycles
- Fix libalternatives in test flavor
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Nov 12 21:41:00 UTC 2021 - Ben Greiner <code@bnavigator.de> Fri Nov 12 21:41:00 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@ -1,5 +1,5 @@
# #
# spec file for package python-jupyter-server # spec file
# #
# Copyright (c) 2021 SUSE LLC # 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 %if 0%{?suse_version} > 1500
%bcond_without libalternatives %bcond_without libalternatives
%else %else
@ -25,8 +34,8 @@
%{?!python_module:%define python_module() python3-%{**}} %{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1 %define skip_python2 1
Name: python-jupyter-server Name: python-jupyter-server%{psuffix}
Version: 1.11.2 Version: 1.13.1
Release: 0 Release: 0
Summary: The backend to Jupyter web applications Summary: The backend to Jupyter web applications
License: BSD-3-Clause License: BSD-3-Clause
@ -34,23 +43,9 @@ Group: Development/Languages/Python
URL: https://github.com/jupyter-server/jupyter_server URL: https://github.com/jupyter-server/jupyter_server
# need the release tarball for the static stylesheets # 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 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 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 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 # We need the full stdlib
BuildRequires: %{pythons} BuildRequires: %{pythons}
BuildRequires: fdupes BuildRequires: fdupes
@ -79,14 +74,9 @@ Requires(postun):update-alternatives
%endif %endif
Provides: python-jupyter_server = %{version}-%{release} Provides: python-jupyter_server = %{version}-%{release}
Obsoletes: python-jupyter_server < %{version}-%{release} Obsoletes: python-jupyter_server < %{version}-%{release}
# SECTION extras_require test %if %{with test}
BuildRequires: %{python_module ipykernel} BuildRequires: %{python_module jupyter-server-test = %{version}}
BuildRequires: %{python_module pytest >= 6} %endif
BuildRequires: %{python_module pytest-console-scripts}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-tornasync}
BuildRequires: %{python_module requests}
# /SECTION
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" %if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
Provides: jupyter-jupyter-server = %{version}-%{release} Provides: jupyter-jupyter-server = %{version}-%{release}
Obsoletes: jupyter-jupyter-server < %{version}-%{release} Obsoletes: jupyter-jupyter-server < %{version}-%{release}
@ -117,6 +107,7 @@ Metapackage for the jupyter_server[test] requirement specifier
%prep %prep
%setup -q -n jupyter_server-%{version} %setup -q -n jupyter_server-%{version}
%if ! %{with test}
%build %build
%python_build %python_build
@ -124,11 +115,22 @@ Metapackage for the jupyter_server[test] requirement specifier
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/jupyter-server %python_clone -a %{buildroot}%{_bindir}/jupyter-server
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check %check
%{python_expand # provide u-a entrypoints in the correct flavor version -- installed packages and jupyter-server %{python_expand # provide u-a entrypoints in the correct flavor version -- installed packages and jupyter-server
mkdir build/testbin mkdir -p build/xdgflavorconfig
for bin in %{_bindir}/*-%{$python_bin_suffix} %{buildroot}%{_bindir}/*-%{$python_bin_suffix} ; do 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 # four percent into 1 by rpm/python expansions
ln -s ${bin} build/testbin/$(basename ${bin%%%%-%{$python_bin_suffix}}) ln -s ${bin} build/testbin/$(basename ${bin%%%%-%{$python_bin_suffix}})
done 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." echo "You might need to delete ~/.local/share/jupyter in order to avoid test failures."
fi fi
%pytest jupyter_server %pytest jupyter_server
%endif
%if ! %{with test}
%pre %pre
# If libalternatives is used: Removing old update-alternatives entries. # If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative jupyter-server %python_libalternatives_reset_alternative jupyter-server
@ -160,5 +164,6 @@ fi
%files %{python_files test} %files %{python_files test}
%license COPYING.md %license COPYING.md
%endif
%changelog %changelog