Sync from SUSE:SLFO:Main python-graphviz revision 2266e3c769ec4544e31fa8462e1e3c41

This commit is contained in:
Adrian Schröter 2024-12-13 11:31:08 +01:00
parent ae21a24be6
commit 35388579db
4 changed files with 31 additions and 12 deletions

BIN
graphviz-0.20.1.zip (Stored with Git LFS)

Binary file not shown.

BIN
graphviz-0.20.3.zip (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Thu May 23 01:59:56 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.20.3:
* Drop Python 3.7 support (end of life 27 Jun 2023).
* Tag Python 3.11 and 3.12 support.
* Add caveat about labe escaping/quoting to .node() and .render() API docs.
* Document that doctest_skip_exe() lines in doctest should be ignored.
- Drop patch python312-syntax-warning.patch, no longer required.
- Ignore conftest files during collection, due to pytest issue.
- Switch to pyproject macros.
-------------------------------------------------------------------
Wed Dec 6 22:22:48 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add python312-syntax-warning.patch for python 3.12 support
-------------------------------------------------------------------
Fri Apr 21 12:25:49 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-graphviz
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,17 +18,18 @@
%{?sle15_python_module_pythons}
Name: python-graphviz
Version: 0.20.1
Version: 0.20.3
Release: 0
Summary: Python interface for Graphviz
License: MIT
Group: Development/Languages/Python
URL: https://github.com/xflr6/graphviz
Source: https://files.pythonhosted.org/packages/source/g/graphviz/graphviz-%{version}.zip
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 6}
BuildRequires: %{python_module pytest-mock >= 3}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: graphviz
@ -56,7 +57,7 @@ inspected with its default application. Graphs can also be rendered and
displayed within IPython notebooks.
%prep
%autosetup -n graphviz-%{version}
%autosetup -p1 -n graphviz-%{version}
sed -i '/--cov/d' setup.cfg
sed -i '/^mock_use_standalone_module/d' setup.cfg
@ -64,19 +65,20 @@ sed -i '/^mock_use_standalone_module/d' setup.cfg
dos2unix LICENSE.txt README.rst docs/*.rst
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
# https://github.com/pytest-dev/pytest/issues/12123
%pytest --ignore tests/conftest.py --ignore tests/backend/conftest.py
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/graphviz
%{python_sitelib}/graphviz-%{version}*-info
%{python_sitelib}/graphviz-%{version}.dist-info
%changelog