| |
@@ -4,7 +4,7 @@
|
| |
%global _docdir_fmt %{name}
|
| |
|
| |
# Updating this package? Update the list of bundled things bellow
|
| |
- Version: 6.1.4
|
| |
+ Version: 6.1.6
|
| |
|
| |
# a tag like rc1, set to %%{nil} if stable
|
| |
%global tag %{nil}
|
| |
@@ -22,12 +22,6 @@
|
| |
# See BZ: 1581899, 1580129
|
| |
Patch0: 0001-Use-MathJax-TeX-fonts-rather-than-STIXWeb.patch
|
| |
|
| |
- # sphinx_rtd_theme is no longer a hard dependency since sphinx 1.4.0
|
| |
- # and must be listed between docs dependencies in setup.py to be
|
| |
- # detected by pyproject-rpm-macros.
|
| |
- # It was reported to upstream and can be removed once it is released.
|
| |
- Patch1: https://github.com/jupyter/notebook/commit/cdb103c3f097dd680fea3a2ea0391b01b744884a.patch
|
| |
-
|
| |
BuildArch: noarch
|
| |
|
| |
BuildRequires: python3-devel
|
| |
@@ -42,6 +36,10 @@
|
| |
# it is required to build the docs
|
| |
BuildRequires: python3-ipython-sphinx
|
| |
|
| |
+ # ipython_genutils/testing/decorators.py imports nose
|
| |
+ # https://github.com/jupyter/notebook/pull/5826#issuecomment-756231610
|
| |
+ BuildRequires: python3-nose
|
| |
+
|
| |
# for tests
|
| |
BuildRequires: pandoc
|
| |
|
| |
@@ -103,16 +101,12 @@
|
| |
%prep
|
| |
%autosetup -n %{pypi_name}-%{uversion} -S git
|
| |
|
| |
- # Nose plugins are needed for tests run with nose.
|
| |
- # Upstream supports it, but we don't need it since we use pytest.
|
| |
- # Note that unfortunately we still need nose itself because it is imported.
|
| |
- #
|
| |
# The nbval package is used for validation of notebooks.
|
| |
# It's sedded out because it isn't yet packaged in Fedora.
|
| |
#
|
| |
# Selenium tests are skipped.
|
| |
# We don't test coverage.
|
| |
- for pkg in nose_warnings_filters nose-exclude nbval selenium coverage pytest-cov; do
|
| |
+ for pkg in nbval selenium coverage pytest-cov; do
|
| |
sed -Ei "s/'$pkg',? ?//" setup.py
|
| |
done
|
| |
|
| |
@@ -132,10 +126,8 @@
|
| |
|
| |
%install
|
| |
%pyproject_install
|
| |
- %pyproject_save_files %{pypi_name}
|
| |
|
| |
- # https://github.com/jupyter/notebook/issues/2373
|
| |
- rm -f %{buildroot}%{_bindir}/less-watch
|
| |
+ # Don't use %%pyproject_save_files, because we'll change a lot
|
| |
|
| |
# unbundle stuff
|
| |
pushd %{buildroot}%{python3_sitelib}/%{pypi_name}/static/components
|
| |
@@ -161,6 +153,9 @@
|
| |
# Remove packaged tests
|
| |
rm -rv $(find %{buildroot}%{python3_sitelib}/%{pypi_name} -type d -name tests)
|
| |
|
| |
+ # Remove .po files
|
| |
+ rm -v $(find %{buildroot}%{python3_sitelib}/%{pypi_name}/i18n -type f -name '*.po')
|
| |
+
|
| |
|
| |
%check
|
| |
# Workaround: OSError: [Errno 18] Invalid cross-device link: b'/tmp/...' -> b'/builddir/.local/share/Trash/files/...'
|
| |
@@ -180,13 +175,29 @@
|
| |
end
|
| |
|
| |
|
| |
- %files -n python3-%{pypi_name} -f %{pyproject_files}
|
| |
+ %files -n python3-%{pypi_name}
|
| |
%doc README.md
|
| |
%license LICENSE
|
| |
%{_bindir}/jupyter-bundlerextension
|
| |
%{_bindir}/jupyter-nbextension
|
| |
%{_bindir}/jupyter-serverextension
|
| |
%{_bindir}/jupyter-notebook
|
| |
+ %{python3_sitelib}/notebook-%{version}.dist-info/
|
| |
+
|
| |
+ # Exclude i18n:
|
| |
+ %dir %{python3_sitelib}/notebook/
|
| |
+ %{python3_sitelib}/notebook/[_a-hj-z]*
|
| |
+
|
| |
+ # Language files (could be scripted, but is short)
|
| |
+ %dir %{python3_sitelib}/notebook/i18n/
|
| |
+ %{python3_sitelib}/notebook/i18n/*.py
|
| |
+ %{python3_sitelib}/notebook/i18n/__pycache__/
|
| |
+ %lang(fr) %{python3_sitelib}/notebook/i18n/fr_FR/
|
| |
+ %lang(ja) %{python3_sitelib}/notebook/i18n/ja_JP/
|
| |
+ %lang(nl) %{python3_sitelib}/notebook/i18n/nl/
|
| |
+ %lang(ru) %{python3_sitelib}/notebook/i18n/ru_RU/
|
| |
+ %lang(zh) %{python3_sitelib}/notebook/i18n/zh_CN/
|
| |
+
|
| |
|
| |
%files -n python-%{pypi_name}-doc
|
| |
%doc html
|
| |
@@ -194,6 +205,10 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Thu Jan 07 2021 Miro Hrončok <mhroncok@redhat.com> - 6.1.6-1
|
| |
+ - Update to 6.1.6
|
| |
+ - Fixes: rhbz#1895357
|
| |
+
|
| |
* Thu Sep 10 2020 Tomas Hrnciar <thrnciar@redhat.com> - 6.1.4-1
|
| |
- Update to 6.1.4
|
| |
- fixes rhbz#1844874
|
| |
See individual commits.
https://copr.fedorainfracloud.org/coprs/churchyard/jupyter-notebook-update/builds/
https://copr.fedorainfracloud.org/coprs/churchyard/jupyter-notebook-control/builds/