[packages/python3-sympy] Up to 1.14.0

arekm arekm at pld-linux.org
Sun May 4 02:06:17 CEST 2025


commit 3998c9a63d7dc1a287dff27c47ee7c851b462da3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun May 4 00:12:39 2025 +0200

    Up to 1.14.0

 python3-sympy.spec    | 17 ++++++-----------
 sympy-nodisplay.patch | 50 --------------------------------------------------
 2 files changed, 6 insertions(+), 61 deletions(-)
---
diff --git a/python3-sympy.spec b/python3-sympy.spec
index 3a5bd51..963d6d6 100644
--- a/python3-sympy.spec
+++ b/python3-sympy.spec
@@ -6,15 +6,14 @@
 Summary:	Python 3 library for symbolic mathematics
 Summary(pl.UTF-8):	Biblioteka Pythona 3 do matematyki symbolicznej
 Name:		python3-sympy
-Version:	1.11.1
-Release:	3
+Version:	1.14.0
+Release:	1
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/sympy/
 Source0:	https://files.pythonhosted.org/packages/source/s/sympy/sympy-%{version}.tar.gz
-# Source0-md5:	232141d248ab4164e92c8ac59a996914
+# Source0-md5:	9872deb5bd7816dfbc89bec086b9e522
 Patch0:		docs-build.patch
-Patch1:		sympy-nodisplay.patch
 URL:		https://www.sympy.org/
 BuildRequires:	gettext
 BuildRequires:	graphviz
@@ -31,6 +30,7 @@ BuildRequires:	sed >= 4.0
 BuildRequires:	fonts-TTF-DejaVu
 BuildRequires:	pydoc3
 BuildRequires:	python3-furo
+BuildRequires:	python3-intersphinx_registry
 BuildRequires:	python3-linkify-it-py
 BuildRequires:	python3-matplotlib
 BuildRequires:	python3-mpmath >= 0.19
@@ -80,9 +80,10 @@ Dokumentacja do SymPy w formacie HTML.
 %prep
 %setup -q -n sympy-%{version}
 %patch -P 0 -p1
-%patch -P 1 -p1
 
 %build
+# some tests (for example such that require GUI) are not run on their CI systems, so use that
+export CI=true
 %py3_build %{?with_tests:test}
 
 %if %{with doc}
@@ -101,11 +102,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/isympy{,3}
 
-install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-sympy-%{version}
-cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/python3-sympy-%{version}
-find $RPM_BUILD_ROOT%{_examplesdir}/python3-sympy-%{version} -name '*.py' \
-	| xargs sed -i '1s|^#!.*python\b|#!%{__python3}|'
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -118,7 +114,6 @@ rm -rf $RPM_BUILD_ROOT
 %{py3_sitescriptdir}/sympy
 %{py3_sitescriptdir}/sympy-%{version}-*.egg-info
 %{_mandir}/man1/isympy.1*
-%{_examplesdir}/python3-sympy-%{version}
 
 %if %{with doc}
 %files doc
diff --git a/sympy-nodisplay.patch b/sympy-nodisplay.patch
deleted file mode 100644
index 0cb10e0..0000000
--- a/sympy-nodisplay.patch
+++ /dev/null
@@ -1,50 +0,0 @@
---- sympy-1.11.1/sympy/testing/runtests.py.orig	2022-08-27 22:12:08.667409400 +0200
-+++ sympy-1.11.1/sympy/testing/runtests.py	2023-01-12 21:28:47.662698943 +0100
-@@ -526,9 +526,11 @@ def _test(*paths,
-         # Travis times out if no activity is seen for 10 minutes.
-         timeout = 595
-         fail_on_timeout = True
--    if ON_TRAVIS:
-+    if ON_TRAVIS or os.getenv('DISPLAY', '') == '':
-         # pyglet does not work on Travis
--        blacklist = list(blacklist) + ['sympy/plotting/pygletplot/tests']
-+        blacklist = list(blacklist) + ['sympy/plotting/pygletplot/tests',
-+                                       'sympy/categories/tests/test_drawing.py',
-+                                       'sympy/printing/tests/test_preview.py']
-     blacklist = convert_to_native_paths(blacklist)
-     r = PyTestReporter(verbose=verbose, tb=tb, colors=colors,
-         force_colors=force_colors, split=split)
-@@ -698,8 +700,10 @@ def _get_doctest_blacklist():
-             import matplotlib
-             matplotlib.use('Agg')
- 
--    if ON_TRAVIS or import_module('pyglet') is None:
--        blacklist.extend(["sympy/plotting/pygletplot"])
-+    if ON_TRAVIS or os.getenv('DISPLAY', '') == '' or import_module('pyglet') is None:
-+        blacklist.extend(["sympy/plotting/pygletplot",
-+                          "sympy/categories/diagram_drawing.py",
-+                          "sympy/printing/preview.py"])
- 
-     if import_module('aesara') is None:
-         blacklist.extend([
---- sympy-1.11.1/sympy/core/tests/test_args.py.orig	2022-08-27 22:12:08.471407700 +0200
-+++ sympy-1.11.1/sympy/core/tests/test_args.py	2023-01-13 16:17:38.579102416 +0100
-@@ -26,6 +26,18 @@ a, b, c, x, y, z = symbols('a,b,c,x,y,z'
- whitelist = [
-      "sympy.assumptions.predicates",    # tested by test_predicates()
-      "sympy.assumptions.relation.equality",    # tested by test_predicates()
-+     "sympy.plotting.pygletplot.managed_window",  # requires DISPLAY to import
-+     "sympy.plotting.pygletplot.plot",
-+     "sympy.plotting.pygletplot.plot_axes",
-+     "sympy.plotting.pygletplot.plot_camera",
-+     "sympy.plotting.pygletplot.plot_controller",
-+     "sympy.plotting.pygletplot.plot_curve",
-+     "sympy.plotting.pygletplot.plot_mode_base",
-+     "sympy.plotting.pygletplot.plot_modes",
-+     "sympy.plotting.pygletplot.plot_rotation",
-+     "sympy.plotting.pygletplot.plot_surface",
-+     "sympy.plotting.pygletplot.plot_window",
-+     "sympy.plotting.pygletplot.util",
- ]
- 
- def test_all_classes_are_tested():
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-sympy.git/commitdiff/3998c9a63d7dc1a287dff27c47ee7c851b462da3



More information about the pld-cvs-commit mailing list