diff --git a/0001-modify-the-version-limit-for-jupyter-core.patch b/0001-modify-the-version-limit-for-jupyter-core.patch new file mode 100644 index 0000000000000000000000000000000000000000..ad40f10395b0d6183c510b540d5286c22511e06e --- /dev/null +++ b/0001-modify-the-version-limit-for-jupyter-core.patch @@ -0,0 +1,25 @@ +From 2c5bc931c15ce5c68cce4b390eae8c58b1cb3096 Mon Sep 17 00:00:00 2001 +From: desert-sailor +Date: Wed, 13 Sep 2023 16:39:56 +0800 +Subject: [PATCH] modify the version limit for jupyter_core + +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 139e60e..342afb1 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -31,7 +31,7 @@ dependencies = [ + "argon2-cffi", + "jinja2", + "jupyter_client>=7.4.4", +- "jupyter_core>=4.12,!=5.0.*", ++ "jupyter_core>=5.3.0", + "jupyter_server_terminals", + "nbconvert>=6.4.4", + "nbformat>=5.3.0", +-- +2.33.0 + diff --git a/jupyter_server-2.7.0.tar.gz b/jupyter_server-2.7.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f46df63bbba4f8e4f612c1552fff10d24a84ea72 Binary files /dev/null and b/jupyter_server-2.7.0.tar.gz differ diff --git a/python-jupyter-server.spec b/python-jupyter-server.spec new file mode 100644 index 0000000000000000000000000000000000000000..70a761ea04b5a8722b175f37b782a5dfa512ccab --- /dev/null +++ b/python-jupyter-server.spec @@ -0,0 +1,50 @@ +Name: python-jupyter-server +Version: 2.7.0 +Release: 1 +Summary: The backend for Jupyter web applications + +License: BSD-3-Clause +URL: https://pypi.org/project/jupyter-server/#files +Source0: %{url}/archive/%{version}/jupyter_server-%{version}.tar.gz +Patch1: 0001-modify-the-version-limit-for-jupyter-core.patch +BuildArch: noarch + +%global _description %{expand: +The Jupyter Server provides the backend (i.e. the core services, +APIs, and REST endpoints) for Jupyter web applications like +Jupyter notebook, JupyterLab, and Voila.} + +%description %_description + +%package -n python3-jupyter-server + +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-hatch-jupyter-builder + +%description -n python3-jupyter-server %_description + +%prep +%autosetup -p1 -n jupyter_server-%{version} + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-jupyter-server +%license LICENSE +%doc README.md +%{_bindir}/jupyter-server +%{python3_sitelib}/jupyter_server-*.dist-info/ +%{python3_sitelib}/jupyter_server/ + +%changelog +* Mon Jul 31 2023 mengzhaoa - 2.7.0-1 +- Init package python3-jupyter-server of version 2.7.0