commit python3-jupyter_core for openSUSE:Factory

2017-04-20 Thread root
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 - toddrme2...@gmail.com
+
+- 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

commit python3-jupyter_core for openSUSE:Factory

2017-03-03 Thread root
Hello community,

here is the log from the commit of package python3-jupyter_core for 
openSUSE:Factory checked in at 2017-03-03 17:46:13

Comparing /work/SRC/openSUSE:Factory/python3-jupyter_core (Old)
 and  /work/SRC/openSUSE:Factory/.python3-jupyter_core.new (New)


Package is "python3-jupyter_core"

Fri Mar  3 17:46:13 2017 rev:7 rq:461371 version:4.3.0

Changes:

--- 
/work/SRC/openSUSE:Factory/python3-jupyter_core/python3-jupyter_core-doc.changes
2016-05-25 21:27:06.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.python3-jupyter_core.new/python3-jupyter_core-doc.changes
   2017-03-03 17:46:14.474662267 +0100
@@ -1,0 +2,22 @@
+Wed Mar  1 15:55:38 UTC 2017 - toddrme2...@gmail.com
+
+- Fix source URL.
+
+---
+Tue Feb 28 20:09:53 UTC 2017 - toddrme2...@gmail.com
+
+- Update to 4.3.0
+  * Add `JUPYTER_NO_CONFIG` environment variable for disabling all Jupyter 
configuration.
+  * More detailed error message when failing to launch subcommands.
+- Update to 4.2.1
+  * Fix error message on Windows when subcommand not found.
+  * Correctly display PATH in ``jupyter troubleshoot`` on Windows.
+- Update to 4.2.0
+  * Make :command:`jupyter` directory top priority in search path for 
subcommands,
+so that :command:`jupyter-subcommand` next to :command:`jupyter` will 
always be picked if present.
+  * Avoid using ``shell=True`` for subcommand dispatch on Windows.
+- Update to 4.1.1
+  * Include symlink directory and real location on subcommand PATH when 
:file:`jupyter` is a symlink.
+- Merge all documentation into single rpm.  
+
+---
--- 
/work/SRC/openSUSE:Factory/python3-jupyter_core/python3-jupyter_core.changes
2016-10-20 23:09:58.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.python3-jupyter_core.new/python3-jupyter_core.changes
   2017-03-03 17:46:14.566649267 +0100
@@ -1,0 +2,17 @@
+Tue Feb 28 20:09:53 UTC 2017 - toddrme2...@gmail.com
+
+- Update to 4.3.0
+  * Add `JUPYTER_NO_CONFIG` environment variable for disabling all Jupyter 
configuration.
+  * More detailed error message when failing to launch subcommands.
+- Update to 4.2.1
+  * Fix error message on Windows when subcommand not found.
+  * Correctly display PATH in ``jupyter troubleshoot`` on Windows.
+- Update to 4.2.0
+  * Make :command:`jupyter` directory top priority in search path for 
subcommands,
+so that :command:`jupyter-subcommand` next to :command:`jupyter` will 
always be picked if present.
+  * Avoid using ``shell=True`` for subcommand dispatch on Windows.
+- Update to 4.1.1
+  * Include symlink directory and real location on subcommand PATH when 
:file:`jupyter` is a symlink.
+- Merge all documentation into single rpm.  
+
+---

Old:

  jupyter_core-4.1.0.tar.gz

New:

  jupyter_core-4.3.0.tar.gz



Other differences:
--
++ python3-jupyter_core-doc.spec ++
--- /var/tmp/diff_new_pack.6LYneA/_old  2017-03-03 17:46:15.346539051 +0100
+++ /var/tmp/diff_new_pack.6LYneA/_new  2017-03-03 17:46:15.354537920 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python3-jupyter_core-doc
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,39 +23,27 @@
 %endif
 
 Name:   python3-jupyter_core-doc
-Version:4.1.0
+Version:4.3.0
 Release:0
 Summary:Documentation for python3-jupyter_core
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 Url:http://jupyter.org
-Source: 
https://pypi.python.org/packages/source/j/jupyter_core/jupyter_core-%{version}.tar.gz
+Source: 
https://files.pythonhosted.org/packages/source/j/jupyter_core/jupyter_core-%{version}.tar.gz
 BuildRequires:  python3-Sphinx
 BuildRequires:  python3-jupyter_core
 %if %{build_pdf}
 BuildRequires:  python3-Sphinx-latex
 %endif
