[packages/python-sympy] - up to 1.7.1, python 2 no longer supported

baggins baggins at pld-linux.org
Thu Mar 11 23:32:52 CET 2021


commit a7afb2642f193eb728569b130fd57bdc8acadd02
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Mar 11 23:32:30 2021 +0100

    - up to 1.7.1, python 2 no longer supported

 python-sympy-nodisplay.patch | 25 -------------------------
 python-sympy.spec            |  8 +++-----
 2 files changed, 3 insertions(+), 30 deletions(-)
---
diff --git a/python-sympy.spec b/python-sympy.spec
index cb6d2e4..6c9214c 100644
--- a/python-sympy.spec
+++ b/python-sympy.spec
@@ -2,20 +2,19 @@
 # Conditional build:
 %bcond_without	doc	# HTML and PDF documentation
 %bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
+%bcond_with	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.5.1
+Version:	1.7.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:	b11b310c3e1642bf66e51038cb3c0021
-Patch0:		%{name}-nodisplay.patch
+# Source0-md5:	f5973bcbe33fdc86203ca397cc901994
 URL:		https://www.sympy.org/
 BuildRequires:	gettext
 BuildRequires:	graphviz
@@ -103,7 +102,6 @@ Dokumentacja do SymPy w formacie HTML.
 
 %prep
 %setup -q -n sympy-%{version}
-%patch0 -p1
 
 %build
 %if %{with python2}
diff --git a/python-sympy-nodisplay.patch b/python-sympy-nodisplay.patch
deleted file mode 100644
index 484e447..0000000
--- a/python-sympy-nodisplay.patch
+++ /dev/null
@@ -1,25 +0,0 @@
---- 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/a7afb2642f193eb728569b130fd57bdc8acadd02



More information about the pld-cvs-commit mailing list