]> git.pld-linux.org Git - packages/python-sympy.git/commitdiff
- up to 1.7.1, python 2 no longer supported
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 11 Mar 2021 22:32:30 +0000 (23:32 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 11 Mar 2021 22:32:30 +0000 (23:32 +0100)
python-sympy-nodisplay.patch [deleted file]
python-sympy.spec

diff --git a/python-sympy-nodisplay.patch b/python-sympy-nodisplay.patch
deleted file mode 100644 (file)
index 484e447..0000000
+++ /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:
index cb6d2e4a7c15518bb69628388424e0e9b56cc9f0..6c9214cb5d60c6cdba6f9d3c16af2933c9e975cf 100644 (file)
@@ -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}
This page took 0.075773 seconds and 4 git commands to generate.