+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_core in HTML format
-
-%package html
-Summary:HTML documentation for python3-jupyter_core
-Group:  Development/Languages/Python
-Recommends: python3-jupyter_core = %{version}
-
-%description html
-Documentation and help files for python3-jupyter_core in HTML 

commit python3-jupyter_core for openSUSE:Factory

2016-10-20 Thread h_root
Hello community,

here is the log from the commit of package python3-jupyter_core for 
openSUSE:Factory checked in at 2016-10-20 23:09:26

Comparing /work/SRC/openSUSE:Factory/python3-jupyter_core (Old)
 and  /work/SRC/openSUSE:Factory/.python3-jupyter_core.new (New)


Package is "python3-jupyter_core"

Changes:

--- 
/work/SRC/openSUSE:Factory/python3-jupyter_core/python3-jupyter_core.changes
2016-05-25 21:27:06.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.python3-jupyter_core.new/python3-jupyter_core.changes
   2016-10-20 23:09:58.0 +0200
@@ -1,0 +2,13 @@
+Tue Oct 18 15:55:13 UTC 2016 - toddrme2...@gmail.com
+
+- Keep all upstream directories in version_specific_dirs.patch
+
+---
+Mon Oct 17 22:41:01 UTC 2016 - toddrme2...@gmail.com
+
+- Add version_specific_dirs.patch
+  Uses python version-specific directories to avoid conflicts.
+- Install the directories used for system-side settings and data so
+  they are properly owned by this package.
+
+---

New:

  version_specific_dirs.patch



Other differences:
--
++ python3-jupyter_core.spec ++
--- /var/tmp/diff_new_pack.loSMFh/_old  2016-10-20 23:09:59.0 +0200
+++ /var/tmp/diff_new_pack.loSMFh/_new  2016-10-20 23:09:59.0 +0200
@@ -24,6 +24,8 @@
 Group:  Development/Languages/Python
 Url:http://jupyter.org
 Source: 
https://files.pythonhosted.org/packages/source/j/jupyter_core/jupyter_core-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE version_specific_dirs.patch -- Install into different 
directories for different python versions
+Patch0: version_specific_dirs.patch
 BuildRequires:  python3-devel >= 3.3
 BuildRequires:  python3-ipython_genutils
 BuildRequires:  python3-setuptools
@@ -52,6 +54,7 @@
 
 %prep
 %setup -q -n jupyter_core-%{version}
+%patch0 -p1
 
 %build
 python3 setup.py build
@@ -68,11 +71,13 @@
 
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
 for p in jupyter jupyter-migrate ; do
-ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
-# create a dummy target for /etc/alternatives/$p
-touch %{buildroot}%{_sysconfdir}/alternatives/$p
+ln -sf %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
 done
 
+# these directories are used by extensions
+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
@@ -108,5 +113,7 @@
 %{python3_sitelib}/__pycache__/jupyter.*.pyc
 %{python3_sitelib}/jupyter_core/
 %{python3_sitelib}/jupyter_core-%{version}-*.egg-info
+%{_datadir}/jupyter_python%{py3_ver}/
+%{_sysconfdir}/jupyter_python%{py3_ver}/
 
 %changelog

++ version_specific_dirs.patch ++
rom: toddrme2...@gmail.com
Date: 2016-10-17 18:24:44 +
Subject: Use version-specific directories

Normally system-wide installation uses a single hard-coded directory
for all versions.  This patch changes that to use directories
tied to the specific Python version to allow parallel installation
of multiple versions.

---

--- a/jupyter_core/paths.py
+++ b/jupyter_core/paths.py
@@ -102,11 +102,12 @@
 SYSTEM_JUPYTER_PATH = [os.path.join(sys.prefix, 'share', 'jupyter')]
 else:
 SYSTEM_JUPYTER_PATH = [
+"/usr/share/jupyter_python{0}.{1}".format(*sys.version_info),
 "/usr/local/share/jupyter",
 "/usr/share/jupyter",
 ]
 
