#2 Update to 4.6.1 (#1759630), run tests in %check
Merged 4 years ago by churchyard. Opened 4 years ago by churchyard.
rpms/ churchyard/python-jupyter-core 4.6.x  into  master

file modified
+3
@@ -1,1 +1,4 @@ 

  /jupyter_core-*.tar.gz

+ /jupyter_core-*/

+ /results_python-jupyter-core/

+ *.rpm

file modified
+28 -3
@@ -1,9 +1,8 @@ 

- # Created by pyp2rpm-3.0.1

  %global pypi_name jupyter_core

  %global pypi_name_dash jupyter-core

  

  Name:           python-%{pypi_name_dash}

- Version:        4.5.0

+ Version:        4.6.1

  Release:        1%{?dist}

  Summary:        The base package for Jupyter projects

  
@@ -18,6 +17,14 @@ 

  BuildRequires:  python%{python3_pkgversion}-docs

  BuildRequires:  python%{python3_pkgversion}-sphinxcontrib-github-alt

  

+ %bcond_without tests

+ %if %{with tests}

+ BuildRequires:  python%{python3_pkgversion}-ipython_genutils

+ BuildRequires:  python%{python3_pkgversion}-nose

+ BuildRequires:  python%{python3_pkgversion}-pytest

+ BuildRequires:  python%{python3_pkgversion}-traitlets

+ %endif

+ 

  %description

  Core common functionality of Jupyter projects.

  
@@ -54,6 +61,7 @@ 

  # Use local objects.inv for intersphinx:

  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

  

+ 

  %build

  %py3_build

  # generate html docs
@@ -61,6 +69,7 @@ 

  # remove the sphinx-build leftovers

  rm -rf html/.{doctrees,buildinfo}

  

+ 

  %install

  %py3_install

  
@@ -77,6 +86,18 @@ 

  mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/terminal.d

  mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/tree.d

  

+ 

+ %if %{with tests}

+ %check

+ export PYTHONPATH=%{buildroot}%{python3_sitelib}

+ export PATH="%{buildroot}%{_bindir}:$PATH"

+ # deselected tests unset the above variables and can only run when installed

+ pytest-3 -v \

+     --deselect "jupyter_core/tests/test_command.py::test_not_on_path" \

+     --deselect "jupyter_core/tests/test_command.py::test_path_priority" \

+ %endif

+ 

+ 

  %global _docdir_fmt %{name}

  

  %files -n python%{python3_pkgversion}-%{pypi_name_dash}
@@ -88,7 +109,7 @@ 

  

  %{python3_sitelib}/__pycache__/*

  %{python3_sitelib}/jupyter.py

- %{python3_sitelib}/%{pypi_name}-%{version}-py?.*.egg-info

+ %{python3_sitelib}/%{pypi_name}-%{version}-py?.*.egg-info/

  %{python3_sitelib}/%{pypi_name}/

  

  %files -n python-%{pypi_name_dash}-doc
@@ -99,6 +120,10 @@ 

  %{_sysconfdir}/jupyter

  

  %changelog

+ * Tue Nov 12 2019 Miro Hrončok <mhroncok@redhat.com> - 4.6.1-1

+ - Update to 4.6.1 (#1759630)

+ - Run tests

+ 

  * Thu Sep 26 2019 Jerry James <loganjerry@gmail.com> - 4.5.0-1

  - Update to 4.5.0 (bz 1722169)

  - Drop obsoletes and conflicts needed for EOL versions of Fedora

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (jupyter_core-4.5.0.tar.gz) = c22f3cd61aac8fbcad31e0e420854dc43e2a414284e1c2657b180870e3ecc0ce2ff0e2bc7262b9b37786f31b6f7e094d6998a49b68bad6b0f6bac59c789a14e6

+ SHA512 (jupyter_core-4.6.1.tar.gz) = baf0c5db4f78a3cee83940ace80b48ba308c47eeafcf584120b8ba82768c15448fb789ec5b9ac8d541cbd1bfdd47a988f79130675c5943a67d3135d428b43cbe