| |
@@ -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
|
| |
https://bugzilla.redhat.com/show_bug.cgi?id=1759630