From e8d84dbae7eb153167e9db0a59080616ae27bd6877750486e3eeabcfa4878eda Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Wed, 20 Jul 2022 10:41:38 +0000 Subject: [PATCH] Accepting request 989641 from home:badshah400:branches:science Add python-Mathics-relax-sympy-versions.patch -- Relax required sympy versions, to enable tests to run on openSUSE >= 1550 where python-sympy is at version 1.10.x already. OBS-URL: https://build.opensuse.org/request/show/989641 OBS-URL: https://build.opensuse.org/package/show/science/python-Mathics?expand=0&rev=18 --- python-Mathics-relax-sympy-versions.patch | 13 +++++++++++++ python-Mathics.changes | 7 +++++++ python-Mathics.spec | 5 ++++- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 python-Mathics-relax-sympy-versions.patch diff --git a/python-Mathics-relax-sympy-versions.patch b/python-Mathics-relax-sympy-versions.patch new file mode 100644 index 0000000..fe7f94b --- /dev/null +++ b/python-Mathics-relax-sympy-versions.patch @@ -0,0 +1,13 @@ +Index: Mathics-4.0.0/setup.py +=================================================================== +--- Mathics-4.0.0.orig/setup.py ++++ Mathics-4.0.0/setup.py +@@ -105,7 +105,7 @@ else: + # General Requirements + INSTALL_REQUIRES += [ + "Mathics_Scanner>=1.2.1,<1.3.0", +- "sympy>=1.8, <= 1.9dev", ++ "sympy>=1.8", + "mpmath>=1.2.0", + "numpy", + "palettable", diff --git a/python-Mathics.changes b/python-Mathics.changes index 3a512a0..2c2efd8 100644 --- a/python-Mathics.changes +++ b/python-Mathics.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Jul 17 00:51:00 UTC 2022 - Atri Bhattacharya + +- Add python-Mathics-relax-sympy-versions.patch -- Relax required + sympy versions, to enable tests to run on openSUSE >= 1550 where + python-sympy is at version 1.10.x already. + ------------------------------------------------------------------- Tue Mar 22 19:41:00 UTC 2022 - Atri Bhattacharya diff --git a/python-Mathics.spec b/python-Mathics.spec index 1b9b2f3..30bd890 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 # @@ -40,6 +40,8 @@ URL: https://mathics.github.io/ Source: https://github.com/mathics/Mathics/archive/%{version}/%{pyname}-%{version}.tar.gz # PATCH-FIX-UPSTREAM Revert version jump to dev branch Patch0: https://github.com/Mathics3/mathics-core/commit/41dee8c9dd7b979a4d77d38a1e8fe8dc75b7638c.patch +# PATCH-FIX-UPSTREAM python-Mathics-relax-sympy-versions.patch badshah400@gmail.com -- Relax required sympy versions, to enable tests to run on openSUSE >= 1550 where sympy is at version 1.10.x already +Patch1: python-Mathics-relax-sympy-versions.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module Django >= 1.8} BuildRequires: %{python_module colorama} @@ -86,6 +88,7 @@ Mathics is a general-purpose computer algebra system (CAS). It is meant to be a %prep %setup -q -n Mathics-%{version} %patch0 -p1 -R +%patch1 -p1 # FIX SPURIOUS EXEC PERMISSIONS chmod -x ./mathics/data/ExampleData/{numberdata.csv,InventionNo1.xml}