commit 3d15ecb62bc2fb6a47d0d38e7cee3af2f71e0a8b Author: tigro Date: Sun Jan 5 23:00:13 2025 +0300 import python-notebook-shim-0.2.4-3.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6ff88c7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/notebook_shim-0.2.4.tar.gz diff --git a/.python-notebook-shim.metadata b/.python-notebook-shim.metadata new file mode 100644 index 0000000..66bc8a5 --- /dev/null +++ b/.python-notebook-shim.metadata @@ -0,0 +1 @@ +099ce1ffe049e5805e01d52550031ac0abf3be55 SOURCES/notebook_shim-0.2.4.tar.gz diff --git a/SPECS/python-notebook-shim.spec b/SPECS/python-notebook-shim.spec new file mode 100644 index 0000000..698286c --- /dev/null +++ b/SPECS/python-notebook-shim.spec @@ -0,0 +1,93 @@ +Name: python-notebook-shim +Version: 0.2.4 +Release: 3%{?dist} +Summary: A shim layer for notebook traits and config +License: BSD-3-Clause +URL: https://pypi.org/project/notebook-shim/ +Source: %{pypi_source notebook_shim} + +BuildArch: noarch +BuildRequires: python3-devel +# https://github.com/jupyter/notebook_shim/issues/28 +BuildRequires: python3-pytest-jupyter + +%global _description %{expand: +This project provides a way for JupyterLab and other frontends +to switch to Jupyter Server for their Python Web application backend.} + + +%description %_description + +%package -n python3-notebook-shim +Summary: %{summary} + +Requires: python-jupyter-filesystem + +%description -n python3-notebook-shim %_description + + +%prep +%autosetup -p1 -n notebook_shim-%{version} + +# pytest-tornasync will never be available in Fedora +# and upstream will switch to pytest-jupyter soon +sed -i "/pytest-tornasync/d" pyproject.toml + +%generate_buildrequires +%pyproject_buildrequires -x test + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files notebook_shim + +install -m 0755 -p -d %{buildroot}%{_sysconfdir}/jupyter/jupyter_server_config.d +mv -v %{buildroot}{%{_prefix},}%{_sysconfdir}/jupyter/jupyter_server_config.d/notebook_shim.json + + +%check +%pytest + + +%files -n python3-notebook-shim -f %{pyproject_files} +%doc README.md +%config(noreplace) %{_sysconfdir}/jupyter/jupyter_server_config.d/notebook_shim.json + + +%changelog +* Sun Jan 05 2025 Arkady L. Shane - 0.2.4-3 +- Rebuilt for MSVSphere 10 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.2.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jun 10 2024 Python Maint - 0.2.4-2 +- Rebuilt for Python 3.13 + +* Thu Feb 15 2024 Lumír Balhar - 0.2.4-1 +- Update to 0.2.4 (rhbz#2264315) + +* Fri Jan 26 2024 Fedora Release Engineering - 0.2.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.2.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.2.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jul 04 2023 Python Maint - 0.2.3-2 +- Rebuilt for Python 3.12 + +* Tue Apr 25 2023 Lumír Balhar - 0.2.3-1 +- Update to 0.2.3 (rhbz#2189303) + +* Fri Jan 20 2023 Fedora Release Engineering - 0.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Dec 01 2022 Lumír Balhar - 0.2.2-1 +- Initial package \ No newline at end of file