Thomas Spura a2e6ac3
%global pypi_name jupyter_core
Thomas Spura a2e6ac3
%global pypi_name_dash jupyter-core
Thomas Spura a2e6ac3
Thomas Spura a2e6ac3
Name:           python-%{pypi_name_dash}
66bcdfd
Version:        4.6.3
e103f01
Release:        2%{?dist}
Thomas Spura a2e6ac3
Summary:        The base package for Jupyter projects
Thomas Spura a2e6ac3
Thomas Spura a2e6ac3
License:        BSD
Thomas Spura a2e6ac3
URL:            http://jupyter.org
c378abe
Source0:        %pypi_source
Thomas Spura a2e6ac3
BuildArch:      noarch
Thomas Spura a2e6ac3
Orion Poplawski 7914910
BuildRequires:  python%{python3_pkgversion}-setuptools
Orion Poplawski 7914910
BuildRequires:  python%{python3_pkgversion}-devel
cb45780
BuildRequires:  python%{python3_pkgversion}-sphinx
cb45780
BuildRequires:  python%{python3_pkgversion}-docs
cb45780
BuildRequires:  python%{python3_pkgversion}-sphinxcontrib-github-alt
Thomas Spura a2e6ac3
9c939bb
%bcond_without tests
9c939bb
%if %{with tests}
9c939bb
BuildRequires:  python%{python3_pkgversion}-ipython_genutils
9c939bb
BuildRequires:  python%{python3_pkgversion}-nose
9c939bb
BuildRequires:  python%{python3_pkgversion}-pytest
9c939bb
BuildRequires:  python%{python3_pkgversion}-traitlets
9c939bb
%endif
9c939bb
Thomas Spura a2e6ac3
%description
Thomas Spura a2e6ac3
Core common functionality of Jupyter projects.
Thomas Spura a2e6ac3
Thomas Spura a2e6ac3
This package contains base application classes and configuration inherited by
Thomas Spura a2e6ac3
other projects.
Thomas Spura a2e6ac3
Orion Poplawski 7914910
%package -n     python%{python3_pkgversion}-%{pypi_name_dash}
Thomas Spura a2e6ac3
Summary:        The base package for Jupyter projects
Orion Poplawski 7914910
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name_dash}}
Thomas Spura a2e6ac3
Orion Poplawski 7914910
%description -n python%{python3_pkgversion}-%{pypi_name_dash}
Thomas Spura a2e6ac3
Core common functionality of Jupyter projects.
Thomas Spura a2e6ac3
Thomas Spura a2e6ac3
This package contains base application classes and configuration inherited by
Thomas Spura a2e6ac3
other projects.
Thomas Spura a2e6ac3
Thomas Spura a2e6ac3
%package -n python-%{pypi_name_dash}-doc
Thomas Spura a2e6ac3
Summary:        Documentation of the base package for Jupyter projects
Thomas Spura a2e6ac3
%description -n python-%{pypi_name_dash}-doc
Thomas Spura a2e6ac3
Core common functionality of Jupyter projects.
Thomas Spura a2e6ac3
Thomas Spura a2e6ac3
This package contains documentation for the base application classes and
Thomas Spura a2e6ac3
configuration inherited by other jupyter projects.
Thomas Spura a2e6ac3
2db9c1e
%package -n python-jupyter-filesystem
2db9c1e
Summary:        Jupyter filesystem layout
2db9c1e
%description -n python-jupyter-filesystem
2db9c1e
This package provides directories required by other packages that add
2db9c1e
extensions to Jupyter.
2db9c1e
Thomas Spura a2e6ac3
%prep
Thomas Spura a2e6ac3
%autosetup -n %{pypi_name}-%{version}
Thomas Spura a2e6ac3
cb45780
# Use local objects.inv for intersphinx:
cb45780
sed -i "s|{'https://docs.python.org/3/': None}|{'https://docs.python.org/3/': '/usr/share/doc/python3-docs/html/objects.inv'}|" docs/conf.py
cb45780
9c939bb
Thomas Spura a2e6ac3
%build
Thomas Spura a2e6ac3
%py3_build
Thomas Spura a2e6ac3
# generate html docs
cb45780
PYTHONPATH=build/lib/ sphinx-build-3 docs html
Thomas Spura a2e6ac3
# remove the sphinx-build leftovers
Thomas Spura a2e6ac3
rm -rf html/.{doctrees,buildinfo}
Thomas Spura a2e6ac3
9c939bb
Thomas Spura a2e6ac3
%install
21d898b
%py3_install
Thomas Spura a2e6ac3
2db9c1e
# Create directories for python-jupyter-filesystem package
2db9c1e
mkdir -p %{buildroot}%{_datadir}/jupyter
2db9c1e
mkdir %{buildroot}%{_datadir}/jupyter/kernels
2db9c1e
mkdir %{buildroot}%{_datadir}/jupyter/nbextensions
2db9c1e
mkdir -p %{buildroot}%{_sysconfdir}/jupyter
2db9c1e
mkdir %{buildroot}%{_sysconfdir}/jupyter/jupyter_notebook_config.d
2db9c1e
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig
2db9c1e
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/common.d
2db9c1e
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/edit.d
2db9c1e
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/notebook.d
2db9c1e
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/terminal.d
2db9c1e
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/tree.d
2db9c1e
9c939bb
9c939bb
%if %{with tests}
9c939bb
%check
9c939bb
export PYTHONPATH=%{buildroot}%{python3_sitelib}
9c939bb
export PATH="%{buildroot}%{_bindir}:$PATH"
9c939bb
# deselected tests unset the above variables and can only run when installed
9c939bb
pytest-3 -v \
9c939bb
    --deselect "jupyter_core/tests/test_command.py::test_not_on_path" \
