17
0

4 Commits

Author SHA256 Message Date
d6153b7853 Accepting request 1289782 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1289782
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-graphviz?expand=0&rev=18
2025-07-03 10:08:50 +00:00
8b905708a5 Accepting request 1289777 from home:glaubitz:branches:devel:languages:python
- Update to 0.21
  * Drop Python 3.8 support (end of life 7 Oct 2024).
  * Tag Python 3.13 support.
  * Add support for ``format='svg_inline'``, available since upstream
    Graphviz 10.0.1. Produces header-less SVG suitable for inlining
    into HTML (see https://www.graphviz.org/docs/outputs/svg/).
  * Switch project to ``pyproject.toml`` and build to ``python -m build``)
    (https://build.pypa.io). This changes the source distribution formar
    from ``.zip`` to PEP 625 compliant ``.tar.gz``
    (https://peps.python.org/pep-0625/).
- Remove unzip package from BuildRequires
- Switch source archive format to TAR.GZ
- Update BuildRequires from pyproject.toml

OBS-URL: https://build.opensuse.org/request/show/1289777
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphviz?expand=0&rev=38
2025-07-02 08:22:51 +00:00
bbf6c9dbbb Accepting request 1284009 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1284009
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-graphviz?expand=0&rev=17
2025-06-10 06:56:48 +00:00
e7311e2a68 Accepting request 1283590 from home:trenn:branches:graphics
- Fix tests with latest graphviz update to 12.x

OBS-URL: https://build.opensuse.org/request/show/1283590
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphviz?expand=0&rev=36
2025-06-09 08:13:12 +00:00
3 changed files with 1 additions and 21 deletions

View File

@@ -1,13 +0,0 @@
Index: graphviz-0.21/tests/test_quoting.py
===================================================================
--- graphviz-0.21.orig/tests/test_quoting.py
+++ graphviz-0.21/tests/test_quoting.py
@@ -17,7 +17,7 @@ def test_deprecated_escape(recwarn, char
assert len(recwarn) == 1
w = recwarn.pop(DeprecationWarning if sys.version_info < (3, 12)
else SyntaxWarning)
- assert str(w.message).startswith('invalid escape sequence')
+ assert 'invalid escape sequence' in str(w.message)
assert escape == f'\\{char}'
assert quoting.quote(escape) == f'"\\{char}"'

View File

@@ -1,8 +1,3 @@
-------------------------------------------------------------------
Tue Sep 9 14:31:30 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add py314.patch to fix tests with Python 3.14
-------------------------------------------------------------------
Wed Jul 2 07:55:23 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-graphviz
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,8 +24,6 @@ Summary: Python interface for Graphviz
License: MIT
URL: https://github.com/xflr6/graphviz
Source: https://files.pythonhosted.org/packages/source/g/graphviz/graphviz-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/xflr6/graphviz/pull/238 fix tests on Python 3.14
Patch0: py314.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module pip}