%global srcname jupyter-kernel-test %global srcname_ jupyter_kernel_test %global pypi_name jupyter_kernel_test Name: python-%{srcname} Version: 0.3 Release: 9%{?dist} Summary: Machinery for testing Jupyter kernels via the messaging protocol License: BSD URL: https://pypi.python.org/pypi/%{srcname} Source0: https://github.com/jupyter/%{srcname_}/archive/%{version}/%{srcname}-%{version}.tar.gz # https://github.com/jupyter/jupyter_kernel_test/issues/42 Patch0: https://github.com/jupyter/jupyter_kernel_test/commit/0b78c2835fad5df3be182ddd5013a73a63c4f81e.patch BuildArch: noarch # No support for Python 2. BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-flit BuildRequires: python3-traitlets BuildRequires: python3-jupyter-client BuildRequires: python3-nose BuildRequires: pyproject-macros BuildRequires: python3-ipykernel %description jupyter_kernel_test is a tool for testing Jupyter kernels. It tests kernels for successful code execution and conformance with the Jupyter Messaging Protocol (currently 5.0). %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} Requires: python3-traitlets Requires: python3-jupyter-client Requires: python3-nose %description -n python3-%{srcname} jupyter_kernel_test is a tool for testing Jupyter kernels. It tests kernels for successful code execution and conformance with the Jupyter Messaging Protocol (currently 5.0). %prep %autosetup -n %{srcname_}-%{version} -p1 %build %{__python3} -m flit.tomlify rm flit.ini %{pyproject_wheel} %install %{pyproject_install} %check PYTHONPATH="%{buildroot}%{python3_sitelib}" \ %{__python3} test_ipykernel.py # Note that there is no %%files section for the unversioned python module if we # are building for several python runtimes %files -n python3-%{srcname} %license COPYING.md %doc README.rst %{python3_sitelib}/%{srcname_} %{python3_sitelib}/%{srcname_}-%{version}.dist-info %changelog * Sat Feb 02 2019 Fedora Release Engineering - 0.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro HronĨok - 0.3-7 - Rebuilt for Python 3.7 * Thu Apr 19 2018 Elliott Sales de Andrade - 0.3-6 - Fix build against latest flit. * Fri Feb 09 2018 Fedora Release Engineering - 0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Oct 30 2017 Elliott Sales de Andrade - 0.3-4 - Fix license tag. * Sun Oct 29 2017 Elliott Sales de Andrade - 0.3-3 - Use new method of skipping flit network usage. - Simplify spec against latest template. * Mon Jul 24 2017 Elliott Sales de Andrade - 0.3-2 - Use new py3_install_wheel macro. * Mon Jul 24 2017 Elliott Sales de Andrade - 0.3-1 - Update to latest version. * Sun Mar 12 2017 Elliott Sales de Andrade - 0.2.2-1 - Initial package release.