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 2021-12-16 21:18:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-graphviz (Old)
 and      /work/SRC/openSUSE:Factory/.python-graphviz.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-graphviz"

Thu Dec 16 21:18:41 2021 rev:11 rq:940341 version:0.19.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-graphviz/python-graphviz.changes  
2020-08-13 10:12:33.650581229 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-graphviz.new.2520/python-graphviz.changes    
    2021-12-16 21:18:45.746508685 +0100
@@ -1,0 +2,37 @@
+Mon Dec 13 15:16:48 UTC 2021 - Dominique Leuenberger <dims...@opensuse.org>
+
+- Add noto-sans-fonts: in order to have a reliable test suite with
+  pango 1.50, we need to have some fonts available.
+- Add python-graphviz-pytest.patch: Allow to run pytest directly,
+  instead of run-tests.py. Allows us to further use %%pytest
+  without workarounds. Patch will be part of the next version.
+
+-------------------------------------------------------------------
+Mon Dec 13 09:38:47 UTC 2021 - Dominique Leuenberger <dims...@opensuse.org>
+
+- Update to version 0.19.1:
+  + Fix undecoded CalledProcessError.stdout and .stderr when
+    .pipe() call with an encoding different from self.encoding
+    fails.
+  + Fix missing project root conftest.py in source distribution.
+  + Extend examples/graphviz-escapes.ipynb.
+  + Improve test coverage.
+  + Increase build scripts verbosity.
+
+-------------------------------------------------------------------
+Wed Dec  8 11:21:12 UTC 2021 - Dominique Leuenberger <dims...@opensuse.org>
+
+- Update to version 0.19:
+  + Add PendingDeprecationWarning to calls using positional
+    arguments that will be deprecated in a later version.
+  + Add keyword-only outfile argument to .render() and stand-alone
+    graphviz.render().
+  + Add graphviz.set_jupyter_format() to set the output format used
+    by the Jupyter visualization of graphviz.Graph,
+    graphviz.Digraph, and graphviz.Source.
+  + Add keyword-only raise_if_result_exists argument to .render()
+    and stand-alone graphviz.render().
+- For all intermediate releases between 0.14.1 and 0.19, please see
+  the packaged CHANGES.txt.
+
+-------------------------------------------------------------------

Old:
----
  graphviz-0.14.1.zip

New:
----
  graphviz-0.19.1.zip
  python-graphviz-pytest.patch

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

Other differences:
------------------
++++++ python-graphviz.spec ++++++
--- /var/tmp/diff_new_pack.BbM2xo/_old  2021-12-16 21:18:47.258509261 +0100
+++ /var/tmp/diff_new_pack.BbM2xo/_new  2021-12-16 21:18:47.266509264 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-graphviz
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,15 +18,16 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-graphviz
-Version:        0.14.1
+Version:        0.19.1
 Release:        0
 Summary:        Python interface for Graphviz
 License:        MIT
 Group:          Development/Languages/Python
 URL:            https://github.com/xflr6/graphviz
 Source:         
https://files.pythonhosted.org/packages/source/g/graphviz/graphviz-%{version}.zip
+Patch0:         python-graphviz-pytest.patch
 BuildRequires:  %{python_module mock >= 2}
-BuildRequires:  %{python_module pytest >= 3.4}
+BuildRequires:  %{python_module pytest >= 6}
 BuildRequires:  %{python_module pytest-cov}
 BuildRequires:  %{python_module pytest-mock >= 1.8}
 BuildRequires:  %{python_module setuptools}
@@ -34,6 +35,7 @@
 BuildRequires:  fdupes
 BuildRequires:  graphviz
 BuildRequires:  graphviz-gnome
+BuildRequires:  noto-sans-fonts
 BuildRequires:  python-rpm-macros
 BuildRequires:  unzip
 BuildRequires:  w3m
@@ -56,13 +58,10 @@
 displayed within IPython notebooks.
 
 %prep
-%setup -q -n graphviz-%{version}
+%autosetup -n graphviz-%{version}
 
 # Fix wrong-file-end-of-line-encoding
-dos2unix CHANGES.txt LICENSE.txt README.rst docs/*.rst
-
-# Remove hardcoded pytest version
-sed -i -e '/minversion/d' setup.cfg
+dos2unix LICENSE.txt README.rst docs/*.rst
 
 %build
 %python_build
@@ -76,7 +75,7 @@
 
 %files %{python_files}
 %license LICENSE.txt
-%doc CHANGES.txt README.rst
+%doc README.rst
 %{python_sitelib}/graphviz
 %{python_sitelib}/graphviz-%{version}-py*.egg-info
 

++++++ python-graphviz-pytest.patch ++++++
>From 961dbdd607399e264a752a73df874f686538d949 Mon Sep 17 00:00:00 2001
From: Sebastian Bank <sebastian.b...@uni-leipzig.de>
Date: Mon, 13 Dec 2021 10:53:45 +0100
Subject: [PATCH] move doctest +NO_EXE definition/setup to conftest.py

- see #152
---
 conftest.py  | 16 +++++++++++++++-
 run-tests.py | 17 ++---------------
 2 files changed, 17 insertions(+), 16 deletions(-)

Index: graphviz-0.19.1/conftest.py
===================================================================
--- graphviz-0.19.1.orig/conftest.py
+++ graphviz-0.19.1/conftest.py
@@ -1,6 +1,21 @@
 """pytest command line options and doctest namespace."""
 
 import pytest
+import doctest
+import unittest.mock
+
+NO_EXE = doctest.register_optionflag('NO_EXE')
+
+class NoExeChecker(doctest.OutputChecker):  # noqa: E302
+
+    def check_output(self, want, got, optionflags, *args, **kwargs) -> bool:
+        if optionflags & NO_EXE:
+            return True
+        return super().check_output(want, got, optionflags, *args, **kwargs)
+
+unittest.mock.patch.object(doctest, 'OutputChecker', new=NoExeChecker).start() 
 # noqa: E305
+
+import pytest  # noqa: E402
 
 SKIP_EXE = '--skip-exe'
 
Index: graphviz-0.19.1/run-tests.py
===================================================================
--- graphviz-0.19.1.orig/run-tests.py
+++ graphviz-0.19.1/run-tests.py
@@ -7,11 +7,11 @@ import doctest
 import pathlib
 import platform
 import sys
-from unittest import mock
 
-SELF = pathlib.Path(__file__)
+import pytest
 
 NO_EXE = doctest.register_optionflag('NO_EXE')
+SELF = pathlib.Path(__file__)
 
 ARGS = [#'--skip-exe',
         #'--only-exe',
@@ -26,19 +26,6 @@ ARGS = [#'--skip-exe',
 if platform.system() == 'Windows' and 'idlelib' in sys.modules:
     ARGS += ['--capture=sys', '--color=no']
 
-
-class NoExeChecker(doctest.OutputChecker):
-
-    def check_output(self, want, got, optionflags, *args, **kwargs) -> bool:
-        if optionflags & NO_EXE:
-            return True
-        return super().check_output(want, got, optionflags, *args, **kwargs)
-
-
-mock.patch.object(doctest, 'OutputChecker', new=NoExeChecker).start()
-import pytest  # noqa: E402
-
-
 print('run', [SELF.name] + sys.argv[1:])
 args = ARGS + sys.argv[1:]
 

Reply via email to