Hello community, here is the log from the commit of package python-jupyter_ipyscales for openSUSE:Factory checked in at 2018-08-03 12:40:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jupyter_ipyscales (Old) and /work/SRC/openSUSE:Factory/.python-jupyter_ipyscales.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyter_ipyscales" Fri Aug 3 12:40:10 2018 rev:3 rq:627181 version:0.2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jupyter_ipyscales/python-jupyter_ipyscales.changes 2018-07-06 10:45:05.775033288 +0200 +++ /work/SRC/openSUSE:Factory/.python-jupyter_ipyscales.new/python-jupyter_ipyscales.changes 2018-08-03 12:40:11.367827324 +0200 @@ -1,0 +2,10 @@ +Thu Aug 2 19:38:44 UTC 2018 - toddrme2...@gmail.com + +- Update to 0.2.2 + * Fix nbextension dist again + * Fix datafiles spec + * Sync npm deps + * Cleanup setup and distribution + * Add dash to lab package keyword + +------------------------------------------------------------------- Old: ---- ipyscales-0.1.3.tar.gz New: ---- LICENSE.txt ipyscales-0.2.2-py2.py3-none-any.whl ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jupyter_ipyscales.spec ++++++ --- /var/tmp/diff_new_pack.enpodR/_old 2018-08-03 12:40:12.071828374 +0200 +++ /var/tmp/diff_new_pack.enpodR/_new 2018-08-03 12:40:12.071828374 +0200 @@ -18,16 +18,18 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-jupyter_ipyscales -Version: 0.1.3 +Version: 0.2.2 +%define labver 0.2.1 Release: 0 Summary: A widget library for scales License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/vidartf/ipyscales -Source: https://files.pythonhosted.org/packages/source/i/ipyscales/ipyscales-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/py2.py3/i/ipyscales/ipyscales-%{version}-py2.py3-none-any.whl +Source10: https://raw.githubusercontent.com/vidartf/ipyscales/%{version}/LICENSE.txt BuildRequires: %{python_module devel} BuildRequires: %{python_module jupyter_notebook} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test requirements @@ -52,40 +54,55 @@ %description A Jupyter/IPython widget library for scales. +%package -n python3-jupyter_ipyscales_jupyterlab +Summary: A JupyterLab widget library for scales +Requires: python3-jupyter_ipyscales = %{version} +Requires: python3-jupyter_jupyterlab + +%description -n python3-jupyter_ipyscales_jupyterlab +A Jupyterlab widget library for scales. + +After installation you must run: +jupyter labextension install @jupyter-widgets/jupyterlab-manager + %prep -%setup -q -n ipyscales-%{version} -sed -i 's/\r$//' README.md -find -name "*.py" -exec sed -i 's/\r$//' {} \; -find -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \; +%setup -c -T +cp %{SOURCE10} . %build -%python_build +# Not Needed %install -%python_install - -export PYTHONPATH=%{buildroot}%{python3_sitelib} -jupyter nbextension install --py --prefix %{buildroot}%{_prefix} ipyscales +%{python_expand pip%{$python_bin_suffix} install --root=%{buildroot} %{SOURCE0} +find %{buildroot}%{$python_sitelib}/ipyscales/ -name '*.py' -exec sed -i 's/\r$//' {} \; +find %{buildroot}%{$python_sitelib}/ipyscales/ -name '*.py' -exec sed -i sed -i -e '/^#!\//, 1d' {} \; +$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/ipyscales/ +} -%python_expand %fdupes %{buildroot}%{$python_sitelib} %{fdupes %{buildroot}%{_datadir}/jupyter/ %{buildroot}%{python3_sitelib}} -%post -n python3-jupyter_ipyscales -jupyter nbextension enable --system --py ipyscales || true - -%preun -n python3-jupyter_ipyscales -if [ $1 == 0 ] && [ -d %{python3_sitelib}/ipyscales/ ] ; then - jupyter nbextension disable --system --py ipyscales || true +if [ "$(dirname %{_prefix}/etc/jupyter)" != "$(dirname %{_sysconfdir}/jupyter)" ]; then +mkdir -p %{buildroot}%{_sysconfdir} +mv %{buildroot}%{_prefix}/etc/jupyter %{buildroot}%{_sysconfdir}/jupyter +rm -d %{buildroot}%{_prefix}/etc fi %check -%python_expand py.test-%{$python_bin_suffix} -l --pyargs ipyscales +export PYTHONDONTWRITEBYTECODE=1 +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +py.test-%{$python_bin_suffix} -l --pyargs ipyscales +} %files %{python_files} -%doc README.md %license LICENSE.txt -%{python_sitelib}/ipyscales-*-py*.egg-info %{python_sitelib}/ipyscales/ +%{python_sitelib}/ipyscales-%{version}.dist-info %python3_only %{_datadir}/jupyter/nbextensions/jupyter-scales/ +%python3_only %config %{_sysconfdir}/jupyter/nbconfig/notebook.d/jupyter-scales.json + +%files -n python3-jupyter_ipyscales_jupyterlab +%license LICENSE.txt +%{_datadir}/jupyter/lab/extensions/jupyterlab-scales-%{labver}.tgz + %changelog ++++++ LICENSE.txt ++++++ BSD 3-Clause License Copyright (c) 2017, Jupyter Development Team All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.