13fe38f
%global pypi_name spyder-kernels
13fe38f
13fe38f
Name:           python-%{pypi_name}
ebd2b46
Version:        2.3.3
e821b9d
Release:        %autorelease
c4b3334
Epoch:          1
13fe38f
Summary:        Jupyter kernels for the Spyder console
13fe38f
13fe38f
License:        MIT
13fe38f
URL:            https://github.com/spyder-ide/spyder-kernels
bc705e6
Source0:        %pypi_source
13fe38f
BuildArch:      noarch
13fe38f
13fe38f
BuildRequires:  python3-devel
13fe38f
BuildRequires:  python3dist(cloudpickle)
13fe38f
BuildRequires:  python3dist(ipykernel)
13fe38f
BuildRequires:  python3dist(setuptools)
8178bb8
BuildRequires:  python3dist(wurlitzer)
13fe38f
13fe38f
# for tests
13fe38f
# python3
bc705e6
BuildRequires:  python3dist(cython)
bc705e6
BuildRequires:  python3dist(flaky)
bc705e6
BuildRequires:  python3dist(jupyter-client)
bc705e6
BuildRequires:  python3dist(matplotlib)
bc705e6
BuildRequires:  python3dist(mock)
bc705e6
BuildRequires:  python3dist(numpy)
13fe38f
BuildRequires:  python3dist(pandas)
13fe38f
BuildRequires:  python3dist(pytest)
bc705e6
BuildRequires:  python3dist(pytest-cov)
bc705e6
BuildRequires:  python3dist(pyzmq)
bc705e6
BuildRequires:  python3dist(scipy)
bc705e6
BuildRequires:  python3dist(xarray)
13fe38f
13fe38f
%description
13fe38f
This package provides jupyter kernels used by spyder on its IPython console.
13fe38f
13fe38f
%package -n     python3-%{pypi_name}
13fe38f
Summary:        %{summary}
13fe38f
%{?python_provide:%python_provide python3-%{pypi_name}}
13fe38f
13fe38f
Requires:       python3dist(cloudpickle)
13fe38f
Requires:       python3dist(ipykernel)
bc705e6
Requires:       python3dist(jupyter-client)
bc705e6
Requires:       python3dist(pyzmq)
8178bb8
Requires:       python3dist(wurlitzer)
13fe38f
13fe38f
%description -n python3-%{pypi_name}
13fe38f
This package provides python3 version of jupyter kernels used by spyder on its
13fe38f
 IPython console.
13fe38f
13fe38f
13fe38f
%prep
13fe38f
%autosetup -n %{pypi_name}-%{version}
c6e22bc
e821b9d
# spyder-kernel 2.2.1 - relax ipython version
e6bc4df
sed -i '\@ipython@s|>=7.31.1,<8|>=7.31.1|' setup.py
c6e22bc
b60741e
# relax ipykernel dependency for now (bug 2070644)
b60741e
sed -i '\@ipykernel@s|6.9.2|6.6.1|' setup.py
e821b9d
c6e22bc
# relax jupyter-client version
19b34f8
sed -i '\@jupyter-client@s|>=7.3.4,<8|>7|' setup.py
c6e22bc
c6e22bc
rm -rfv spyder_kernels.egg-info
13fe38f
13fe38f
%build
13fe38f
%py3_build
13fe38f
13fe38f
%install
13fe38f
%py3_install
13fe38f
13fe38f
%check
bc705e6
# tests not present in pypi source
bc705e6
#export PYTHONPATH={buildroot}{python3_sitelib} pytest-3
13fe38f
13fe38f
%files -n python3-%{pypi_name}
8178bb8
%license LICENSE.txt
13fe38f
%doc README.md
13fe38f
%{python3_sitelib}/spyder_kernels
508f7b4
%{python3_sitelib}/spyder_kernels-%{version}-py%{python3_version}.egg-info
13fe38f
13fe38f
%changelog
e821b9d
%autochangelog