Hello community,

here is the log from the commit of package python3-jupyter_core for 
openSUSE:Factory checked in at 2017-04-20 20:50:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-jupyter_core (Old)
 and      /work/SRC/openSUSE:Factory/.python3-jupyter_core.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-jupyter_core"

Thu Apr 20 20:50:46 2017 rev:8 rq:486561 version:4.3.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python3-jupyter_core/python3-jupyter_core-doc.changes
    2017-03-03 17:46:14.474662267 +0100
+++ 
/work/SRC/openSUSE:Factory/.python3-jupyter_core.new/python3-jupyter_core-doc.changes
       2017-04-20 20:51:08.378355631 +0200
@@ -1,0 +2,6 @@
+Fri Apr  7 18:27:56 UTC 2017 - [email protected]
+
+- Move tests to doc subpackage.
+- Clean up doc building.
+
+-------------------------------------------------------------------
python3-jupyter_core.changes: same change

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python3-jupyter_core-doc.spec ++++++
--- /var/tmp/diff_new_pack.CHpWjS/_old  2017-04-20 20:51:09.098253836 +0200
+++ /var/tmp/diff_new_pack.CHpWjS/_new  2017-04-20 20:51:09.102253271 +0200
@@ -16,23 +16,33 @@
 #
 
 
-%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 
1110 )
-%define build_pdf 1
+%if 0%{?suse_version} && 0%{?suse_version} > 1320
+%bcond_without pdf
 %else
-%define build_pdf 0
+%bcond_with pdf
 %endif
 
+%bcond_without tests
+
 Name:           python3-jupyter_core-doc
 Version:        4.3.0
 Release:        0
-Summary:        Documentation for python3-jupyter_core
+Summary:        Documentation for python-jupyter_core
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 Url:            http://jupyter.org
 Source:         
https://files.pythonhosted.org/packages/source/j/jupyter_core/jupyter_core-%{version}.tar.gz
-BuildRequires:  python3-Sphinx
+# PATCH-FIX-OPENSUSE version_specific_dirs.patch -- Install into different 
directories for different python versions
+Patch0:         version_specific_dirs.patch
+BuildRequires:  fdupes
 BuildRequires:  python3-jupyter_core
-%if %{build_pdf}
+%if %{with tests}
+# Test requirements
+BuildRequires:  python3-pytest
+%endif
+# Documentation requirements
+BuildRequires:  python3-Sphinx
+%if %{with pdf}
 BuildRequires:  python3-Sphinx-latex
 %endif
 Provides:       %{name}-html = %{version}
@@ -47,26 +57,41 @@
 
 %prep
 %setup -q -n jupyter_core-%{version}
+%patch0 -p1
 
 %build
-# Not needed
-
-%install
 # Build the documentation
 pushd docs
-%if %{build_pdf}
-PYTHONPATH=%{buildroot}%{python3_sitelib} make latexpdf
+%if %{with pdf}
+make latexpdf
+%endif
+make html
+rm -rf build/html/.buildinfo
+popd
+
+%install
+mkdir -p %{buildroot}%{_docdir}/python3-jupyter_core
+
+%if %{with pdf}
+cp docs/_build/latex/*.pdf %{buildroot}%{_docdir}/python3-jupyter_core/
 %endif
-PYTHONPATH=%{buildroot}%{python3_sitelib} make html
-rm -rf _build/html/.buildinfo
+
+cp -r docs/_build/html %{buildroot}%{_docdir}/python3-jupyter_core/
+cp -r examples %{buildroot}%{_docdir}/python3-jupyter_core/
+%fdupes %{buildroot}%{_docdir}/python3-jupyter_core/
+
+%if %{with tests}
+%check
+# test_migrate requires files not found in the package
+pushd jupyter_core/tests
+rm test_migrate.py
+py.test
 popd
+%endif
 
 %files
 %defattr(-,root,root,-)
 %doc COPYING.md
-%doc docs/_build/html/
-%if %{build_pdf}
-%doc docs/_build/latex/jupyter_core.pdf
-%endif
+%{_docdir}/python3-jupyter_core/
 
 %changelog

++++++ python3-jupyter_core.spec ++++++
--- /var/tmp/diff_new_pack.CHpWjS/_old  2017-04-20 20:51:09.134248746 +0200
+++ /var/tmp/diff_new_pack.CHpWjS/_new  2017-04-20 20:51:09.138248181 +0200
@@ -30,11 +30,6 @@
 BuildRequires:  python3-ipython_genutils
 BuildRequires:  python3-setuptools
 BuildRequires:  python3-traitlets
-# Test requirements
-BuildRequires:  python3-mock
-BuildRequires:  python3-pbr
-BuildRequires:  python3-pytest
-BuildRequires:  python3-testpath
 Requires:       python3 >= 3.3
 Requires:       python3-ipython_genutils
 Requires:       python3-traitlets
@@ -64,32 +59,21 @@
 python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
 # Prepare for update-alternatives usage
-mv  %{buildroot}%{_bindir}/jupyter %{buildroot}%{_bindir}/jupyter3
-mv  %{buildroot}%{_bindir}/jupyter-migrate 
%{buildroot}%{_bindir}/jupyter3-migrate
-
-ln -s -f  %{_bindir}/jupyter3 %{buildroot}%{_bindir}/jupyter-%{py3_ver}
-ln -s -f  %{_bindir}/jupyter3-migrate 
%{buildroot}%{_bindir}/jupyter-migrate-%{py3_ver}
-
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
 for p in jupyter jupyter-migrate ; do
-    ln -sf %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
+    mv  %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py3_ver}
+    ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
 done
 
+ln -s -f  %{_bindir}/jupyter-%{py3_ver} %{buildroot}%{_bindir}/jupyter3
+ln -s -f  %{_bindir}/jupyter-migrate-%{py3_ver} 
%{buildroot}%{_bindir}/jupyter3-migrate
+
 # these directories are used by extensions
+mkdir -p %{buildroot}%{_datadir}/jupyter/
+mkdir -p %{buildroot}%{_datadir}/jupyter/kernels/
 mkdir -p %{buildroot}%{_datadir}/jupyter_python%{py3_ver}/
 mkdir -p %{buildroot}%{_sysconfdir}/jupyter_python%{py3_ver}/
 
-%check
-pushd jupyter_core/tests
-# test_migrate requires files not found in the package
-rm test_migrate.py
-ln -s %{buildroot}%{_bindir}/jupyter-%{py3_ver} ./jupyter
-export "PATH=%{buildroot}%{_bindir}:./:$PATH"
-export "PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitelib}"
-# test_not_on_path removes the environment variables needed to make the tests 
work
-py.test -k "not test_not_on_path and not test_path_priority"
-popd
-
 %post
 %_sbindir/update-alternatives \
    --install %{_bindir}/jupyter jupyter %{_bindir}/jupyter-%{py3_ver} 30 \
@@ -115,6 +99,8 @@
 %{python3_sitelib}/__pycache__/jupyter.*.pyc
 %{python3_sitelib}/jupyter_core/
 %{python3_sitelib}/jupyter_core-%{version}-*.egg-info
+%{_datadir}/jupyter/
+%{_datadir}/jupyter/kernels/
 %{_datadir}/jupyter_python%{py3_ver}/
 %{_sysconfdir}/jupyter_python%{py3_ver}/
 


Reply via email to