-ENV_JUPYTER_PATH = [os.path.join(sys.prefix, 'share', 'jupyter')]
+ENV_JUPYTER_PATH = [os.path.join(sys.prefix, 'share', 
'jupyter_python{0}.{1}'.format(*sys.version_info))]
 
 
 def jupyter_path(*subdirs):
@@ -154,11 +155,12 @@
 SYSTEM_CONFIG_PATH = []
 else:
 SYSTEM_CONFIG_PATH = [
+"/etc/jupyter_python{0}.{1}".format(*sys.version_info),
 "/usr/local/etc/jupyter",
 "/etc/jupyter",
 ]
 
-ENV_CONFIG_PATH = [os.path.join(sys.prefix, 'etc', 'jupyter')]
+ENV_CONFIG_PATH = [os.path.join(sys.prefix, 'etc', 
'jupyter_python{0}.{1}'.format(*sys.version_info))]
 
 
 def jupyter_config_path():



commit python3-jupyter_core for openSUSE:Factory

2016-05-25 Thread h_root
Hello community,

here is the log from the commit of package python3-jupyter_core for 
openSUSE:Factory checked in at 2016-05-25 21:27:05

Comparing /work/SRC/openSUSE:Factory/python3-jupyter_core (Old)
 and  /work/SRC/openSUSE:Factory/.python3-jupyter_core.new (New)


Package is "python3-jupyter_core"

Changes:

--- 
/work/SRC/openSUSE:Factory/python3-jupyter_core/python3-jupyter_core-doc.changes
2016-02-18 12:36:48.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.python3-jupyter_core.new/python3-jupyter_core-doc.changes
   2016-05-25 21:27:06.0 +0200
@@ -1,0 +2,16 @@
+Mon May  9 20:06:17 UTC 2016 - toddrme2...@gmail.com
+
+- Update to 4.1.0
+  - Add ``jupyter.py`` module, so that :command:`python -m jupyter` always 
works.
+  - Add prototype ``jupyter troubleshoot`` command for displaying environment 
info.
+  - Ensure directory containing ``jupyter`` executable is included when 
dispatching subcommands.
+  - Unicode fixes for Legacy Python.
+
+---
+Sun May  8 07:12:12 UTC 2016 - a...@gmx.de
+
+- specfile:
+  * updated source url to files.pythonhosted.org
+
+
+---
--- 
/work/SRC/openSUSE:Factory/python3-jupyter_core/python3-jupyter_core.changes
2016-02-17 12:23:35.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.python3-jupyter_core.new/python3-jupyter_core.changes
   2016-05-25 21:27:06.0 +0200
@@ -1,0 +2,16 @@
+Mon May  9 20:06:17 UTC 2016 - toddrme2...@gmail.com
+
+- Update to 4.1.0
+  - Add ``jupyter.py`` module, so that :command:`python -m jupyter` always 
works.
+  - Add prototype ``jupyter troubleshoot`` command for displaying environment 
info.
+  - Ensure directory containing ``jupyter`` executable is included when 
dispatching subcommands.
+  - Unicode fixes for Legacy Python.
+
+---
+Sun May  8 07:12:10 UTC 2016 - a...@gmx.de
+
+- specfile:
+  * updated source url to files.pythonhosted.org
+
+
+---

Old:

  jupyter_core-4.0.6.tar.gz

New:

  jupyter_core-4.1.0.tar.gz



Other differences:
--
++ python3-jupyter_core-doc.spec ++
--- /var/tmp/diff_new_pack.THDUFR/_old  2016-05-25 21:27:07.0 +0200
+++ /var/tmp/diff_new_pack.THDUFR/_new  2016-05-25 21:27:07.0 +0200
@@ -23,15 +23,15 @@
 %endif
 
 Name:   python3-jupyter_core-doc
-Version:4.0.6
+Version:4.1.0
 Release:0
 Summary:Documentation for python3-jupyter_core
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 Url:http://jupyter.org
 Source: 
https://pypi.python.org/packages/source/j/jupyter_core/jupyter_core-%{version}.tar.gz
-BuildRequires:  python3-jupyter_core
 BuildRequires:  python3-Sphinx
+BuildRequires:  python3-jupyter_core
 %if %{build_pdf}
 BuildRequires:  python3-Sphinx-latex
 %endif
@@ -43,6 +43,7 @@
 
 %package html
 Summary:HTML documentation for python3-jupyter_core
