Blame python-metakernel.spec

15e6c10
Name:		python-metakernel
b7414a2
#		The python and echo subpackages have their own version
15e6c10
#		and release numbers - update below in each package section
c1b96b8
#		Running rpmdev-bumpspec on this specfile will update all the
c1b96b8
#		release tags automatically
c322330
Version:	0.25.0
c322330
Release:	1%{?dist}
15e6c10
%global pkgversion %{version}
15e6c10
%global pkgrelease %{release}
15e6c10
Summary:	Metakernel for Jupyter
15e6c10
15e6c10
License:	BSD
15e6c10
URL:		https://github.com/Calysto/metakernel
c322330
Source0:	https://github.com/Calysto/metakernel/archive/%{version}/%{name}-%{version}.tar.gz
15e6c10
15e6c10
BuildArch:	noarch
0df1469
BuildRequires:	python3-devel
6fbd00f
BuildRequires:	python3-setuptools
0df1469
BuildRequires:	python3-ipykernel
0df1469
BuildRequires:	python3-pexpect >= 4.2
0df1469
#		For testing:
76a4883
BuildRequires:	python3-pytest
76a4883
BuildRequires:	python3-requests
0df1469
BuildRequires:	python3-ipyparallel
15e6c10
BuildRequires:	python3-jedi
15e6c10
BuildRequires:	man
15e6c10
#		For documentation
15e6c10
BuildRequires:	python3-sphinx
15e6c10
BuildRequires:	python3-sphinx-bootstrap-theme
15e6c10
BuildRequires:	python3-numpydoc
cafc984
BuildRequires:	python3-recommonmark
15e6c10
15e6c10
%description
15e6c10
A Jupyter/IPython kernel template which includes core magic functions
15e6c10
(including help, command and file path completion, parallel and
15e6c10
distributed processing, downloads, and much more).
15e6c10
0df1469
%package -n python3-metakernel
0df1469
Summary:	Metakernel for Jupyter
0df1469
%{?python_provide:%python_provide python3-metakernel}
0df1469
Requires:	python3-ipykernel
0df1469
Requires:	python3-pexpect >= 4.2
76a4883
Obsoletes:	python3-metakernel-bash < 0.19.1-24
0df1469
0df1469
%description -n python3-metakernel
0df1469
A Jupyter/IPython kernel template which includes core magic functions
0df1469
(including help, command and file path completion, parallel and
0df1469
distributed processing, downloads, and much more).
15e6c10
15e6c10
%package -n python3-metakernel-tests
15e6c10
Summary:	Tests for python3-metakernel
15e6c10
%{?python_provide:%python_provide python3-metakernel-tests}
15e6c10
Requires:	python3-metakernel = %{version}-%{release}
15e6c10
Requires:	python3-metakernel-python
76a4883
Requires:	python3-pytest
76a4883
Requires:	python3-requests
15e6c10
Requires:	python3-ipyparallel
15e6c10
Requires:	python3-jedi
15e6c10
Requires:	man
15e6c10
15e6c10
%description -n python3-metakernel-tests
15e6c10
This package contains the tests of python3-metakernel.
15e6c10
f17ca36
%package doc
f17ca36
Summary:	Documentation for python-metakernel
15e6c10
f17ca36
%description doc
f17ca36
This package contains the documentation of python-metakernel.
15e6c10
15e6c10
%package -n python3-metakernel-python
15e6c10
Version:	0.19.1
c322330
Release:	33%{?dist}
15e6c10
Summary:	A Python kernel for Jupyter/IPython
15e6c10
%{?python_provide:%python_provide python3-metakernel-python}
15e6c10
Requires:	python3-metakernel = %{pkgversion}-%{pkgrelease}
15e6c10
Requires:	python3-jedi
320e7eb
Requires:	python-jupyter-filesystem
15e6c10
15e6c10
%description -n python3-metakernel-python
15e6c10
A Python kernel for Jupyter/IPython, based on MetaKernel.
15e6c10
15e6c10
%package -n python3-metakernel-echo
15e6c10
Version:	0.19.1
c322330
Release:	33%{?dist}
15e6c10
Summary:	A simple echo kernel for Jupyter/IPython
15e6c10
%{?python_provide:%python_provide python3-metakernel-echo}
15e6c10
Requires:	python3-metakernel = %{pkgversion}-%{pkgrelease}
320e7eb
Requires:	python-jupyter-filesystem
15e6c10
15e6c10
%description -n python3-metakernel-echo
15e6c10
A simple echo kernel for Jupyter/IPython, based on MetaKernel.
15e6c10
15e6c10
%prep
15e6c10
%setup -q -n metakernel-%{pkgversion}
15e6c10
15e6c10
%build
0df1469
%py3_build
0df1469
0df1469
pushd metakernel_python
0df1469
%py3_build
0df1469
popd
0df1469
0df1469
pushd metakernel_echo
0df1469
%py3_build
0df1469
popd
0df1469
15e6c10
pushd docs
15e6c10
PYTHONPATH=.. make html SPHINXBUILD=sphinx-build-3
15e6c10
rm -f _build/html/.buildinfo
15e6c10
popd
15e6c10
15e6c10
%install
0df1469
%py3_install
0df1469
0df1469
pushd metakernel_python
0df1469
%py3_install
0df1469
popd
0df1469
0df1469
pushd metakernel_echo
0df1469
%py3_install
0df1469
popd
0df1469
76a4883
for f in tests/test_expect.py; do
0df1469
  sed '/\/usr\/bin\/env/d' -i %{buildroot}%{python3_sitelib}/metakernel/${f}
