Accepting request 1108508 from home:badshah400:branches:science
* Disable cython-ised builds: not compatible with Cython 3+. * Add python-Mathics-relax-numpy-versions.patch to drop the upper limit on numpy versions. OBS-URL: https://build.opensuse.org/request/show/1108508 OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics?expand=0&rev=34
This commit is contained in:
@@ -39,7 +39,8 @@ Summary: A general-purpose computer algebra system
|
||||
License: Apache-2.0 AND BSD-3-Clause AND GPL-3.0-only AND MIT
|
||||
URL: https://mathics.github.io/
|
||||
Source0: https://github.com/Mathics3/mathics-core/releases/download/%{version}/%{pyname}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Cython}
|
||||
# PATCH-FEATURE-OPENSUSE python-Mathics-relax-numpy-versions.patch badshah400@gmail.com -- Drop upper limit on required numpy version
|
||||
Patch0: python-Mathics-relax-numpy-versions.patch
|
||||
BuildRequires: %{python_module Django >= 1.8}
|
||||
BuildRequires: %{python_module colorama}
|
||||
BuildRequires: %{python_module devel}
|
||||
@@ -51,7 +52,6 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module sympy >= 1.10.1}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Cython
|
||||
Requires: python-Django >= 1.8
|
||||
Requires: python-Mathics-Scanner >= 1.3.0
|
||||
Requires: python-Pint
|
||||
@@ -78,6 +78,7 @@ BuildRequires: %{python_module palettable}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module scikit-image >= 0.17}
|
||||
BuildRequires: %{python_module typing-extensions}
|
||||
# /SECTION
|
||||
%endif
|
||||
Provides: python-Mathics3 = %{version}
|
||||
@@ -99,23 +100,23 @@ popd
|
||||
|
||||
%build
|
||||
%if %{without test}
|
||||
export USE_CYTHON=1
|
||||
export USE_CYTHON=0
|
||||
%python_build
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if %{without test}
|
||||
export USE_CYTHON=1
|
||||
export USE_CYTHON=0
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/mathics
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
# Home page tests require django server up and running, test_gudermannian needs network access
|
||||
# test_image: https://github.com/Mathics3/mathics-core/issues/837
|
||||
%pytest_arch -k 'not (test_home_page or test_gudermannian or test_image)'
|
||||
%pytest -k 'not (test_home_page or test_gudermannian or test_image)'
|
||||
%endif
|
||||
|
||||
%if %{without test}
|
||||
@@ -129,8 +130,8 @@ export USE_CYTHON=1
|
||||
%license COPYING.txt
|
||||
%doc README.rst AUTHORS.txt
|
||||
%python_alternative %{_bindir}/mathics
|
||||
%{python_sitearch}/mathics/
|
||||
%{python_sitearch}/%{pyname}-%{version}-py%{python_version}.egg-info/
|
||||
%{python_sitelib}/mathics/
|
||||
%{python_sitelib}/%{pyname}-%{version}-py%{python_version}.egg-info/
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user