+Group:  Development/Languages/Python
 Recommends: python3-jupyter_core = %{version}
 
 %description html
@@ -50,6 +51,7 @@
 
 %package pdf
 Summary:PDF documentation for python3-jupyter_core
+Group:  Development/Languages/Python
 Recommends: python3-jupyter_core = %{version}
 
 %description pdf

++ python3-jupyter_core.spec ++
--- /var/tmp/diff_new_pack.THDUFR/_old  2016-05-25 21:27:07.0 +0200
+++ /var/tmp/diff_new_pack.THDUFR/_new  2016-05-25 21:27:07.0 +0200
@@ -17,16 +17,16 @@
 
 
 Name:   python3-jupyter_core
-Version:4.0.6
+Version:4.1.0
 Release:0
 Summary:Base package on which Jupyter projects rely
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 Url:http://jupyter.org
-Source: 
https://pypi.python.org/packages/source/j/jupyter_core/jupyter_core-%{version}.tar.gz
+Source: 
https://files.pythonhosted.org/packages/source/j/jupyter_core/jupyter_core-%{version}.tar.gz
 BuildRequires:  python3-devel >= 3.3
-BuildRequires:  python3-setuptools
 BuildRequires:  python3-ipython_genutils
+BuildRequires:  python3-setuptools
 BuildRequires:  python3-traitlets
 # Test requirements
 BuildRequires:  python3-mock
@@ -74,10 +74,13 @@
 done
 
 %check
-# test_migrate requires files not found in the package
 pushd jupyter_core/tests
+# test_migrate requires files not found in the package
 rm test_migrate.py
-PYTHONPATH=%{buildroot}%{python3_sitelib} py.test
+ln -s %{buildroot}%{_bindir}/jupyter-%{py3_ver} ./jupyter
+export "PATH=%{buildroot}%{_bindir}:./:$PATH"
+# test_not_on_path 

commit python3-jupyter_core for openSUSE:Factory

2016-02-18 Thread h_root
Hello community,

here is the log from the commit of package python3-jupyter_core for 
openSUSE:Factory checked in at 2016-02-18 11:07:34

Comparing /work/SRC/openSUSE:Factory/python3-jupyter_core (Old)
 and  /work/SRC/openSUSE:Factory/.python3-jupyter_core.new (New)


Package is "python3-jupyter_core"

Changes:

--- 
/work/SRC/openSUSE:Factory/python3-jupyter_core/python3-jupyter_core-doc.changes
2016-02-17 12:23:34.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.python3-jupyter_core.new/python3-jupyter_core-doc.changes
   2016-02-18 12:36:48.0 +0100
@@ -1,0 +2,5 @@
+Wed Feb 17 14:22:56 UTC 2016 - toddrme2...@gmail.com
+
+- Simplify the tests for whether to build pdf documentation
+
+---



Other differences:
--
++ python3-jupyter_core-doc.spec ++
--- /var/tmp/diff_new_pack.kLTaSv/_old  2016-02-18 12:36:49.0 +0100
+++ /var/tmp/diff_new_pack.kLTaSv/_new  2016-02-18 12:36:49.0 +0100
@@ -16,6 +16,12 @@
 #
 
 
+%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 
1110 )
+%define build_pdf 1
+%else
+%define build_pdf 0
+%endif
+
 Name:   python3-jupyter_core-doc
 Version:4.0.6
 Release:0
@@ -26,7 +32,7 @@
 Source: 
https://pypi.python.org/packages/source/j/jupyter_core/jupyter_core-%{version}.tar.gz
 BuildRequires:  python3-jupyter_core
 BuildRequires:  python3-Sphinx
-%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 
1110 )
+%if %{build_pdf}
 BuildRequires:  python3-Sphinx-latex
 %endif
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -58,7 +64,7 @@
 %install
 # Build the documentation
 pushd docs
-%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 
1110 )
+%if %{build_pdf}
 PYTHONPATH=%{buildroot}%{python3_sitelib} make latexpdf
 %endif
 PYTHONPATH=%{buildroot}%{python3_sitelib} make html
@@ -70,7 +76,7 @@
 %doc COPYING.md
 %doc docs/_build/html/
 
-%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 
1110 )
+%if %{build_pdf}
 %files pdf
 %defattr(-,root,root,-)
 %doc COPYING.md




