diff --git a/python-Mathics-relax-sympy-version.patch b/python-Mathics-relax-sympy-version.patch new file mode 100644 index 0000000..3296bad --- /dev/null +++ b/python-Mathics-relax-sympy-version.patch @@ -0,0 +1,13 @@ +Index: Mathics3-5.0.2/setup.py +=================================================================== +--- Mathics3-5.0.2.orig/setup.py ++++ Mathics3-5.0.2/setup.py +@@ -57,7 +57,7 @@ elif sys.version_info[:2] == (3, 6): + elif sys.version_info[:2] == (3, 7): + INSTALL_REQUIRES += ["numpy<1.22", "llvmlite", "sympy>=1.8, < 1.11"] + else: +- INSTALL_REQUIRES += ["numpy", "llvmlite", "sympy>=1.8, < 1.11"] ++ INSTALL_REQUIRES += ["numpy", "llvmlite", "sympy>=1.8, < 1.12"] + + if not is_PyPy: + INSTALL_REQUIRES += ["recordclass"] diff --git a/python-Mathics.changes b/python-Mathics.changes index aa7bda1..cc6f7ee 100644 --- a/python-Mathics.changes +++ b/python-Mathics.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Oct 23 04:51:56 UTC 2022 - Atri Bhattacharya + +- Add python-Mathics-relax-sympy-version.patch: Relax sympy + requirement to allow sympy >= 1.11. + ------------------------------------------------------------------- Mon Sep 19 12:47:11 UTC 2022 - pgajdos@suse.com diff --git a/python-Mathics.spec b/python-Mathics.spec index 96f4103..8cf3876 100644 --- a/python-Mathics.spec +++ b/python-Mathics.spec @@ -1,5 +1,5 @@ # -# spec file +# spec file for package python-Mathics # # Copyright (c) 2022 SUSE LLC # @@ -38,6 +38,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 +# PATCH-FEATURE-OPENSUSE python-Mathics-relax-sympy-version.patch badshah400@gmail.com -- Allow working with sympy version >= 1.11 +Patch0: python-Mathics-relax-sympy-version.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module Django >= 1.8} BuildRequires: %{python_module colorama} @@ -82,7 +84,7 @@ Provides: python-Mathics3 = %{version} Mathics is a general-purpose computer algebra system (CAS). It is meant to be a free, lightweight alternative to Mathematica. %prep -%setup -q -n %{pyname}-%{version} +%autosetup -p1 -n %{pyname}-%{version} # FIX SPURIOUS EXEC PERMISSIONS chmod -x ./mathics/data/ExampleData/{numberdata.csv,InventionNo1.xml}