[packages/python3-sympy] - readded nodisplay patch - more docs dependencies
qboosh
qboosh at pld-linux.org
Fri Jan 13 22:43:37 CET 2023
commit 257dfe8fcd68e55b0409190523e42a26318154c4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Jan 13 22:44:46 2023 +0100
- readded nodisplay patch
- more docs dependencies
python3-sympy.spec | 7 +++++++
sympy-nodisplay.patch | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 57 insertions(+)
---
diff --git a/python3-sympy.spec b/python3-sympy.spec
index 613c464..5f245e9 100644
--- a/python3-sympy.spec
+++ b/python3-sympy.spec
@@ -14,6 +14,7 @@ Group: Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/s/sympy/sympy-%{version}.tar.gz
# Source0-md5: 232141d248ab4164e92c8ac59a996914
Patch0: docs-build.patch
+Patch1: sympy-nodisplay.patch
URL: https://www.sympy.org/
BuildRequires: gettext
BuildRequires: graphviz
@@ -29,9 +30,14 @@ BuildRequires: sed >= 4.0
%if %{with doc}
BuildRequires: fonts-TTF-DejaVu
BuildRequires: pydoc3
+BuildRequires: python3-furo
+BuildRequires: python3-linkify-it-py
BuildRequires: python3-matplotlib
BuildRequires: python3-mpmath >= 0.19
+BuildRequires: python3-myst-parser
+BuildRequires: python3-sphinx_copybutton
BuildRequires: python3-sphinx_math_dollar
+BuildRequires: python3-sphinx_reredirects
BuildRequires: sphinx-pdg-3
# for cmex/fmex9.pfb
BuildRequires: texlive-fonts-other
@@ -74,6 +80,7 @@ Dokumentacja do SymPy w formacie HTML.
%prep
%setup -q -n sympy-%{version}
%patch0 -p1
+%patch1 -p1
%build
%py3_build %{?with_tests:test}
diff --git a/sympy-nodisplay.patch b/sympy-nodisplay.patch
new file mode 100644
index 0000000..0cb10e0
--- /dev/null
+++ b/sympy-nodisplay.patch
@@ -0,0 +1,50 @@
+--- 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/257dfe8fcd68e55b0409190523e42a26318154c4
More information about the pld-cvs-commit
mailing list