1
0

4 Commits

Author SHA256 Message Date
f43795c78a Accepting request 1253338 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1253338
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-breathe?expand=0&rev=26
2025-03-16 17:58:26 +00:00
6e7a0c2bf7 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-breathe?expand=0&rev=58
2025-03-15 11:07:19 +00:00
4a74b3820f Accepting request 1238662 from devel:languages:python
- Add support-sphinx-7.4.patch (gh#breathe-doc/breathe!1007)
  fixing tests with Sphinx 7.4.

OBS-URL: https://build.opensuse.org/request/show/1238662
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-breathe?expand=0&rev=25
2025-01-20 16:14:08 +00:00
8c51032d95 - Add support-sphinx-7.4.patch (gh#breathe-doc/breathe!1007)
fixing tests with Sphinx 7.4.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-breathe?expand=0&rev=56
2025-01-18 10:38:10 +00:00
5 changed files with 31 additions and 45 deletions

Binary file not shown.

BIN
breathe-4.36.0.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
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> Sat Jul 20 01:45:43 UTC 2024 - Matej Cepl <mcepl@cepl.eu>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-breathe # spec file for package python-breathe
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,26 +16,23 @@
# #
%define modname breathe
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-breathe Name: python-breathe
Version: 4.35.0 Version: 4.36.0
Release: 0 Release: 0
Summary: Sphinx Doxygen renderer Summary: Sphinx Doxygen renderer
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/michaeljones/breathe URL: https://github.com/michaeljones/breathe
Source: https://github.com/michaeljones/%{modname}/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz Source: https://github.com/michaeljones/breathe/archive/v%{version}.tar.gz#/breathe-%{version}.tar.gz
Patch0: support-sphinx-7.2.patch BuildRequires: %{python_module Sphinx >= 7.2}
BuildRequires: %{python_module Sphinx >= 4.0} BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module docutils >= 0.12}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-Sphinx >= 4.0 Requires: python-Sphinx >= 7.2
Requires: python-docutils >= 0.12
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
Provides: python-sphinxcontrib-breathe = %{version} Provides: python-sphinxcontrib-breathe = %{version}
@@ -54,8 +51,7 @@ able to read and render Doxygen xml output.
%pyproject_wheel %pyproject_wheel
%check %check
# Tests fail because of gh#breathe-doc/breathe#987 %pytest
# %%pytest
%install %install
%pyproject_install %pyproject_install
@@ -73,6 +69,6 @@ able to read and render Doxygen xml output.
%license LICENSE %license LICENSE
%python_alternative %{_bindir}/breathe-apidoc %python_alternative %{_bindir}/breathe-apidoc
%{python_sitelib}/breathe %{python_sitelib}/breathe
%{python_sitelib}/breathe-%{version}.dist-info %{python_sitelib}/breathe-%{version}*-info
%changelog %changelog

View File

@@ -1,30 +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,11 @@ def app(test_params, app_params, make_ap
"""
args, kwargs = app_params
assert "srcdir" in kwargs
- kwargs["srcdir"].makedirs(exist_ok=True)
+ try:
+ kwargs["srcdir"].mkdir(parents=True, exist_ok=True)
+ except AttributeError:
+ # old version of Sphinx
+ kwargs["srcdir"].makedirs(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] = {}