1
0

8 Commits

Author SHA256 Message Date
d6e46dbcef Accepting request 1298886 from devel:languages:python
- Make the libalternatives transition conditional

OBS-URL: https://build.opensuse.org/request/show/1298886
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-breathe?expand=0&rev=28
2025-08-13 14:22:43 +00:00
18e21956cb - Make the libalternatives transition conditional
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-breathe?expand=0&rev=62
2025-08-11 14:54:26 +00:00
00085ed7b4 Accepting request 1286305 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1286305
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-breathe?expand=0&rev=27
2025-06-18 17:29:51 +00:00
bb6539dddc - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-breathe?expand=0&rev=60
2025-06-17 09:05:04 +00:00
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 54 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,33 @@
-------------------------------------------------------------------
Mon Aug 11 14:53:24 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Make the libalternatives transition conditional
-------------------------------------------------------------------
Tue Jun 17 09:04:47 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,28 +16,35 @@
#
%define modname breathe
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?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
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
Requires: python-Sphinx >= 7.2
Provides: python-sphinxcontrib-breathe = %{version}
Obsoletes: python-sphinxcontrib-breathe < %{version}
BuildArch: noarch
@@ -54,14 +61,16 @@ able to read and render Doxygen xml output.
%pyproject_wheel
%check
# Tests fail because of gh#breathe-doc/breathe#987
# %%pytest
%pytest
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/breathe-apidoc
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%pre
%python_libalternatives_reset_alternative breathe-apidoc
%post
%python_install_alternative breathe-apidoc
@@ -73,6 +82,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,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] = {}