Compare commits

1 Commits
1.1 ... main

5 changed files with 42 additions and 40 deletions

Binary file not shown.

BIN
breathe-4.36.0.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,34 @@
-------------------------------------------------------------------
Fri Mar 14 12:59:04 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 4.36:
* Update test_renderer so that tests pass with Sphinx 7.2.
* Fix PosixPath issue with Sphinx 7.2.
* Avoid RemovedInSphinx80Warning in path-manipulation code.
* Require Sphinx 7.2 or later, Python 3.9 or later
and Doxygen 1.9.2 or later.
* Begin to use pathlib.
* Insert signature name for use with Sphinx Table of Contents.
* Fix error in template specialization with qualified arguments.
- Drop merged support-sphinx-7.2.patch and support-sphinx-7.4.patch.
-------------------------------------------------------------------
Sat Jan 18 10:37:41 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Add support-sphinx-7.4.patch (gh#breathe-doc/breathe!1007)
fixing tests with Sphinx 7.4.
-------------------------------------------------------------------
Sat Jul 20 01:45:43 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Skip test suite because of gh#breathe-doc/breathe#987
-------------------------------------------------------------------
Wed Oct 4 13:47:35 UTC 2023 - Markéta Machová <mmachova@suse.com>
- Make support-sphinx-7.2.patch backwards-compatible
* and sent upstream: https://github.com/breathe-doc/breathe/pull/956
-------------------------------------------------------------------
Tue Aug 29 02:48:53 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-breathe
#
# Copyright (c) 2023 SUSE LLC
# 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
@@ -16,28 +16,25 @@
#
%define modname breathe
%{?sle15_python_module_pythons}
Name: python-breathe
Version: 4.35.0
Version: 4.36.0
Release: 0
Summary: Sphinx Doxygen renderer
License: BSD-3-Clause
URL: https://github.com/michaeljones/breathe
Source: https://github.com/michaeljones/%{modname}/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
Patch0: support-sphinx-7.2.patch
BuildRequires: %{python_module Sphinx >= 4.0}
BuildRequires: %{python_module docutils >= 0.12}
Source: https://github.com/michaeljones/breathe/archive/v%{version}.tar.gz#/breathe-%{version}.tar.gz
BuildRequires: %{python_module Sphinx >= 7.2}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Sphinx >= 4.0
Requires: python-docutils >= 0.12
Requires: python-Sphinx >= 7.2
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
Provides: python-sphinxcontrib-breathe = %{version}
Obsoletes: python-sphinxcontrib-breathe < %{version}
BuildArch: noarch
@@ -72,6 +69,6 @@ able to read and render Doxygen xml output.
%license LICENSE
%python_alternative %{_bindir}/breathe-apidoc
%{python_sitelib}/breathe
%{python_sitelib}/breathe-%{version}.dist-info
%{python_sitelib}/breathe-%{version}*-info
%changelog

View File

@@ -1,26 +0,0 @@
Index: breathe-4.35.0/tests/test_renderer.py
===================================================================
--- breathe-4.35.0.orig/tests/test_renderer.py
+++ breathe-4.35.0/tests/test_renderer.py
@@ -35,7 +35,7 @@ def app(test_params, app_params, make_ap
"""
args, kwargs = app_params
assert "srcdir" in kwargs
- kwargs["srcdir"].makedirs(exist_ok=True)
+ kwargs["srcdir"].mkdir(parents=True, exist_ok=True)
(kwargs["srcdir"] / "conf.py").write_text("")
app_ = make_app(*args, **kwargs)
yield app_
Index: breathe-4.35.0/breathe/project.py
===================================================================
--- breathe-4.35.0.orig/breathe/project.py
+++ breathe-4.35.0/breathe/project.py
@@ -113,7 +113,7 @@ class ProjectInfoFactory:
# Assume general build directory is the doctree directory without the last component.
# We strip off any trailing slashes so that dirname correctly drops the last part.
# This can be overridden with the breathe_build_directory config variable
- self._default_build_dir = os.path.dirname(app.doctreedir.rstrip(os.sep))
+ self._default_build_dir = app.doctreedir.parent
self.project_count = 0
self.project_info_store: Dict[str, ProjectInfo] = {}
self.project_info_for_auto_store: Dict[str, AutoProjectInfo] = {}