Sync from SUSE:ALP:Source:Standard:1.0 python-nbval revision 5e053062d07fa88dd2c9335fd4dc2cf5
This commit is contained in:
commit
f34f1b6453
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
BIN
nbval-0.10.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
nbval-0.10.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
105
python-nbval.changes
Normal file
105
python-nbval.changes
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 15 20:30:34 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to 0.10.0
|
||||||
|
* no release notes
|
||||||
|
- Drop nbval-filter-mpldeprecation.patch
|
||||||
|
- Drop nbval-sanitize-figure-size.patch
|
||||||
|
- Drop 0001-Make-tests-pass-with-ipykernel-6.0.0.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 20 17:48:52 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Remove python36 skiptest code
|
||||||
|
- Add nbval-sanitize-figure-size.patch
|
||||||
|
* gh#computationalmodelling/nbval#183
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 15 18:46:36 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Multibuild test flavor: avoid (possible) build cycle
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 29 13:12:23 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Add 0001-Make-tests-pass-with-ipykernel-6.0.0.patch from Arch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 14 13:53:04 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Add nbval-filter-mpldeprecation.patch for new Matplotlib 3.4
|
||||||
|
deprecation warnings -- gh#computationalmodelling/nbval#167
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Update to 0.9.6
|
||||||
|
* fix compatibility with pytest >= 6 and python 3.8
|
||||||
|
- enable tests
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 15 12:52:44 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Provide the old jupyter package name only for the primary
|
||||||
|
Python3 interpreter -- gh#openSUSE/python-rpm-macros#66
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 24 15:50:14 UTC 2020 - Todd R <toddrme2178@gmail.com>
|
||||||
|
|
||||||
|
- Update to 0.9.5
|
||||||
|
* Add Python 3.8 to Appveyor
|
||||||
|
* Allow Python nightly fail in Travis
|
||||||
|
* Fix coverage for coverage.py >=5
|
||||||
|
* Add Python 3.8 to Travis
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 15 15:07:57 UTC 2020 - Todd R <toddrme2178@gmail.com>
|
||||||
|
|
||||||
|
- Update to 0.9.4
|
||||||
|
* Mark nbval as incompatible with coverage
|
||||||
|
* Workaround for Python 3.7 on Travis no longer needed
|
||||||
|
* Drop Python 2.7 testing on Windows again
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 12 17:32:31 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
||||||
|
|
||||||
|
- Update to 0.9.3
|
||||||
|
* Use a MULTILINE anchored regex when removing carriage returns
|
||||||
|
- Drop python2 support due to python-notebook dropping python2 support
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 29 02:33:24 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
||||||
|
|
||||||
|
- Update to 0.9.2
|
||||||
|
* Update latex tests' output
|
||||||
|
* Do not compare widget views
|
||||||
|
* Replace deprecated warning API
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 25 01:59:57 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
||||||
|
|
||||||
|
- Rename to to match python package naming guidelines.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 2 17:25:44 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Update to 0.9.1
|
||||||
|
* Only pass absolute config path if config file exists
|
||||||
|
* Ignore .pytest_cache
|
||||||
|
* Mark cells in generated notebook as run
|
||||||
|
* Rerun sample notebook
|
||||||
|
* Pass coverage config file by absolute path
|
||||||
|
* Respect the --color=no option
|
||||||
|
* Ensure test works on python 2
|
||||||
|
* Optionally mark run cells with exc. count in tests
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 20 20:41:39 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Initial version
|
110
python-nbval.spec
Normal file
110
python-nbval.spec
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
#
|
||||||
|
# spec file
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%define skip_python2 1
|
||||||
|
Name: python-nbval%{psuffix}
|
||||||
|
Version: 0.10.0
|
||||||
|
Release: 0
|
||||||
|
Summary: A pytest plugin to validate Jupyter notebooks
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
URL: https://github.com/computationalmodelling/nbval
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/n/nbval/nbval-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module base >= 3.6}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-coverage
|
||||||
|
Requires: python-ipykernel
|
||||||
|
Requires: python-jupyter-client
|
||||||
|
Requires: python-nbformat
|
||||||
|
Requires: python-pytest >= 2.8
|
||||||
|
Provides: python-jupyter_nbval = %{version}
|
||||||
|
Obsoletes: python-jupyter_nbval < %{version}
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module matplotlib}
|
||||||
|
BuildRequires: %{python_module nbdime}
|
||||||
|
BuildRequires: %{python_module nbval = %{version}}
|
||||||
|
BuildRequires: %{python_module pytest-cov}
|
||||||
|
BuildRequires: %{python_module pytest-mock}
|
||||||
|
BuildRequires: %{python_module sympy}
|
||||||
|
%endif
|
||||||
|
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
|
||||||
|
Provides: jupyter-nbval = %{version}
|
||||||
|
%endif
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
The plugin adds functionality to py.test to recognise and collect
|
||||||
|
Jupyter notebooks. The intended purpose of the tests is to determine
|
||||||
|
whether execution of the stored inputs match the stored outputs of
|
||||||
|
the .ipynb file. Whilst also ensuring that the notebooks are running
|
||||||
|
without errors.
|
||||||
|
|
||||||
|
The tests were designed to ensure that Jupyter notebooks (especially
|
||||||
|
those for reference and documentation), are executing consistently.
|
||||||
|
|
||||||
|
Each cell is taken as a test, a cell that doesn't reproduce the
|
||||||
|
expected output will fail.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n nbval-%{version}
|
||||||
|
sed -i 's/\r$//' README.md
|
||||||
|
|
||||||
|
%if ! %{with test}
|
||||||
|
%build
|
||||||
|
export LANG=en_US.UTF-8
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
export LANG=en_US.UTF-8
|
||||||
|
%pyproject_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
|
%check
|
||||||
|
# see dodo.py for call signature
|
||||||
|
%{pytest tests/ --nbval \
|
||||||
|
--nbval-current-env \
|
||||||
|
--nbval-sanitize-with tests/sanitize_defaults.cfg \
|
||||||
|
--ignore tests/ipynb-test-samples
|
||||||
|
}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if ! %{with test}
|
||||||
|
%files %{python_files}
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{python_sitelib}/nbval
|
||||||
|
%{python_sitelib}/nbval-%{version}.dist-info
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user