b17f3d8
# Unset -s on python shebang - ensure that extensions installed with pip
b17f3d8
# to user locations are seen and properly loaded
b17f3d8
%global py3_shebang_flags %nil
b17f3d8
03a5793
Name:           python-jupyter-client
c106e25
Version:        7.1.2
c106e25
Release:        1%{?dist}
Thomas Spura 19edb37
Summary:        Jupyter protocol implementation and client libraries
Thomas Spura 19edb37
Thomas Spura 19edb37
License:        BSD
Thomas Spura 19edb37
URL:            http://jupyter.org
03a5793
Source0:        %{pypi_source jupyter_client}
4409941
Thomas Spura 19edb37
BuildArch:      noarch
Thomas Spura 19edb37
Thomas Spura 19edb37
BuildRequires:  python3-devel
72ed0b9
BuildRequires:  pyproject-rpm-macros
Thomas Spura 19edb37
0cbed06
%bcond_without doc
c12797c
%bcond_without tests
c3b0978
c12797c
%if %{with tests}
72ed0b9
# The zmq tests are split in RPM only, the dependency is not tracked on Python level:
c12797c
BuildRequires:  python3-zmq-tests
c12797c
%endif
c12797c
Thomas Spura 19edb37
%description
Thomas Spura 19edb37
This package contains the reference implementation of the Jupyter protocol.
Thomas Spura 19edb37
It also provides client and kernel management APIs for working with kernels.
Thomas Spura 19edb37
Thomas Spura 19edb37
It also provides the `jupyter kernelspec` entrypoint for installing kernelspecs
Thomas Spura 19edb37
for use with Jupyter frontends.
Thomas Spura 19edb37
03a5793
%package -n     python3-jupyter-client
Thomas Spura 19edb37
Summary:        Jupyter protocol implementation and client libraries
03a5793
%{?python_provide:%python_provide python3-jupyter-client}
Thomas Spura 19edb37
522d895
# It fallbacks to ifconfig without this, and ifconfig is deprecated
522d895
Recommends:     python3-netifaces
522d895
03a5793
%description -n python3-jupyter-client
Thomas Spura 19edb37
This package contains the reference implementation of the Jupyter protocol.
Thomas Spura 19edb37
It also provides client and kernel management APIs for working with kernels.
Thomas Spura 19edb37
Thomas Spura 19edb37
It also provides the `jupyter kernelspec` entrypoint for installing kernelspecs
Thomas Spura 19edb37
for use with Jupyter frontends.
Thomas Spura 19edb37
c3b0978
%if %{with doc}
03a5793
%package -n python-jupyter-client-doc
Thomas Spura 19edb37
Summary:        Documentation of the Jupyter protocol reference implementation
72ed0b9
03a5793
%description -n python-jupyter-client-doc
Thomas Spura 19edb37
Documentation of the reference implementation of the Jupyter protocol
c3b0978
%endif
Thomas Spura 19edb37
Thomas Spura 19edb37
%prep
03a5793
%autosetup -p1 -n jupyter_client-%{version}
4409941
4409941
%if %{with doc}
4409941
# Use local objects.inv for intersphinx:
4409941
sed -i "s|\(('http://ipython.readthedocs.io/en/stable/', \)None)|\1'/usr/share/doc/python3-ipython-doc/html/objects.inv')|" docs/conf.py
4409941
%endif
Thomas Spura 19edb37
c12797c
72ed0b9
%generate_buildrequires
45de7cd
%pyproject_buildrequires %{?with_tests:-x test} %{?with_doc:-x doc}
72ed0b9
72ed0b9
Thomas Spura 19edb37
%build
72ed0b9
%pyproject_wheel
c3b0978
c3b0978
%if %{with doc}
355d679
PYTHONPATH=build/lib/ sphinx-build-3 docs html
Thomas Spura 19edb37
# remove the sphinx-build leftovers
Thomas Spura 19edb37
rm -r html/.{doctrees,buildinfo}
c3b0978
%endif
Thomas Spura 19edb37
c12797c
Thomas Spura 19edb37
%install
72ed0b9
%pyproject_install
03a5793
%pyproject_save_files jupyter_client
Thomas Spura 19edb37
09ed26c
c12797c
%if %{with tests}
c12797c
%check
45de7cd
# The two tests testing signals for kernels are flaky because
45de7cd
# if it takes the kernel more than one second to respond, it's killed.
45de7cd
# The tests work fine outside mock.
45de7cd
%pytest -v -k "not test_signal_kernel_subprocesses and not test_async_signal_kernel_subprocesses"
c12797c
%endif
c12797c
c12797c
Thomas Spura 19edb37
%global _docdir_fmt %{name}
Thomas Spura 19edb37
03a5793
%files -n python3-jupyter-client -f %{pyproject_files}
Thomas Spura 19edb37
%doc README.md
Thomas Spura 19edb37
%license COPYING.md
355d679
%{_bindir}/jupyter-kernel
Thomas Spura 19edb37
%{_bindir}/jupyter-kernelspec
355d679
%{_bindir}/jupyter-run
Thomas Spura 19edb37
c3b0978
%if %{with doc}
03a5793
%files -n python-jupyter-client-doc
Thomas Spura 19edb37
%doc html
c3b0978
%endif
Thomas Spura 19edb37
Thomas Spura 19edb37
%changelog
c106e25
* Tue Jan 25 2022 Miro Hrončok <mhroncok@redhat.com> - 7.1.2-1
c106e25
- Update to 7.1.2
c106e25
- Fixes: rhbz#2040876
c106e25
a4e5ec9
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.0-3
a4e5ec9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
a4e5ec9
b17f3d8
* Nov Nov 29 2021 Karolina Surma <ksurma@redhat.com> - 7.1.0-2
b17f3d8
- Remove -s from Python shebang in `jupyter-kernel`, `jupyter-kernelspec`
b17f3d8
  and `jupyter-run` to let Jupyter see pip installed extensions
