Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pygraphviz for 
openSUSE:Factory checked in at 2021-10-23 00:50:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pygraphviz (Old)
 and      /work/SRC/openSUSE:Factory/.python-pygraphviz.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pygraphviz"

Sat Oct 23 00:50:18 2021 rev:8 rq:926418 version:1.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pygraphviz/python-pygraphviz.changes      
2020-09-28 14:30:51.914241342 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pygraphviz.new.1890/python-pygraphviz.changes
    2021-10-23 00:50:33.925124025 +0200
@@ -1,0 +2,12 @@
+Tue Oct 19 19:58:44 UTC 2021 - Matej Cepl <mc...@suse.com>
+
+- Update to 1.7:
+  - Drop Python 3.6 support
+  - Add Python 3.9 support
+  - Require Graphviz 2.42+, (Graphviz 2.46+ recommended)
+  - Improve installation process and documentation
+  - Switch from nose to pytest
+  - Remove old Python 2 code
+  - AGraph.eq includes attribute comparison (PR #246)
+
+-------------------------------------------------------------------

Old:
----
  pygraphviz-1.6.zip

New:
----
  pygraphviz-1.7.zip

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

Other differences:
------------------
++++++ python-pygraphviz.spec ++++++
--- /var/tmp/diff_new_pack.JOoPC3/_old  2021-10-23 00:50:34.429124139 +0200
+++ /var/tmp/diff_new_pack.JOoPC3/_new  2021-10-23 00:50:34.433124141 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pygraphviz
 #
-# 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
@@ -20,29 +20,30 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %global skip_python2 1
+%global skip_python36 1
 Name:           python-pygraphviz
-Version:        1.6
+Version:        1.7
 Release:        0
-URL:            http://networkx.lanl.gov/pygraphviz
+URL:            https://pygraphviz.github.io/
 Summary:        Python interface to Graphviz
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 Source:         
https://files.pythonhosted.org/packages/source/p/pygraphviz/pygraphviz-%{version}.zip
 # PATCH-FIX-UPSTREAM docdir.patch
-Patch:          docdir.patch
+Patch0:         docdir.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
-BuildRequires:  graphviz-devel >= 2.16
-BuildRequires:  pkg-config
+BuildRequires:  graphviz-devel >= 2.42
+BuildRequires:  libpng-devel
+BuildRequires:  pkgconf-pkg-config
 BuildRequires:  python-rpm-macros
 BuildRequires:  swig
 BuildRequires:  unzip
 # Needed even without tests
-BuildRequires:  %{python_module mock >= 2.0.0}
-BuildRequires:  %{python_module nose >= 1.3.7}
-Requires:       graphviz >= 2.16
+BuildRequires:  %{python_module pytest}
+Requires:       graphviz >= 2.42
 %python_subpackages
 
 %description
@@ -58,34 +59,23 @@
 This package provides documentation and help files for %{name}
 
 %prep
-%setup -q -n pygraphviz-%{version}
-%patch
+%autosetup -p1 -n pygraphviz-%{version}
 
 %build
-# Need command-line flags only available in install
+export CFLAGS="%{optflags}"
+%python_build
 
 %install
 export CFLAGS="%{optflags}"
-%python_exec setup.py install -O1 --force --root %{buildroot} --prefix 
%{_prefix} --include-path %{_includedir}/graphviz/ --library-path 
%{_libdir}/graphviz/
-
-%{python_expand pushd %{buildroot}%{$python_sitearch}
-# Fix wrong-script-interpreter
-sed -i "s|#!/usr/bin/env python|#!%__$python|" pygraphviz/tests/test.py
-chmod a+x pygraphviz/tests/test.py
-# Deduplicating files can generate a RPMLINT warning for pyc mtime
-$python -m compileall -d %{$python_sitearch} pygraphviz/tests/
-$python -O -m compileall -d %{$python_sitearch} pygraphviz/tests/
-%fdupes .
-popd
-}
+%python_install
+%fdupes %{buildroot}%{$python_sitearch}
 
 %if %{with tests}
 %check
-pushd examples
-%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
-$python -c "import pygraphviz;pygraphviz.test()"
-}
-popd
+# export PYTEST_ADDOPTS="--doctest-modules --durations=10 
--import-mode=importlib"
+export PYTEST_ADDOPTS="--import-mode=importlib"
+# skip tests because of gh#pygraphviz/pygraphviz#366
+%pytest_arch -k 'not (test_drawing_makes_file or test_drawing_makes_file1 or 
test_drawing_makes_file)'
 %endif
 
 %files %{python_files}

++++++ docdir.patch ++++++
--- /var/tmp/diff_new_pack.JOoPC3/_old  2021-10-23 00:50:34.457124146 +0200
+++ /var/tmp/diff_new_pack.JOoPC3/_new  2021-10-23 00:50:34.457124146 +0200
@@ -1,13 +1,15 @@
-Index: setup.py
-===================================================================
---- setup.py.orig
-+++ setup.py
-@@ -36,7 +36,7 @@
- sys.path.pop(0)
+---
+ setup.py |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/setup.py
++++ b/setup.py
+@@ -54,7 +54,7 @@ with open("pygraphviz/__init__.py") as f
+             break
  
  packages = ["pygraphviz", "pygraphviz.tests"]
--docdirbase = 'share/doc/pygraphviz-%s' % release.version
-+docdirbase = 'share/doc/packages/pygraphviz-%s' % release.version
+-docdirbase = f"share/doc/pygraphviz-{version}"
++docdirbase = f"share/doc/packages/pygraphviz-{version}"
  data = [
      (docdirbase, glob("*.txt")),
-     (os.path.join(docdirbase, 'examples'), glob("examples/*.py")),
+     (os.path.join(docdirbase, "examples"), glob("examples/*.py")),

Reply via email to