|
|
caf52b7 |
%global modname ipykernel
|
|
|
9a62d00 |
|
|
|
caf52b7 |
Name: python-%{modname}
|
|
|
1824734 |
Version: 5.1.1
|
|
|
f4635c9 |
Release: 1%{?dist}
|
|
|
caf52b7 |
Summary: IPython Kernel for Jupyter
|
|
|
caf52b7 |
License: BSD
|
|
|
caf52b7 |
URL: https://github.com/ipython/%{modname}
|
|
|
1824734 |
Source0: https://github.com/ipython/%{modname}/archive/v%{version}/%{modname}-%{version}.tar.gz
|
|
|
2a79975 |
|
|
|
2a79975 |
# Python 3.8: PEP 570 -- Python Positional-Only Parameters
|
|
|
2a79975 |
Patch1: https://github.com/ipython/ipykernel/pull/408.patch
|
|
|
2a79975 |
|
|
|
caf52b7 |
BuildArch: noarch
|
|
|
42bbadc |
|
|
|
f4635c9 |
BuildRequires: python3-sphinx
|
|
|
42bbadc |
BuildRequires: python3-sphinxcontrib-github-alt
|
|
|
9a62d00 |
|
|
|
9a62d00 |
%global _description \
|
|
|
9a62d00 |
This package provides the IPython kernel for Jupyter.
|
|
|
9a62d00 |
|
|
|
caf52b7 |
%description %{_description}
|
|
|
9a62d00 |
|
|
|
caf52b7 |
%package -n python%{python3_pkgversion}-%{modname}
|
|
|
caf52b7 |
Summary: %{summary}
|
|
Orion Poplawski |
ed59191 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
|
|
caf52b7 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
5c6f6d6 |
BuildRequires: python%{python3_pkgversion}-ipython >= 4
|
|
|
5c6f6d6 |
BuildRequires: python%{python3_pkgversion}-jupyter-client
|
|
|
5c6f6d6 |
BuildRequires: python%{python3_pkgversion}-traitlets >= 4.1.0
|
|
|
5c6f6d6 |
BuildRequires: python%{python3_pkgversion}-tornado >= 4.0
|
|
|
8ae908f |
BuildRequires: python%{python3_pkgversion}-nose
|
|
|
8ae908f |
BuildRequires: python%{python3_pkgversion}-nose_warnings_filters
|
|
|
f4635c9 |
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
8ae908f |
BuildRequires: python%{python3_pkgversion}-numpy
|
|
|
5c6f6d6 |
Requires: python%{python3_pkgversion}-ipython >= 4
|
|
Orion Poplawski |
ed59191 |
Requires: python%{python3_pkgversion}-jupyter-client
|
|
Orion Poplawski |
ed59191 |
Requires: python%{python3_pkgversion}-traitlets >= 4.1.0
|
|
Orion Poplawski |
ed59191 |
Requires: python%{python3_pkgversion}-tornado >= 4.0
|
|
|
e7ee77b |
Requires: python-jupyter-filesystem
|
|
|
9a62d00 |
|
|
|
8ae908f |
Recommends: python%{python3_pkgversion}-matplotlib
|
|
|
8ae908f |
Recommends: python%{python3_pkgversion}-numpy
|
|
|
8ae908f |
Recommends: python%{python3_pkgversion}-pandas
|
|
|
8ae908f |
Recommends: python%{python3_pkgversion}-scipy
|
|
|
8ae908f |
Recommends: python%{python3_pkgversion}-pillow
|
|
|
8ae908f |
|
|
|
caf52b7 |
%description -n python%{python3_pkgversion}-%{modname} %{_description}
|
|
|
9a62d00 |
|
|
|
9a62d00 |
Python 3 version.
|
|
|
9a62d00 |
|
|
|
caf52b7 |
%package doc
|
|
|
caf52b7 |
Summary: Documentation for %{name}
|
|
|
9a62d00 |
|
|
|
caf52b7 |
%description doc
|
|
|
9a62d00 |
This package contains the documentation of %{name}.
|
|
|
9a62d00 |
|
|
|
9a62d00 |
%prep
|
|
|
2a79975 |
%autosetup -p1 -n %{modname}-%{version}
|
|
|
9a62d00 |
|
|
|
9a62d00 |
%build
|
|
|
9a62d00 |
%py3_build
|
|
|
9a62d00 |
|
|
|
9a62d00 |
pushd docs
|
|
|
42bbadc |
make %{?_smp_mflags} html SPHINXBUILD=sphinx-build-3
|
|
|
9a62d00 |
popd
|
|
|
9a62d00 |
|
|
|
9a62d00 |
%install
|
|
|
9a62d00 |
%py3_install
|
|
|
9a62d00 |
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
9a62d00 |
cp -fpavr docs/_build/html %{buildroot}%{_docdir}/%{name}
|
|
|
9a62d00 |
rm %{buildroot}%{_docdir}/%{name}/html/{.buildinfo,objects.inv}
|
|
|
9a62d00 |
|
|
|
f4635c9 |
# Install the kernel so it can be found
|
|
|
5c6f6d6 |
# See https://bugzilla.redhat.com/show_bug.cgi?id=1327979#c19
|
|
|
5c6f6d6 |
%{__python3} -m ipykernel install --prefix %{buildroot}%{_prefix}
|
|
|
5c6f6d6 |
ls %{buildroot}%{_datadir}/jupyter/kernels/python3/
|
|
|
5c6f6d6 |
cat %{buildroot}%{_datadir}/jupyter/kernels/python3/kernel.json
|
|
|
5c6f6d6 |
|
|
|
42bbadc |
|
|
|
8ae908f |
%check
|
|
|
f4635c9 |
# https://github.com/ipython/ipykernel/issues/387#issuecomment-463657918
|
|
|
f4635c9 |
%{__python3} -m pytest ipykernel -k "not test_sys_path and not test_sys_path_profile_dir and not test_complete"
|
|
|
5c6f6d6 |
|
|
|
9a62d00 |
|
|
|
caf52b7 |
%files -n python%{python3_pkgversion}-%{modname}
|
|
|
9a62d00 |
%license COPYING.md
|
|
|
9a62d00 |
%doc CONTRIBUTING.md MANIFEST.in README.md
|
|
|
8ae908f |
%{python3_sitelib}/%{modname}*
|
|
|
9a62d00 |
%{python3_sitelib}/%{modname}*.egg-info
|
|
|
8ae908f |
%{python3_sitelib}/__pycache__/%{modname}*
|
|
|
5c6f6d6 |
%{_datadir}/jupyter/kernels/python3
|
|
|
5c6f6d6 |
|
|
|
caf52b7 |
%files doc
|
|
|
9a62d00 |
%doc %{_docdir}/%{name}/html
|
|
|
9a62d00 |
|
|
|
f4635c9 |
|
|
|
9a62d00 |
%changelog
|
|
|
1824734 |
* Mon May 27 2019 Miro Hrončok <mhroncok@redhat.com> - 5.1.1-1
|
|
|
1824734 |
- Update to 5.1.1 (#1710745)
|
|
|
1824734 |
|
|
|
f4635c9 |
* Tue Feb 12 2019 Miro Hrončok <mhroncok@redhat.com> - 4.10.0-1
|
|
|
f4635c9 |
- Update to 5.1.0, drop Python 2 package
|
|
|
f4635c9 |
|
|
|
ec14835 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.2-5
|
|
|
ec14835 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
ec14835 |
|
|
|
186f098 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.2-4
|
|
|
186f098 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
186f098 |
|
|
|
e7ee77b |
* Fri Jul 13 2018 Miro Hrončok <mhroncok@redhat.com> - 4.8.2-3
|
|
|
e7ee77b |
- Don't own /usr/share/jupyter/ and /usr/share/jupyter/kernels/,
|
|
|
e7ee77b |
require python-jupyter-filesystem instead (#1589420)
|
|
|
e7ee77b |
|
|
|
8ffcb75 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.8.2-2
|
|
|
8ffcb75 |
- Rebuilt for Python 3.7
|
|
|
8ffcb75 |
|
|
|
42bbadc |
* Wed May 23 2018 Miro Hrončok <mhroncok@redhat.com> - 4.8.2-1
|
|
|
42bbadc |
- Update to 4.8.2 (#1438785)
|
|
|
42bbadc |
- Use Python 3 Sphinx to build the docs
|
|
|
42bbadc |
|
|
|
6dd863a |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-4
|
|
|
6dd863a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
6dd863a |
|
|
|
937c6b6 |
* Fri Dec 08 2017 Iryna Shcherbina <ishcherb@redhat.com> - 4.6.0-3
|
|
|
937c6b6 |
- Fix ambiguous Python 2 dependency declarations
|
|
|
937c6b6 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
937c6b6 |
|
|
|
e1be7e9 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-2
|
|
|
e1be7e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
e1be7e9 |
|
|
|
8ae908f |
* Sun Apr 09 2017 Miro Hrončok <mhroncok@redhat.com> - 4.6.0-1
|
|
|
8ae908f |
- Update to 4.6.0
|
|
|
8ae908f |
- Recommend some useful packages
|
|
|
8ae908f |
- Run the testsuite
|
|
|
8ae908f |
|
|
|
5c6f6d6 |
* Wed Mar 15 2017 Miro Hrončok <mhroncok@redhat.com> - 4.5.2-6
|
|
|
5c6f6d6 |
- Package the kernel json files
|
|
|
5c6f6d6 |
|
|
Orion Poplawski |
ed59191 |
* Wed Mar 8 2017 Orion Poplawski <orion@cora.nwra.com> - 4.5.2-5
|
|
Orion Poplawski |
ed59191 |
- Add missing requires (bug #1430480)
|
|
Orion Poplawski |
ed59191 |
|
|
|
ffc5924 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.2-4
|
|
|
ffc5924 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
ffc5924 |
|
|
|
9a62d00 |
* Tue Dec 27 2016 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 4.5.2-3
|
|
|
9a62d00 |
- Preseve timestamp of installed files (#1406958#c7)
|
|
|
9a62d00 |
|
|
|
9a62d00 |
* Mon Dec 26 2016 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 4.5.2-2
|
|
|
9a62d00 |
- Use proper Source0 format (#1406958#c4)
|
|
|
9a62d00 |
- Do parallel html make (#1406958#c4)
|
|
|
9a62d00 |
|
|
|
9a62d00 |
* Thu Dec 22 2016 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 4.5.2-1
|
|
|
9a62d00 |
- Update to latest upstream release.
|
|
|
9a62d00 |
- Correct removal of unnecessary doc files.
|
|
|
9a62d00 |
|
|
|
9a62d00 |
* Wed Nov 16 2016 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 4.5.1-1
|
|
|
9a62d00 |
- Initial package.
|