17
0

4 Commits

Author SHA256 Message Date
ab21f9364d 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
ce414b228e Accepting request 1248968 from home:ecsos:python
- Make it compatible wirh %{?sle15_python_module_pythons}.

OBS-URL: https://build.opensuse.org/request/show/1248968
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
724e4f37fe 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
47912fe726 - 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
3 changed files with 3 additions and 59 deletions

View File

@@ -1,42 +0,0 @@
---
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,16 +1,3 @@
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pygraphviz
#
# 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
@@ -34,9 +34,6 @@ 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}
@@ -91,6 +88,8 @@ 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}