SHA256
1
0
forked from pool/python-nbval

Accepting request 875544 from home:bnavigator:branches:devel:languages:python:jupyter

- Don't test numpy and matplotlib with Python 3.6: There is no
  python36-numpy and python36-matplotlib in TW. (NEP 29)

OBS-URL: https://build.opensuse.org/request/show/875544
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbval?expand=0&rev=15
This commit is contained in:
Markéta Machová 2021-03-01 09:41:30 +00:00 committed by Git OBS Bridge
parent 7565424685
commit 5a15a1a5f0
2 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 26 22:34:46 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Don't test numpy and matplotlib with Python 3.6: There is no
python36-numpy and python36-matplotlib in TW. (NEP 29)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 17 12:12:35 UTC 2020 - Benjamin Greiner <code@bnavigator.de> Thu Dec 17 12:12:35 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-nbval # spec file for package python-nbval
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -36,7 +36,6 @@ Requires: python-jupyter-client
Requires: python-nbdime Requires: python-nbdime
Requires: python-nbformat Requires: python-nbformat
Requires: python-pytest >= 2.8 Requires: python-pytest >= 2.8
Requires: python-six
Recommends: python-matplotlib Recommends: python-matplotlib
Recommends: python-pytest-cov Recommends: python-pytest-cov
Recommends: python-pytest-timeout Recommends: python-pytest-timeout
@ -49,7 +48,6 @@ BuildRequires: %{python_module certifi}
BuildRequires: %{python_module coverage} BuildRequires: %{python_module coverage}
BuildRequires: %{python_module ipykernel} BuildRequires: %{python_module ipykernel}
BuildRequires: %{python_module jupyter-client} BuildRequires: %{python_module jupyter-client}
BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module nbdime} BuildRequires: %{python_module nbdime}
BuildRequires: %{python_module nbformat} BuildRequires: %{python_module nbformat}
BuildRequires: %{python_module notebook} BuildRequires: %{python_module notebook}
@ -57,8 +55,8 @@ BuildRequires: %{python_module pyinotify}
BuildRequires: %{python_module pytest >= 2.8} BuildRequires: %{python_module pytest >= 2.8}
BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-timeout} BuildRequires: %{python_module pytest-timeout}
BuildRequires: %{python_module six}
BuildRequires: %{python_module sympy} BuildRequires: %{python_module sympy}
BuildRequires: %{python_module matplotlib if (%python-base without python36-base)}
# /SECTION # /SECTION
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3" %if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
Provides: jupyter-nbval = %{version} Provides: jupyter-nbval = %{version}
@ -92,8 +90,14 @@ export LANG=en_US.UTF-8
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
# see dodo.py python36_donttest="(sample_notebook and 9) or (test_coalesce and 5)"
%pytest tests/ --nbval --current-env --sanitize-with tests/sanitize_defaults.cfg --ignore tests/ipynb-test-samples # see dodo.py for call signature
%{pytest tests/ --nbval \
--current-env \
--sanitize-with tests/sanitize_defaults.cfg \
--ignore tests/ipynb-test-samples \
${$python_donttest:+ -k "not (${$python_donttest})"}
}
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md