9c939bb
    --deselect "jupyter_core/tests/test_command.py::test_path_priority" \
9c939bb
%endif
9c939bb
9c939bb
Thomas Spura a2e6ac3
%global _docdir_fmt %{name}
Thomas Spura a2e6ac3
Orion Poplawski 7914910
%files -n python%{python3_pkgversion}-%{pypi_name_dash}
Thomas Spura a2e6ac3
%license COPYING.md
Thomas Spura a2e6ac3
%doc README.md
21d898b
%{_bindir}/jupyter
21d898b
%{_bindir}/jupyter-migrate
c378abe
%{_bindir}/jupyter-troubleshoot
21d898b
Thomas Spura a2e6ac3
%{python3_sitelib}/__pycache__/*
Thomas Spura a2e6ac3
%{python3_sitelib}/jupyter.py
01f732d
%{python3_sitelib}/%{pypi_name}-%{version}-py?.*.egg-info/
Thomas Spura a2e6ac3
%{python3_sitelib}/%{pypi_name}/
Thomas Spura a2e6ac3
Thomas Spura a2e6ac3
%files -n python-%{pypi_name_dash}-doc
Thomas Spura a2e6ac3
%doc html
Thomas Spura a2e6ac3
2db9c1e
%files -n python-jupyter-filesystem
2db9c1e
%{_datadir}/jupyter
2db9c1e
%{_sysconfdir}/jupyter
2db9c1e
Thomas Spura a2e6ac3
%changelog
e103f01
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.3-2
e103f01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e103f01
66bcdfd
* Thu Jun 25 2020 Lumír Balhar <lbalhar@redhat.com> - 4.6.3-1
66bcdfd
- Update to 4.6.3 (#1801546)
66bcdfd
daa7e09
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 4.6.1-3
daa7e09
- Rebuilt for Python 3.9
daa7e09
f518b0d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.1-2
f518b0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f518b0d
01f732d
* Tue Nov 12 2019 Miro Hrončok <mhroncok@redhat.com> - 4.6.1-1
01f732d
- Update to 4.6.1 (#1759630)
9c939bb
- Run tests
01f732d
c378abe
* Thu Sep 26 2019 Jerry James <loganjerry@gmail.com> - 4.5.0-1
c378abe
- Update to 4.5.0 (bz 1722169)
c378abe
- Drop obsoletes and conflicts needed for EOL versions of Fedora
c378abe
- Drop explicit Provides that are now autogenerated
c378abe
- Troubleshoot is now a supported entry point
c378abe
- Drop old workaround for dual python2/python3 builds
c378abe
39fd450
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 4.4.0-9
39fd450
- Rebuilt for Python 3.8
39fd450
4d90fb7
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-8
4d90fb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4d90fb7
796faf6
* Thu Feb 14 2019 Miro Hrončok <mhroncok@redhat.com> - 4.4.0-7
796faf6
- Subpackage python2-jupyter-core has been removed
796faf6
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
796faf6
2f52442
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-6
2f52442
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2f52442
4d91c44
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-5
4d91c44
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4d91c44
1948b46
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.4.0-4
1948b46
- Rebuilt for Python 3.7
1948b46
2db9c1e
* Sun Jun 10 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 4.4.0-3
2db9c1e
- Add python-jupyter-filesystem package
2db9c1e
bc2c273
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-2
bc2c273
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bc2c273
cb45780
* Tue Jan 09 2018 Miro Hrončok <mhroncok@redhat.com> - 4.4.0-1
cb45780
- Update to 4.4.0 (#1508192)
cb45780
- Build docs with Python 3, BR python3-sphinxcontrib-github-alt
cb45780
- Use local objects.inv for intersphinx, BR python3-docs
cb45780
21d898b
* Fri Sep 01 2017 Miro Hrončok <mhroncok@redhat.com> - 4.3.0-2
21d898b
- Move executables from py2 to py3 (#1410332)
21d898b
Orion Poplawski 61284ef
* Tue Aug 29 2017 Orion Poplawski <orion@cora.nwra.com> - 4.3.0-1
Orion Poplawski 61284ef
- Update to 4.3.0
Orion Poplawski 61284ef
Orion Poplawski 7245704
* Tue Aug 29 2017 Orion Poplawski <orion@cora.nwra.com> - 4.1.0-10
Orion Poplawski 7245704
- Use more python2- names
Orion Poplawski 7245704
f6e53a8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-9
f6e53a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f6e53a8
bcab4d6
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-8
bcab4d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bcab4d6
8327b68
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 4.1.0-7
8327b68
- Rebuild for Python 3.6
8327b68
Orion Poplawski 7914910
* Wed Nov 16 2016 Orion Poplwski <orion@cora.nwra.com> - 4.1.0-6
Orion Poplawski 7914910
- Do not own __pycache__ dir
Orion Poplawski 7914910
- Enable EPEL builds
Orion Poplawski 7914910
97d01ce
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-5
97d01ce
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
97d01ce
Thomas Spura a2e6ac3
* Sat Apr 23 2016 Thomas Spura <tomspur@fedoraproject.org> - 4.1.0-4
Thomas Spura a2e6ac3
- Add obsoletes/provides for jupyter_core
Thomas Spura a2e6ac3
- Fix python2 files installed with python3
Thomas Spura a2e6ac3
Thomas Spura a2e6ac3
* Mon Apr 18 2016 Thomas Spura <tomspur@fedoraproject.org> - 4.1.0-3
Thomas Spura a2e6ac3
- Remove references to jupyter-troubleshoot
Thomas Spura a2e6ac3
- Improve summary
Thomas Spura a2e6ac3
- Remove shebang from troubleshoot.py
Thomas Spura a2e6ac3
Thomas Spura a2e6ac3
* Mon Apr 18 2016 Thomas Spura <tomspur@fedoraproject.org> - 4.1.0-2
Thomas Spura a2e6ac3
- Add PYTHONPATH to sphinx-build (Zbigniew, #1327994)
Thomas Spura a2e6ac3
- Install script differently (Zbigniew, #1327994)
Thomas Spura a2e6ac3
- Rename packages to avoid underscore
Thomas Spura a2e6ac3
Thomas Spura a2e6ac3
* Mon Apr 18 2016 Thomas Spura <tomspur@fedoraproject.org> - 4.1.0-1
Thomas Spura a2e6ac3
- Initial package.