From d03ed1f329b73ff0013bfb4a87bfae0518327156 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Fri, 13 Sep 2019 12:58:19 -0600 Subject: [PATCH] Add one more patch to fix a python 3.8 warning. --- sympy-is.patch | 11 +++++++++++ sympy.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 sympy-is.patch diff --git a/sympy-is.patch b/sympy-is.patch new file mode 100644 index 0000000..3c2c2f3 --- /dev/null +++ b/sympy-is.patch @@ -0,0 +1,11 @@ +--- sympy-sympy-1.4/sympy/plotting/plot.py.orig 2019-09-13 11:48:00.776818488 -0600 ++++ sympy-sympy-1.4/sympy/plotting/plot.py 2019-09-13 11:49:54.122923162 -0600 +@@ -526,7 +526,7 @@ class LineOver1DRangeSeries(Line2DBaseSe + else: + list_segments.append([p, q]) + +- if self.xscale is 'log': ++ if self.xscale == 'log': + self.start=np.log10(self.start) + self.end=np.log10(self.end) + diff --git a/sympy.spec b/sympy.spec index b5ccdef..385771c 100644 --- a/sympy.spec +++ b/sympy.spec @@ -1,6 +1,6 @@ Name: sympy Version: 1.4 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A Python library for symbolic mathematics License: BSD URL: http://sympy.org/ @@ -22,6 +22,8 @@ Patch5: 0001-Modify-literal-comparisons-as-per-python3.8-guidelines.patc # Fix more compatibility issues with Python3.8. # https://github.com/sympy/sympy/commit/a193dcf9ed0715b3a0336e7d91460f338686c015 Patch6: 0001-Fix-more-compatibility-issues-with-Python3.8.patch +# Fix one more use of "is" instead of "==" for python 3.8 +Patch7: %{name}-is.patch BuildArch: noarch @@ -202,6 +204,9 @@ xvfb-run -a -n $dnum \ %{_docdir}/%{name}-doc/html %changelog +* Fri Sep 13 2019 Jerry James - 1.4-5 +- Add one more patch to fix a python 3.8 warning + * Sat Aug 24 2019 Robert-André Mauchin - 1.4-4 - Add patches to fix build with Python 3.8 and Numpy 1.17