Hello community,

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

Package is "python3-jupyter_nbformat"

Thu Apr 20 20:50:55 2017 rev:6 rq:486600 version:4.3.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python3-jupyter_nbformat/python3-jupyter_nbformat-doc.changes
    2017-03-02 19:38:56.709969816 +0100
+++ 
/work/SRC/openSUSE:Factory/.python3-jupyter_nbformat.new/python3-jupyter_nbformat-doc.changes
       2017-04-20 20:51:14.649468886 +0200
@@ -1,0 +2,6 @@
+Fri Apr  7 19:24:42 UTC 2017 - toddrme2...@gmail.com
+
+- Clean up doc building.
+- Move tests to doc subpackage.
+
+-------------------------------------------------------------------
python3-jupyter_nbformat.changes: same change

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

Other differences:
------------------
++++++ python3-jupyter_nbformat-doc.spec ++++++
--- /var/tmp/diff_new_pack.AiJgvb/_old  2017-04-20 20:51:16.041272083 +0200
+++ /var/tmp/diff_new_pack.AiJgvb/_new  2017-04-20 20:51:16.045271517 +0200
@@ -16,33 +16,41 @@
 #
 
 
-%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 
1110 )
-%define build_pdf 1
+%if 0%{?suse_version} && 0%{?suse_version} != 1315
+%bcond_without pdf
 %else
-%define build_pdf 0
+%bcond_with pdf
 %endif
 
+%bcond_without tests
+
 Name:           python3-jupyter_nbformat-doc
 Version:        4.3.0
 Release:        0
 Summary:        Documentation for python3-jupyter_nbformat
 License:        BSD-3-Clause
-Group:          Documentation/Other
-Url:            http://jupyter.org
+Group:          Development/Languages/Python
+Url:            http://ipython.org
 Source:         
https://files.pythonhosted.org/packages/source/n/nbformat/nbformat-%{version}.tar.gz
+BuildRequires:  fdupes
 BuildRequires:  python3-jupyter_nbformat
+%if %{with tests}
+# Test Requirements
+BuildRequires:  python3-pytest
+BuildRequires:  python3-testpath
+%endif
 # Documentation requirements
 BuildRequires:  python3-Sphinx
 BuildRequires:  python3-numpydoc
-%if %{build_pdf}
+%if %{with pdf}
 BuildRequires:  python3-Sphinx-latex
 %endif
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildArch:      noarch
 Provides:       %{name}-html = %{version}
 Provides:       %{name}-pdf = %{version}
 Obsoletes:      %{name}-html < %{version}
 Obsoletes:      %{name}-pdf < %{version}
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildArch:      noarch
 
 %description
 Documentation and help files for python3-jupyter_nbformat.
@@ -51,23 +59,33 @@
 %setup -q -n nbformat-%{version}
 
 %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_nbformat
+
+%if %{with pdf}
+cp docs/_build/latex/*.pdf %{buildroot}%{_docdir}/python3-jupyter_nbformat/
+%endif
+
+cp -r docs/_build/html %{buildroot}%{_docdir}/python3-jupyter_nbformat/
+%fdupes %{buildroot}%{_docdir}/python3-jupyter_nbformat/
+
+%if %{with tests}
+%check
+py.test
 %endif
-PYTHONPATH=%{buildroot}%{python3_sitelib} make html
-rm -rf _build/html/.buildinfo
 
 %files
 %defattr(-,root,root,-)
 %doc COPYING.md
-%doc docs/_build/html/
-%if %{build_pdf}
-%doc docs/_build/latex/*.pdf
-%endif
+%{_docdir}/python3-jupyter_nbformat/
 
 %changelog

++++++ python3-jupyter_nbformat.spec ++++++
--- /var/tmp/diff_new_pack.AiJgvb/_old  2017-04-20 20:51:16.077266993 +0200
+++ /var/tmp/diff_new_pack.AiJgvb/_new  2017-04-20 20:51:16.077266993 +0200
@@ -29,14 +29,11 @@
 BuildRequires:  python3-jsonschema > 2.5.0
 BuildRequires:  python3-jupyter_core
 BuildRequires:  python3-setuptools
-BuildRequires:  python3-traitlets >= 4.1
-# Test requirements
-BuildRequires:  python3-pytest
-BuildRequires:  python3-testpath
+BuildRequires:  python3-traitlets
 Requires:       python3-ipython_genutils
 Requires:       python3-jsonschema > 2.5.0
 Requires:       python3-jupyter_core
-Requires:       python3-traitlets >= 4.1
+Requires:       python3-traitlets
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -54,9 +51,8 @@
 
 %install
 python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
-
-mv %{buildroot}%{_bindir}/jupyter-trust %{buildroot}%{_bindir}/jupyter3-trust
-ln -s -f %{_bindir}/jupyter3-trust 
%{buildroot}%{_bindir}/jupyter-trust-%{py3_ver}
+mv %{buildroot}%{_bindir}/jupyter-trust 
%{buildroot}%{_bindir}/jupyter-trust-%{py3_ver}
+ln -s -f %{_bindir}/jupyter-trust-%{py3_ver} 
%{buildroot}%{_bindir}/jupyter3-trust
 
 # Prepare for update-alternatives usage
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
@@ -73,11 +69,6 @@
     %_sbindir/update-alternatives --remove jupyter-trust 
%{_bindir}/jupyter-trust-%{py3_ver}
 fi
 
-%check
-pushd docs
-PYTHONPATH=%{buildroot}%{python3_sitelib} py.test ../nbformat/tests
-popd
-
 %files
 %defattr(-,root,root,-)
 %doc COPYING.md README.md


Reply via email to