forked from pool/python-Mathics
Accepting request 1109014 from science
OBS-URL: https://build.opensuse.org/request/show/1109014 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Mathics?expand=0&rev=17
This commit is contained in:
13
python-Mathics-relax-numpy-versions.patch
Normal file
13
python-Mathics-relax-numpy-versions.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: Mathics3-6.0.2/setup.py
|
||||
===================================================================
|
||||
--- Mathics3-6.0.2.orig/setup.py
|
||||
+++ Mathics3-6.0.2/setup.py
|
||||
@@ -64,7 +64,7 @@ elif sys.version_info[:2] == (3, 6):
|
||||
sys.exit(-1)
|
||||
else:
|
||||
INSTALL_REQUIRES += [
|
||||
- "numpy<1.25",
|
||||
+ "numpy",
|
||||
"llvmlite",
|
||||
"sympy>=1.8",
|
||||
"pillow >= 9.2",
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 1 18:15:06 UTC 2023 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Disable cython-ised builds: not compatible with Cython 3+.
|
||||
- Add python-Mathics-relax-numpy-versions.patch to drop the upper
|
||||
limit on numpy versions.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 26 15:24:55 UTC 2023 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
|
||||
@@ -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