commit python3-jupyter_core for openSUSE:Factory

2015-10-08 Thread h_root
Hello community,

here is the log from the commit of package python3-jupyter_core for 
openSUSE:Factory checked in at 2015-10-08 08:24:10

Comparing /work/SRC/openSUSE:Factory/python3-jupyter_core (Old)
 and  /work/SRC/openSUSE:Factory/.python3-jupyter_core.new (New)


Package is "python3-jupyter_core"

Changes:

--- 
/work/SRC/openSUSE:Factory/python3-jupyter_core/python3-jupyter_core.changes
2015-09-30 05:51:17.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.python3-jupyter_core.new/python3-jupyter_core.changes
   2015-10-08 08:24:11.0 +0200
@@ -1,0 +2,10 @@
+Thu Oct  1 11:35:12 UTC 2015 - toddrme2...@gmail.com
+
+- Don't install hidden file.
+
+---
+Wed Sep 30 10:08:04 UTC 2015 - toddrme2...@gmail.com
+
+- Build documentation
+
+---



Other differences:
--
++ python3-jupyter_core.spec ++
--- /var/tmp/diff_new_pack.XYemuA/_old  2015-10-08 08:24:11.0 +0200
+++ /var/tmp/diff_new_pack.XYemuA/_new  2015-10-08 08:24:11.0 +0200
@@ -27,10 +27,16 @@
 BuildRequires:  python3-devel >= 3.3
 BuildRequires:  python3-setuptools
 BuildRequires:  python3-ipython_genutils
+BuildRequires:  python3-traitlets
+# Test requirements
 BuildRequires:  python3-mock
 BuildRequires:  python3-pbr
 BuildRequires:  python3-pytest
-BuildRequires:  python3-traitlets
+# Documentation requirements
+BuildRequires:  python3-Sphinx
+%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 
1110 )
+BuildRequires:  python3-Sphinx-latex
+%endif
 Requires:   python3 >= 3.3
 Requires:   python3-ipython_genutils
 Requires:   python3-traitlets
@@ -49,6 +55,20 @@
 There is no reason to install this package on its own.  It will be pulled in
 as a dependency by packages that require it.
 
+%package doc-html
+Summary:HTML documentation for %{name}
+Recommends: %{name} = %{version}
+
+%description doc-html
+Documentation and help files for %{name} in HTML format
+
+%package doc-pdf
+Summary:HTML documentation for %{name}
+Recommends: %{name} = %{version}
+
+%description doc-pdf
+Documentation and help files for %{name} in PDF format
+
 %prep
 %setup -q -n jupyter_core-%{version}
 
@@ -59,14 +79,28 @@
 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
-mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py3_ver}
 ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
 # create a dummy target for /etc/alternatives/$p
 touch %{buildroot}%{_sysconfdir}/alternatives/$p
 done
 
+# Build the documentation
+pushd docs
+%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 
1110 )
+PYTHONPATH=%{buildroot}%{python3_sitelib} make latexpdf
+%endif
+PYTHONPATH=%{buildroot}%{python3_sitelib} make html
+rm -rf _build/html/.buildinfo
+popd
+
 %check
 # test_migrate requires files not found in the package
 pushd jupyter_core/tests
@@ -88,11 +122,25 @@
 %defattr(-,root,root,-)
 %doc CONTRIBUTING.md COPYING.md README.md
 %{_bindir}/jupyter
-%{_bindir}/jupyter-migrate
+%{_bindir}/jupyter3
 %{_bindir}/jupyter-%{py3_ver}
-%{_bindir}/jupyter-migrate-%{py3_ver}
 %ghost %{_sysconfdir}/alternatives/jupyter
+%{_bindir}/jupyter-migrate
+%{_bindir}/jupyter3-migrate
+%{_bindir}/jupyter-migrate-%{py3_ver}
 %ghost %{_sysconfdir}/alternatives/jupyter-migrate
 %{python3_sitelib}/*
 
+%files doc-html
+%defattr(-,root,root,-)
+%doc COPYING.md
+%doc docs/_build/html/
+
+%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 
1110 )
+%files doc-pdf
+%defattr(-,root,root,-)
+%doc COPYING.md
+%doc docs/_build/latex/jupyter_core.pdf
+%endif
+
 %changelog