b17f3d8
0a59afd
* Thu Nov 25 2021 Karolina Surma <ksurma@redhat.com> - 7.1.0-1
0a59afd
- Update to 7.1.0
0a59afd
Resolves: rhbz#2025674
0a59afd
eb21bf9
* Tue Oct 26 2021 Lumír Balhar <lbalhar@redhat.com> - 7.0.6-1
eb21bf9
- Update to 7.0.6
eb21bf9
Resolves: rhbz#2008516
eb21bf9
45de7cd
* Mon Aug 30 2021 Lumír Balhar <lbalhar@redhat.com> - 7.0.3-1
45de7cd
- Update to 7.0.3
45de7cd
Resolves: rhbz#1948434
45de7cd
5f33b6a
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.12-5
5f33b6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
5f33b6a
4641dde
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 6.1.12-4
4641dde
- Rebuilt for Python 3.10
4641dde
351eea6
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 6.1.12-3
351eea6
- Bootstrap for Python 3.10
351eea6
1921bc1
* Fri Apr 09 2021 Karolina Surma <ksurma@redhat.com> - 6.1.12-1
1921bc1
- Update to 6.1.12
1921bc1
Resolves: rhbz#1938505
1921bc1
1c3aea7
* Fri Mar 05 2021 Miro Hrončok <mhroncok@redhat.com> - 6.1.11-2
1c3aea7
- Unpin jedi to make the package installable again with jedi 0.18
1c3aea7
0cfbfd8
* Fri Jan 29 8:25:17 CET 2021 Tomas Hrnciar <thrnciar@redhat.com> - 6.1.11-1
0cfbfd8
- Update to 6.1.11 (#1914202)
0cfbfd8
d5a9fe5
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.7-2
d5a9fe5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d5a9fe5
72ed0b9
* Thu Sep 17 2020 Tomas Hrnciar <thrnciar@redhat.com> - 6.1.7-1
99e06f3
- Update to 6.1.7 (#1856627)
72ed0b9
f822e23
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.5-2
f822e23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f822e23
aeee6ae
* Thu Jun 25 2020 Lumír Balhar <lbalhar@redhat.com> - 6.1.5-1
aeee6ae
- Update to 6.1.5 (#1852265)
aeee6ae
ccf4446
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 5.3.4-4
ccf4446
- Rebuilt for Python 3.9
ccf4446
9523df4
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 5.3.4-3
9523df4
- Bootstrap for Python 3.9
9523df4
8ceb473
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.4-2
8ceb473
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8ceb473
dcbbe15
* Tue Nov 12 2019 Miro Hrončok <mhroncok@redhat.com> - 5.3.4-1
dcbbe15
- Update to 5.3.4 (#1759726)
c12797c
- Run tests
dcbbe15
4409941
* Thu Sep 26 2019 Jerry James <loganjerry@gmail.com> - 5.3.3-1
4409941
- Update to 5.3.3 (bz 1727659, also fixes bz 1755635)
4409941
- Drop old workaround for dual python2/python3 builds
4409941
- Use local objects.inv for intersphinx, BR python3-ipython-doc
4409941
206365d
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 5.2.3-10
206365d
- Rebuilt for Python 3.8
206365d
95b3f81
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 5.2.3-9
95b3f81
- Bootstrap for Python 3.8
95b3f81
97c1b62
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.3-8
97c1b62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
97c1b62
5c140b1
* Thu Feb 14 2019 Miro Hrončok <mhroncok@redhat.com> - 5.2.3-7
5c140b1
- Subpackage python2-jupyter-client has been removed
5c140b1
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
5c140b1
779a6c6
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.3-6
779a6c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
779a6c6
5247d3e
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.3-5
5247d3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5247d3e
0cbed06
* Wed Jun 20 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2.3-4
0cbed06
- Rebuilt for Python 3.7
0cbed06
1f44bbe
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2.3-3
c3b0978
- Bootstrap for Python 3.7
fa83a17
09ed26c
* Wed Mar 14 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2.3-1
09ed26c
- Updated to 5.2.3 (#1538378)
09ed26c
- Do not have 3.6 bytecode in 2.7 package
09ed26c
76827d8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-4
76827d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
76827d8
482e7fd
* Tue Jan 30 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2.1-3
482e7fd
- Enable automatic dependency generator, drop manual Python requires
482e7fd
- Fixes missing dependency on dateutil
25c96c6
- Add missing BRs for docs
482e7fd
522d895
* Sun Jan 14 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2.1-2
522d895
- Recommend netifaces (#1534203)
522d895
355d679
* Thu Jan 04 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2.1-1
355d679
- Updated to 5.2.1 (#1425248)
355d679
- Use Python 3 to build the docs, add BR on python3-sphinxcontrib-github-alt
355d679
532c2b9
* Fri Sep 01 2017 Miro Hrončok <mhroncok@redhat.com> - 4.4.0-5
532c2b9
- Remove -2, -3, etc. executables (#1410332)
532c2b9
d11d11f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-4
d11d11f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d11d11f
1e6ce33
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-3
1e6ce33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1e6ce33
e4adac7
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 4.4.0-2
e4adac7
- Rebuild for Python 3.6
e4adac7
Thomas Spura a13fc84
* Mon Sep 26 2016 Thomas Spura <tomspur@fedoraproject.org> - 4.4.0-1
Thomas Spura a13fc84
- update to 4.4.0
Thomas Spura a13fc84
- Source0: use files.pythonhosted.org
Thomas Spura a13fc84
Thomas Spura 19edb37
* Mon Apr 25 2016 Thomas Spura <tomspur@fedoraproject.org> - 4.2.2-4
Thomas Spura 19edb37
- Use simpler docdir_fmt
Thomas Spura 19edb37
- Fix BR/R requires
Thomas Spura 19edb37
Thomas Spura 19edb37
* Tue Apr 19 2016 Thomas Spura <tomspur@fedoraproject.org> - 4.2.2-3
Thomas Spura 19edb37
- Fix docs generation (Zbigniew, #1327989)
Thomas Spura 19edb37
- Require python2- instead python- where possible
Thomas Spura 19edb37
Thomas Spura 19edb37
* Mon Apr 18 2016 Thomas Spura <tomspur@fedoraproject.org> - 4.2.2-2
Thomas Spura 19edb37
- Use dash in name
Thomas Spura 19edb37
- Adjust description
Thomas Spura 19edb37
- Use %%license
Thomas Spura 19edb37
Thomas Spura 19edb37
* Mon Apr 18 2016 Thomas Spura <tomspur@fedoraproject.org> - 4.2.2-1
Thomas Spura 19edb37
- Initial package.