Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-graphviz for openSUSE:Factory 
checked in at 2023-12-07 19:09:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-graphviz (Old)
 and      /work/SRC/openSUSE:Factory/.python-graphviz.new.25432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-graphviz"

Thu Dec  7 19:09:21 2023 rev:15 rq:1131503 version:0.20.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-graphviz/python-graphviz.changes  
2023-04-22 22:01:35.573622682 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-graphviz.new.25432/python-graphviz.changes   
    2023-12-07 19:09:50.666016973 +0100
@@ -1,0 +2,5 @@
+Wed Dec  6 22:22:48 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- add python312-syntax-warning.patch for python 3.12 support
+
+-------------------------------------------------------------------

New:
----
  python312-syntax-warning.patch

BETA DEBUG BEGIN:
  New:
- add python312-syntax-warning.patch for python 3.12 support
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-graphviz.spec ++++++
--- /var/tmp/diff_new_pack.I9wEvg/_old  2023-12-07 19:09:51.146034681 +0100
+++ /var/tmp/diff_new_pack.I9wEvg/_new  2023-12-07 19:09:51.146034681 +0100
@@ -25,6 +25,7 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/xflr6/graphviz
 Source:         
https://files.pythonhosted.org/packages/source/g/graphviz/graphviz-%{version}.zip
+Patch1:         python312-syntax-warning.patch
 BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module pytest >= 6}
 BuildRequires:  %{python_module pytest-mock >= 3}
@@ -56,7 +57,7 @@
 displayed within IPython notebooks.
 
 %prep
-%autosetup -n graphviz-%{version}
+%autosetup -p1 -n graphviz-%{version}
 sed -i '/--cov/d' setup.cfg
 sed -i '/^mock_use_standalone_module/d' setup.cfg
 

++++++ python312-syntax-warning.patch ++++++
>From 5ce9fc5de4f2284baa27d7a8d68ab0885d032868 Mon Sep 17 00:00:00 2001
From: Sebastian Bank <sebastian.b...@uni-leipzig.de>
Date: Tue, 24 Oct 2023 20:39:52 +0200
Subject: [PATCH] expect SyntaxWarning in test_deprecated_escape() under Python
 3.12

https://docs.python.org/3.12/whatsnew/3.12.html#other-language-changes
---
 tests/test_quoting.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: graphviz-0.20.1/tests/test_quoting.py
===================================================================
--- graphviz-0.20.1.orig/tests/test_quoting.py
+++ graphviz-0.20.1/tests/test_quoting.py
@@ -1,3 +1,4 @@
+import sys
 import warnings
 
 import pytest
@@ -14,7 +15,8 @@ def test_deprecated_escape(recwarn, char
     escape = eval(rf'"\{char}"')
 
     assert len(recwarn) == 1
-    w = recwarn.pop(DeprecationWarning)
+    w = recwarn.pop(DeprecationWarning if sys.version_info < (3, 12)
+                    else SyntaxWarning)
     assert str(w.message).startswith('invalid escape sequence')
 
     assert escape == f'\\{char}'

Reply via email to