forked from pool/python-coconut
- Fix install requirements
- Add optional tests, but disabled by default, we can use a _multibuild in the future and enable some tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coconut?expand=0&rev=24
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 21 11:25:20 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Fix install requirements
|
||||
- Add optional tests, but disabled by default, we can use a
|
||||
_multibuild in the future and enable some tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 12 12:55:20 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_with tests
|
||||
|
||||
# coconut is a programming language, not a python module
|
||||
%define pythons python3
|
||||
Name: python-coconut
|
||||
@@ -31,20 +33,27 @@ BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
Requires: cPyparsing
|
||||
Requires: psutil
|
||||
Requires: python-Pygments
|
||||
Requires: python-anyio
|
||||
Requires: python-async_generator
|
||||
Requires: python-cPyparsing >= 2.4.7.2.4.0
|
||||
Requires: python-prompt_toolkit >= 3
|
||||
Requires: python-psutil
|
||||
Requires: python-setuptools
|
||||
Requires: python-typing_extensions
|
||||
Requires: setuptools
|
||||
Recommends: python-jupyter
|
||||
Recommends: python-papermill
|
||||
%if %{with tests}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module anyio}
|
||||
BuildRequires: %{python_module async_generator}
|
||||
BuildRequires: %{python_module cPyparsing >= 2.4.7.2.4.0}
|
||||
BuildRequires: %{python_module pexpect}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module prompt_toolkit >= 3}
|
||||
BuildRequires: %{python_module psutil}
|
||||
BuildRequires: %{python_module typing_extensions}
|
||||
%endif
|
||||
# /SECTION
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
@@ -74,6 +83,10 @@ rm %{buildroot}/usr/share/jupyter/kernels/coconut/kernel.json
|
||||
%fdupes %{buildroot}%{_bindir}
|
||||
|
||||
%check
|
||||
%if %{with tests}
|
||||
donttest="test_find_packages"
|
||||
%pytest --strict-markers -s -k "not $donttest" ./coconut/tests
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst CONTRIBUTING.md DOCS.md FAQ.md HELP.md
|
||||
|
||||
Reference in New Issue
Block a user