#2 Update to 5.3.4 (#1759726), run tests in %check
Merged 10 days ago by churchyard. Opened a month ago by churchyard.
rpms/ churchyard/python-jupyter-client 5.3.4  into  master

file modified
+3

@@ -1,1 +1,4 @@ 

  /jupyter_client-*.tar.gz

+ /jupyter_client-*/

+ /results_python-jupyter-client/

+ *.rpm

file modified
+27 -3

@@ -1,9 +1,8 @@ 

- # Created by pyp2rpm-3.0.1

  %global pypi_name jupyter_client

  %global pypi_name_dash jupyter-client

  

  Name:           python-%{pypi_name_dash}

- Version:        5.3.3

+ Version:        5.3.4

  Release:        1%{?dist}

  Summary:        Jupyter protocol implementation and client libraries

  

@@ -19,6 +18,7 @@ 

  BuildRequires:  python3-devel

  

  %bcond_without doc

+ %bcond_without tests

  

  %if %{with doc}

  BuildRequires:  python3-sphinx

@@ -34,6 +34,16 @@ 

  BuildRequires:  python3-zmq

  %endif

  

+ %if %{with tests}

+ BuildRequires:  python3-dateutil

+ BuildRequires:  python3-ipykernel

+ BuildRequires:  python3-ipython

+ BuildRequires:  python3-jupyter-core >= 4.6

+ BuildRequires:  python3-pytest

+ BuildRequires:  python3-tornado

+ BuildRequires:  python3-zmq-tests

+ %endif

+ 

  %description

  This package contains the reference implementation of the Jupyter protocol.

  It also provides client and kernel management APIs for working with kernels.

@@ -70,6 +80,7 @@ 

  sed -i "s|\(('http://ipython.readthedocs.io/en/stable/', \)None)|\1'/usr/share/doc/python3-ipython-doc/html/objects.inv')|" docs/conf.py

  %endif

  

+ 

  %build

  %py3_build

  

@@ -79,10 +90,19 @@ 

  rm -r html/.{doctrees,buildinfo}

  %endif

  

+ 

  %install

  %py3_install

  

  

+ %if %{with tests}

+ %check

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

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

+ pytest-3 -v

Why not python3 -m pytest?

unfortunately, python -m pytest puts pwd in sys.path

+ %endif

+ 

+ 

  %global _docdir_fmt %{name}

  

  %files -n python3-%{pypi_name_dash}

@@ -91,7 +111,7 @@ 

  %{_bindir}/jupyter-kernel

  %{_bindir}/jupyter-kernelspec

  %{_bindir}/jupyter-run

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

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

  %{python3_sitelib}/%{pypi_name}/

  

  %if %{with doc}

@@ -100,6 +120,10 @@ 

  %endif

  

  %changelog

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

+ - Update to 5.3.4 (#1759726)

+ - Run tests

+ 

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

  - Update to 5.3.3 (bz 1727659, also fixes bz 1755635)

  - Drop old workaround for dual python2/python3 builds

file modified
+1 -1

@@ -1,1 +1,1 @@ 

- SHA512 (jupyter_client-5.3.3.tar.gz) = d1654538d11e24762d6b98a36ed548dac28259fb9aa357b2e70d595f4f1876942132cd822c0d0fb8c294850cc9c404e2247bc05a71ce317318c2a099c0cd841c

+ SHA512 (jupyter_client-5.3.4.tar.gz) = 54b5206c08f5119feb50deb2d815d79a178799ad5c1231a0d03fc950ebbf6cb2f7c3a757024f788d416f808c57aa8476fcfa110f63182314bf2d5cdeb9a006cf