Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-sympy for openSUSE:Factory 
checked in at 2022-05-26 18:43:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sympy (Old)
 and      /work/SRC/openSUSE:Factory/.python-sympy.new.2254 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sympy"

Thu May 26 18:43:45 2022 rev:28 rq:979052 version:1.10.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sympy/python-sympy.changes        
2022-05-23 15:51:42.982644723 +0200
+++ /work/SRC/openSUSE:Factory/.python-sympy.new.2254/python-sympy.changes      
2022-05-26 18:43:47.693159407 +0200
@@ -1,0 +2,7 @@
+Tue May 24 06:33:15 UTC 2022 - Matej Cepl <mc...@suse.com>
+
+- Add sympy_printing_ccode.patch eliminating sympy.printing.ccode
+  deprecated module, because it just stands in the way
+  (gh#sympy/sympy#23533)
+
+-------------------------------------------------------------------

New:
----
  sympy_printing_ccode.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-sympy.spec ++++++
--- /var/tmp/diff_new_pack.M59qdk/_old  2022-05-26 18:43:48.989160918 +0200
+++ /var/tmp/diff_new_pack.M59qdk/_new  2022-05-26 18:43:48.993160923 +0200
@@ -18,7 +18,8 @@
 
 %{?!python_module:%define python_module() python3-%{**}}
 %define skip_python2 1
-%bcond_with     test
+%define skip_python36 1
+%bcond_without  test
 Name:           python-sympy
 Version:        1.10.1
 Release:        0
@@ -28,6 +29,9 @@
 URL:            https://www.sympy.org/
 Source0:        
https://files.pythonhosted.org/packages/source/s/sympy/sympy-%{version}.tar.gz
 Source99:       python-sympy-rpmlintrc
+# PATCH-FIX-UPSTREAM sympy_printing_ccode.patch gh#sympy/sympy#23533 
mc...@suse.com
+# just eliminate already deprecated sympy.printing.ccode module
+Patch0:         sympy_printing_ccode.patch
 BuildRequires:  %{python_module mpmath >= 0.19}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -53,7 +57,8 @@
 any external libraries.
 
 %prep
-%setup -q -n sympy-%{version}
+%autosetup -p1 -n sympy-%{version}
+
 sed -i -e '/^#!\//, 1d' sympy/testing/tests/diagnose_imports.py
 
 %{python_expand cp -r examples examples-%{$python_bin_suffix}
@@ -88,8 +93,11 @@
 
 %if %{with test}
 %check
-export LANG=en_US.UTF-8
-%pytest
+# Don???t even dare to think that the pytest macro could manage
+# all complexities hidden in that specific command!
+%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} 
PYTHONDONTWRITEBYTECODE=1
+$python -c 'from sympy.testing import runtests ; runtests.run_all_tests()'
+}
 %endif
 
 %files %{python_files}

++++++ sympy_printing_ccode.patch ++++++
---
 sympy/printing/ccode.py          |   23 -----------------------
 sympy/printing/cxxcode.py        |   21 ---------------------
 sympy/printing/tests/test_c.py   |    6 ------
 sympy/printing/tests/test_cxx.py |    5 -----
 4 files changed, 55 deletions(-)

--- a/sympy/printing/ccode.py
+++ /dev/null
@@ -1,23 +0,0 @@
-"""
-.. deprecated:: 1.7
-
-   ccode.py was deprecated and renamed to c.py. This is a shim file to provide
-   backwards compatibility.
-
-"""
-
-from sympy.utilities.exceptions import sympy_deprecation_warning
-
-sympy_deprecation_warning(
-    """
-    The sympy.printing.ccode submodule is deprecated. It has been renamed to
-    sympy.printing.c.
-    """,
-    deprecated_since_version="1.7",
-    active_deprecations_target="deprecated-printing-code-submodules",
-)
-
-from .c import (ccode, print_ccode, known_functions_C89, known_functions_C99, 
# noqa:F401
-                reserved_words, reserved_words_c99, get_math_macros,
-                C89CodePrinter, C99CodePrinter, C11CodePrinter,
-                c_code_printers)
--- a/sympy/printing/cxxcode.py
+++ /dev/null
@@ -1,21 +0,0 @@
-"""
-.. deprecated:: 1.7
-
-   cxxcode.py was deprecated and renamed to cxx.py. This is a shim file to
-   provide backwards compatibility.
-
-"""
-
-from sympy.utilities.exceptions import sympy_deprecation_warning
-
-sympy_deprecation_warning(
-    """
-    The sympy.printing.cxxcode submodule is deprecated. It has been renamed to
-    sympy.printing.cxx.
-    """,
-    deprecated_since_version="1.7",
-    active_deprecations_target="deprecated-printing-code-submodules",
-)
-
-from .cxx import (cxxcode, reserved, CXX98CodePrinter, # noqa:F401
-                  CXX11CodePrinter, CXX17CodePrinter, cxx_code_printers)
--- a/sympy/printing/tests/test_c.py
+++ b/sympy/printing/tests/test_c.py
@@ -847,12 +847,6 @@ def test_ccode_codegen_ast():
         'return x;',
     ])
 
-def test_ccode_submodule():
-    # Test the compatibility sympy.printing.ccode module imports
-    with warns_deprecated_sympy():
-        import sympy.printing.ccode # noqa:F401
-
-
 def test_ccode_UnevaluatedExpr():
     assert ccode(UnevaluatedExpr(y * x) + z) == "z + x*y"
     assert ccode(UnevaluatedExpr(y + x) + z) == "z + (x + y)"  # gh-21955
--- a/sympy/printing/tests/test_cxx.py
+++ b/sympy/printing/tests/test_cxx.py
@@ -61,11 +61,6 @@ def test_CXX17CodePrinter():
 def test_cxxcode():
     assert sorted(cxxcode(sqrt(x)*.5).split('*')) == sorted(['0.5', 
'std::sqrt(x)'])
 
-def test_cxxcode_submodule():
-    # Test the compatibility sympy.printing.cxxcode module imports
-    with warns_deprecated_sympy():
-        import sympy.printing.cxxcode # noqa:F401
-
 def test_cxxcode_nested_minmax():
     assert cxxcode(Max(Min(x, y), Min(u, v))) \
         == 'std::max(std::min(u, v), std::min(x, y))'

Reply via email to