0df1469
done
0df1469
0df1469
PYTHONPATH=metakernel_python \
0df1469
  python3 -m metakernel_python install --name python3-metakernel-python \
0df1469
  --prefix %{buildroot}%{_prefix}
0df1469
PYTHONPATH=metakernel_echo \
0df1469
  python3 -m metakernel_echo install --name python3-metakernel-echo \
0df1469
  --prefix %{buildroot}%{_prefix}
1599c0b
15e6c10
%check
b7414a2
PYTHONPATH=metakernel_python ipcluster start -n=3 &
15e6c10
pid=$!
76a4883
pytest-3 -v metakernel
b7414a2
ipcluster stop
15e6c10
wait $pid
15e6c10
15e6c10
%files -n python3-metakernel
15e6c10
%license LICENSE.txt
15e6c10
%doc README.rst
15e6c10
%{python3_sitelib}/metakernel-*.egg-info
15e6c10
%dir %{python3_sitelib}/metakernel
15e6c10
%{python3_sitelib}/metakernel/*.py
15e6c10
%{python3_sitelib}/metakernel/__pycache__
15e6c10
%{python3_sitelib}/metakernel/images
15e6c10
%dir %{python3_sitelib}/metakernel/magics
15e6c10
%{python3_sitelib}/metakernel/magics/*.py
15e6c10
%{python3_sitelib}/metakernel/magics/__pycache__
15e6c10
%{python3_sitelib}/metakernel/utils
15e6c10
15e6c10
%files -n python3-metakernel-tests
15e6c10
%{python3_sitelib}/metakernel/tests
15e6c10
%{python3_sitelib}/metakernel/magics/tests
15e6c10
f17ca36
%files doc
15e6c10
%license LICENSE.txt
15e6c10
%doc docs/_build/html
15e6c10
15e6c10
%files -n python3-metakernel-python
15e6c10
%{python3_sitelib}/metakernel_python-*.egg-info
15e6c10
%{python3_sitelib}/metakernel_python.py
15e6c10
%{python3_sitelib}/__pycache__/metakernel_python.*
320e7eb
%{_datadir}/jupyter/kernels/python3-metakernel-python
15e6c10
15e6c10
%files -n python3-metakernel-echo
15e6c10
%{python3_sitelib}/metakernel_echo-*.egg-info
15e6c10
%{python3_sitelib}/metakernel_echo.py
15e6c10
%{python3_sitelib}/__pycache__/metakernel_echo.*
320e7eb
%{_datadir}/jupyter/kernels/python3-metakernel-echo
15e6c10
15e6c10
%changelog
c322330
* Wed Aug 19 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.25.1-1
c322330
- Update to version 0.25.0
c322330
218857a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.4-3
218857a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
218857a
72e69b9
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.24.4-2
72e69b9
- Rebuilt for Python 3.9
72e69b9
b7414a2
* Thu Apr 16 2020 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.24.4-1
b7414a2
- Update to version 0.24.4
b7414a2
- Remove Python 2 parts from the spec file (Fedora 29 is EOL)
b7414a2
3e1e536
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.3-2
3e1e536
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3e1e536
0632d4b
* Fri Sep 20 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.24.3-1
0632d4b
- Update to version 0.24.3
0632d4b
d93bd18
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.24.2-3
d93bd18
- Rebuilt for Python 3.8
d93bd18
f1ac6d0
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.2-2
f1ac6d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f1ac6d0
0b5876c
* Wed Jun 05 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.24.2-1
0b5876c
- Update to version 0.24.2
0b5876c
- Drop patch python-metakernel-Fix-TypeError.patch (accepted upstream)
0b5876c
76a4883
* Wed Jun 05 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.24.1-1
76a4883
- Update to version 0.24.1
76a4883
- Drop metakernel-bash packages (upstream removed sources)
76a4883
- Tests are now using pytest instead of nose
76a4883
- Fix a TypeError
76a4883
d9edba6
* Mon May 13 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.23.0-1
d9edba6
- Update to version 0.23.0
d9edba6
35486c6
* Sun May 05 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.22.1-1
35486c6
- Update to version 0.22.1
35486c6
c2df429
* Wed May 01 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.21.2-1
c2df429
- Update to version 0.21.2
c2df429
cafc984
* Mon Apr 29 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.21.0-1
cafc984
- Update to version 0.21.0
cafc984
- Drop patch python-metakernel-adjustment-for-newer-jedi.patch (backported)
cafc984
- Drop patch python-metakernel-python-exec.patch (accepted upstream)
cafc984
86dd75d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.14-10
86dd75d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
86dd75d
9171b49
* Fri Nov 16 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.14-9
9171b49
- Adapt to Python 3 only ipcluster in Fedora >= 30
9171b49
0df1469
* Tue Nov 13 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.14-8
0df1469
- Don't build Python 2 packages for Fedora >= 30
0df1469
6d7efad
* Mon Jul 16 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.14-7
6d7efad
- Don't rely on 'python' in path during testing
6d7efad
8dd3a82
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.14-6
8dd3a82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8dd3a82
e1fe107
* Mon Jun 25 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.14-5
e1fe107
- Rebuilt for Python 3.7
e1fe107
320e7eb
* Mon Jun 25 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.14-4
320e7eb
- Adjustment for newer jedi (Backport from upstream git)
320e7eb
501214d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.20.14-3
501214d
- Rebuilt for Python 3.7
501214d
0bc6d13
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.14-2
0bc6d13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0bc6d13
f17ca36
* Wed Jan 24 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.14-1
f17ca36
- Update to 0.20.14
f17ca36
- Drop patches python-metakernel-install.patch and
f17ca36
  python-metakernel-bash-eval.patch (accepted upstream)
f17ca36
- Only provide one documentation package
f17ca36
1599c0b
* Sun Nov 26 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.12-2
1599c0b
- Use full path to python interpreter in kernel description
1599c0b
- Fix missing printout in bash kernel
1599c0b
bc45a80
* Fri Nov 17 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.12-1
bc45a80
- Update to 0.20.12
bc45a80
d884e15
* Mon Oct 23 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.10-1
d884e15
- Update to 0.20.10
d884e15
cbba022
* Fri Oct 20 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.8-1
cbba022
- Update to 0.20.8
cbba022
7038471
* Fri Sep 22 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.7-1
7038471
- Update to 0.20.7
7038471
cb71ab2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.4-2
cb71ab2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cb71ab2
c1b96b8
* Wed Jun 14 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.4-1
c1b96b8
- Update to 0.20.4
c1b96b8
15e6c10
* Thu May 18 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.2-2
15e6c10
- Put tests in a separate subpackage
15e6c10
15e6c10
* Sat May 13 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.2-1
15e6c10
- Update to 0.20.2
15e6c10
15e6c10
* Sat Apr 29 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 0.20.1-1
15e6c10
- Initial packaging