[packages/python-sympy] - brought last python2 version here
qboosh
qboosh at pld-linux.org
Thu Jan 5 20:05:01 CET 2023
commit 0e6e01bb4fa3c9533ec3b4d8474e1eb2c111c9c2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jan 5 18:14:44 2023 +0100
- brought last python2 version here
docs-build.patch | 10 ----------
python-sympy-nodisplay.patch | 25 +++++++++++++++++++++++++
python-sympy.spec | 17 ++++++++---------
3 files changed, 33 insertions(+), 19 deletions(-)
---
diff --git a/python-sympy.spec b/python-sympy.spec
index 4376889..cb6d2e4 100644
--- a/python-sympy.spec
+++ b/python-sympy.spec
@@ -2,20 +2,20 @@
# Conditional build:
%bcond_without doc # HTML and PDF documentation
%bcond_without tests # unit tests
-%bcond_with python2 # CPython 2.x module
+%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
Summary: Python 2 library for symbolic mathematics
Summary(pl.UTF-8): Biblioteka Pythona 2 do matematyki symbolicznej
Name: python-sympy
-Version: 1.7.1
-Release: 3
+Version: 1.5.1
+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: f5973bcbe33fdc86203ca397cc901994
-Patch0: docs-build.patch
+# Source0-md5: b11b310c3e1642bf66e51038cb3c0021
+Patch0: %{name}-nodisplay.patch
URL: https://www.sympy.org/
BuildRequires: gettext
BuildRequires: graphviz
@@ -40,7 +40,6 @@ BuildRequires: python3-numpy
%endif
%endif
%if %{with doc}
-BuildRequires: fonts-TTF-DejaVu
BuildRequires: pydoc3
BuildRequires: python3-matplotlib
BuildRequires: python3-mpmath >= 0.19
@@ -155,24 +154,24 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc AUTHORS LICENSE README.md
+%doc AUTHORS LICENSE README.rst
%attr(755,root,root) %{_bindir}/isympy
%{py_sitescriptdir}/isympy.py[co]
%{py_sitescriptdir}/sympy
%{py_sitescriptdir}/sympy-%{version}-*.egg-info
+%{_mandir}/man1/isympy.1*
%{_examplesdir}/%{name}-%{version}
%endif
%if %{with python3}
%files -n python3-sympy
%defattr(644,root,root,755)
-%doc AUTHORS LICENSE README.md
+%doc AUTHORS LICENSE README.rst
%attr(755,root,root) %{_bindir}/isympy3
%{py3_sitescriptdir}/isympy.py
%{py3_sitescriptdir}/__pycache__/isympy.cpython-*.py[co]
%{py3_sitescriptdir}/sympy
%{py3_sitescriptdir}/sympy-%{version}-*.egg-info
-%{_mandir}/man1/isympy.1*
%{_examplesdir}/python3-sympy-%{version}
%endif
diff --git a/docs-build.patch b/docs-build.patch
deleted file mode 100644
index 6052705..0000000
--- a/docs-build.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- sympy-1.7.1/doc/Makefile~ 2020-11-18 01:03:10.000000000 +0100
-+++ sympy-1.7.1/doc/Makefile 2021-03-12 09:34:45.978437636 +0100
-@@ -44,7 +44,6 @@
- -rm -rf sphinx
- -rm -f $(PDFFILES)
-
--html: SPHINXOPTS += -W --keep-going
- html: _build/logo/sympy-notailtext-favicon.ico
- mkdir -p src/.static
- mkdir -p _build/html
diff --git a/python-sympy-nodisplay.patch b/python-sympy-nodisplay.patch
new file mode 100644
index 0000000..484e447
--- /dev/null
+++ b/python-sympy-nodisplay.patch
@@ -0,0 +1,25 @@
+--- sympy-1.5.1/sympy/utilities/runtests.py.orig 2019-12-21 00:38:01.000000000 +0100
++++ sympy-1.5.1/sympy/utilities/runtests.py 2020-04-08 21:39:01.146014778 +0200
+@@ -524,8 +524,10 @@
+ split = kwargs.get('split', None)
+ time_balance = kwargs.get('time_balance', True)
+ blacklist = kwargs.get('blacklist', ['sympy/integrals/rubi/rubi_tests/tests'])
+- if ON_TRAVIS:
++ if ON_TRAVIS or os.getenv('DISPLAY', '') == '':
+ # pyglet does not work on Travis
++ blacklist.extend('sympy/categories/tests/test_drawing.py')
++ blacklist.extend('sympy/printing/tests/test_preview.py')
+ blacklist.extend(['sympy/plotting/pygletplot/tests'])
+ blacklist = convert_to_native_paths(blacklist)
+ fast_threshold = kwargs.get('fast_threshold', None)
+@@ -702,7 +704,9 @@
+ import matplotlib
+ matplotlib.use('Agg')
+
+- if ON_TRAVIS or import_module('pyglet') is None:
++ if ON_TRAVIS or os.getenv('DISPLAY', '') == '' or import_module('pyglet') is None:
++ blacklist.extend(["sympy/categories/diagram_drawing.py"])
++ blacklist.extend(["sympy/printing/preview.py"])
+ blacklist.extend(["sympy/plotting/pygletplot"])
+
+ if import_module('theano') is None:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-sympy.git/commitdiff/036164a8192997c08bab363c853256c8217d6ed4
More information about the pld-cvs-commit
mailing list