14
0

8 Commits

Author SHA256 Message Date
96df92b1b5 Accepting request 1313593 from devel:languages:python
- More gentle version of graphviz_14-0-0.patch, which doesn’t
  change a SWIG include file, just the C generated one with the
  minimal required change (bsc#1252488).

- Add graphviz_14-0-0.patch making the code compatible with
  gvRenderData signature from graphviz 14.0.* (bsc#1252488).

OBS-URL: https://build.opensuse.org/request/show/1313593
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygraphviz?expand=0&rev=16
2025-10-27 13:37:20 +00:00
b2133b1b9e - More gentle version of graphviz_14-0-0.patch, which doesn’t
change a SWIG include file, just the C generated one with the
  minimal required change (bsc#1252488).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygraphviz?expand=0&rev=38
2025-10-24 16:53:54 +00:00
4eb6f121f1 Update the patch.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygraphviz?expand=0&rev=37
2025-10-22 22:47:36 +00:00
caff77821c - Add graphviz_14-0-0.patch making the code compatible with
gvRenderData signature from graphviz 14.0.* (bsc#1252488).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygraphviz?expand=0&rev=36
2025-10-22 17:56:19 +00:00
e460db3ec7 Accepting request 1249674 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1249674
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygraphviz?expand=0&rev=15
2025-03-05 12:39:13 +00:00
cb11660996 - Make it compatible wirh %{?sle15_python_module_pythons}.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygraphviz?expand=0&rev=34
2025-03-03 10:31:04 +00:00
c57e23bd57 Accepting request 1204931 from devel:languages:python
- update 1.14:
  * Avoid subprocess window creation with agraph.AGraph._run_prog
    (#514).
  * Support Python 3.13 (#542).
  * AGraph.draw(): close filehandle for pathlib.Path (#535).
  * Fix formatting (#538).
  * Test on Python 3.13 (#539).
  * Use ruff and update pre-commit config (#540).

  * Copy edges keys when copying a graph
- fix dependencies for distros older than tumbleweed
- Set license to BSD-3-Clause according to legal

OBS-URL: https://build.opensuse.org/request/show/1204931
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygraphviz?expand=0&rev=14
2024-10-02 19:32:40 +00:00
c712dec093 - update 1.14:
* Avoid subprocess window creation with agraph.AGraph._run_prog
    (#514).
  * Support Python 3.13 (#542).
  * AGraph.draw(): close filehandle for pathlib.Path (#535).
  * Fix formatting (#538).
  * Test on Python 3.13 (#539).
  * Use ruff and update pre-commit config (#540).
  * Copy edges keys when copying a graph
- fix dependencies for distros older than tumbleweed
- Set license to BSD-3-Clause according to legal

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygraphviz?expand=0&rev=32
2024-10-01 12:38:28 +00:00
5 changed files with 89 additions and 16 deletions

42
graphviz_14-0-0.patch Normal file
View File

@@ -0,0 +1,42 @@
---
pygraphviz/graphviz_wrap.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
Index: pygraphviz-1.14/pygraphviz/graphviz_wrap.c
===================================================================
--- pygraphviz-1.14.orig/pygraphviz/graphviz_wrap.c 2024-09-29 20:31:00.000000000 +0200
+++ pygraphviz-1.14/pygraphviz/graphviz_wrap.c 2025-10-24 18:49:18.399642610 +0200
@@ -3022,6 +3022,11 @@
#include "graphviz/cgraph.h"
#include "graphviz/gvc.h"
+#include "graphviz/graphviz_version.h"
+
+#ifndef GRAPHVIZ_VERSION_MAJOR
+#define GRAPHVIZ_VERSION_MAJOR 12
+#endif
SWIGINTERN swig_type_info*
@@ -5447,7 +5452,13 @@
Agraph_t *arg2 = (Agraph_t *) 0 ;
char *arg3 = (char *) 0 ;
char **arg4 = (char **) 0 ;
+#if GRAPHVIZ_VERSION_MAJOR >= 14
+ size_t *arg5 = (size_t *) 0 ;
+ size_t tempn4 ;
+#else
unsigned int *arg5 = (unsigned int *) 0 ;
+ unsigned int tempn4 ;
+#endif
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
@@ -5456,7 +5467,6 @@
char *buf3 = 0 ;
int alloc3 = 0 ;
char *temp4 = 0 ;
- unsigned int tempn4 ;
PyObject *swig_obj[3] ;
int result;

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6ad8aa2f26768830a5a1cfc8a14f022d13df170a8f6fdfd68fd1aa1267000964
size 104642

3
pygraphviz-1.14.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c10df02377f4e39b00ae17c862f4ee7e5767317f1c6b2dfd04cea6acc7fc2bea
size 106003

View File

@@ -1,3 +1,33 @@
-------------------------------------------------------------------
Fri Oct 24 16:52:44 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- More gentle version of graphviz_14-0-0.patch, which doesnt
change a SWIG include file, just the C generated one with the
minimal required change (bsc#1252488).
-------------------------------------------------------------------
Wed Oct 22 17:55:37 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Add graphviz_14-0-0.patch making the code compatible with
gvRenderData signature from graphviz 14.0.* (bsc#1252488).
-------------------------------------------------------------------
Thu Feb 27 12:23:39 UTC 2025 - ecsos <ecsos@opensuse.org>
- Make it compatible wirh %{?sle15_python_module_pythons}.
-------------------------------------------------------------------
Tue Oct 1 12:37:59 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update 1.14:
* Avoid subprocess window creation with agraph.AGraph._run_prog
(#514).
* Support Python 3.13 (#542).
* AGraph.draw(): close filehandle for pathlib.Path (#535).
* Fix formatting (#538).
* Test on Python 3.13 (#539).
* Use ruff and update pre-commit config (#540).
-------------------------------------------------------------------
Thu May 23 02:32:41 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
@@ -6,7 +36,7 @@ Thu May 23 02:32:41 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
* Fix segfault from repr attempting to access attrs on uninitialized
instance (#520).
* Add Python 3.12 support (#486).
* Copy edges keys when copying a graph
* Copy edges keys when copying a graph
* Drop Python 3.8 support per SPEC 0 (#465).
* Drop Python 3.9 support (#487).
* Update documentation building requirements (#488).
@@ -40,7 +70,7 @@ Thu Feb 23 10:53:13 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
-------------------------------------------------------------------
Fri Feb 17 22:02:46 UTC 2023 - Dirk Müller <dmueller@suse.com>
- fix dependencies for distros older than tumbleweed
- fix dependencies for distros older than tumbleweed
-------------------------------------------------------------------
Sun Aug 14 15:16:00 UTC 2022 - Arun Persaud <arun@gmx.de>
@@ -109,7 +139,7 @@ Wed Jun 15 17:11:49 UTC 2016 - toddrme2178@gmail.com
-------------------------------------------------------------------
Fri Mar 28 14:42:59 UTC 2014 - speilicke@suse.com
- Set license to BSD-3-Clause according to legal
- Set license to BSD-3-Clause according to legal
-------------------------------------------------------------------
Fri Dec 6 13:44:13 UTC 2013 - toddrme2178@gmail.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pygraphviz
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,14 +26,17 @@
%endif
%{?sle15_python_module_pythons}
Name: python-pygraphviz%{psuffix}
Version: 1.13
Version: 1.14
Release: 0
Summary: Python interface to Graphviz
License: BSD-3-Clause
URL: https://pygraphviz.github.io/
URL: https://github.com/pygraphviz/pygraphviz
Source: https://files.pythonhosted.org/packages/source/p/pygraphviz/pygraphviz-%{version}.tar.gz
# https://github.com/pygraphviz/pygraphviz/issues/532
Source1: https://raw.githubusercontent.com/pygraphviz/pygraphviz/main/examples/README.txt
# PATCH-FIX-UPSTREAM graphviz_14-0-0.patch bsc#1252488 mcepl@suse.com
# make the code compatible with gvRenderData signature from graphviz 14.0.*
Patch0: graphviz_14-0-0.patch
BuildRequires: %{python_module devel >= 3.10}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
@@ -45,12 +48,12 @@ BuildRequires: graphviz-gd
BuildRequires: libpng-devel
BuildRequires: python-rpm-macros
%if %{with doc}
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module numpydoc}
BuildRequires: %{python_module pydata-sphinx-theme}
BuildRequires: %{python_module pygraphviz = %{version}}
BuildRequires: python3-Sphinx
BuildRequires: python3-matplotlib
BuildRequires: python3-numpydoc
BuildRequires: python3-pydata-sphinx-theme
BuildRequires: python3-sphinx-gallery
BuildRequires: %{python_module sphinx-gallery}
BuildArch: noarch
%endif
BuildRequires: swig
@@ -88,8 +91,6 @@ export CFLAGS="%{optflags}"
%if ! %{with doc}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
# Don't ship swig source
%python_expand rm %{buildroot}%{$python_sitearch}/pygraphviz/graphviz_wrap.c
%else
mkdir -p %{buildroot}%{_docdir}/pygraphviz-%{version}
cp -ar doc/build/html/* %{buildroot}%{_docdir}/pygraphviz-%{version}