14
0

Accepting request 1068667 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1068667
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygraphviz?expand=0&rev=10
This commit is contained in:
2023-03-03 21:24:20 +00:00
committed by Git OBS Bridge
4 changed files with 22 additions and 11 deletions

3
pygraphviz-1.10.zip Normal file
View File

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

View File

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

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Feb 23 10:53:13 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Add test_drawing_png_output_with_NULL_smoketest to the list of tests
to skip because missing png support. gh#pygraphviz/pygraphviz#366
-------------------------------------------------------------------
Fri Feb 17 22:02:46 UTC 2023 - Dirk Müller <dmueller@suse.com>
- fix dependencies for distros older than tumbleweed
-------------------------------------------------------------------
Sun Aug 14 15:16:00 UTC 2022 - Arun Persaud <arun@gmx.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pygraphviz
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,13 +16,10 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global skip_python2 1
%global skip_python36 1
%global skip_python37 1
%bcond_without tests
Name: python-pygraphviz
Version: 1.9
Version: 1.10
Release: 0
Summary: Python interface to Graphviz
License: BSD-3-Clause
@@ -31,18 +28,20 @@ URL: https://pygraphviz.github.io/
Source: https://files.pythonhosted.org/packages/source/p/pygraphviz/pygraphviz-%{version}.zip
# PATCH-FIX-UPSTREAM docdir.patch
Patch0: docdir.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module devel >= 3.8}
# Needed even without tests
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: graphviz-devel >= 2.42
BuildRequires: libpng-devel
BuildRequires: pkgconf-pkg-config
BuildRequires: python-rpm-macros
BuildRequires: swig
BuildRequires: unzip
Requires: graphviz >= 2.42
%if 0%{?suse_version} >= 1550
BuildRequires: pkgconf-pkg-config
%endif
%python_subpackages
%description
@@ -74,7 +73,8 @@ export CFLAGS="%{optflags}"
# 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)'
donttest="test_drawing_makes_file or test_drawing_makes_file1 or test_drawing_makes_file or test_drawing_png_output_with_NULL_smoketest"
%pytest_arch -k "not ($donttest)"
%endif
%files %{python_files}