Compare commits

..

No commits in common. "1effcfbdb8d4a6619d2a7b6bc6ce6af14f160d6c" and "d5f2f962071cf0b1348da3d20175430703e2e189" have entirely different histories.

5 changed files with 94 additions and 114 deletions

View File

@ -1,53 +0,0 @@
From 7c0a1ed9a14d9bb777df2657c99b82250e9851cf Mon Sep 17 00:00:00 2001
From: Jakob Lykke Andersen <Jakob@caput.dk>
Date: Sun, 20 Jan 2019 14:03:02 +0100
Subject: [PATCH] Fix tests for 1.8
---
tests/test_renderer.py | 20 +++++++++++++++-----
2 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/tests/test_renderer.py b/tests/test_renderer.py
index d1e88638..4298b957 100644
--- a/tests/test_renderer.py
+++ b/tests/test_renderer.py
@@ -6,6 +6,7 @@
from breathe.renderer.sphinxrenderer import SphinxRenderer
from breathe.renderer.filter import OpenFilter
from docutils import frontend, nodes, parsers, utils
+from sphinx.config import Config
from sphinx.domains.cpp import CPPDomain
from sphinx.domains.c import CDomain
@@ -53,17 +54,26 @@ class TestParam(paramTypeSub, TestDoxygenNode):
def __init__(self, **kwargs):
TestDoxygenNode.__init__(self, paramTypeSub, **kwargs)
-class MockConfig(object):
- cpp_id_attributes = []
- cpp_paren_attributes = []
- cpp_index_common_prefix = []
+
+class MockRegistry(object):
+ def get_envversion(self, app):
+ return None
+
+ def create_domains(self, env):
+ return []
class MockApp(object):
def __init__(self):
self.doctreedir = None
self.srcdir = None
- self.config = MockConfig()
+ self.config = Config()
+ self.config.pre_init_values()
+ self.config.init_values()
+ self.config.add('cpp_id_attributes', [], 'env', ())
+ self.config.add('cpp_paren_attributes', [], 'env', ())
+ self.config.add('cpp_index_common_prefix', [], 'env', ())
+ self.registry = MockRegistry()
class MockState:

View File

@ -0,0 +1,25 @@
From 8b42ef5a9db2d816c9e749237b9681d1aba0bea2 Mon Sep 17 00:00:00 2001
From: bzg1107 <preloyalwhite@163.com>
Date: Tue, 4 Jan 2022 22:43:54 +0800
Subject: [PATCH] Cancel sphinx version limit
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 3f39730..6acc10a 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ Breathe is an extension to reStructuredText and Sphinx to be able to read and
render `Doxygen <http://www.doxygen.org>`__ xml output.
'''
-requires = ['Sphinx>=3.0,<3.6', 'docutils>=0.12', 'six>=1.9']
+requires = ['Sphinx>=3.0', 'docutils>=0.12', 'six>=1.9']
if sys.version_info < (3, 5):
print('ERROR: Sphinx requires at least Python 3.5 to run.')
--
2.30.0

BIN
breathe-4.29.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,85 +1,93 @@
%global _empty_manifest_terminate_build 0
Name: python-breathe
Version: 4.11.1
Release: 1
Summary: An extension to reStructuredText and Sphinx
License: BSD
Version: 4.29.0
Release: 3
Summary: Sphinx Doxygen renderer
License: BSD-3-Clause
URL: https://github.com/michaeljones/breathe
Source0: https://github.com/michaeljones/breathe/archive/v%{version}.tar.gz
Source0: https://files.pythonhosted.org/packages/df/0f/a1946bbc0731ac02ca191b11ca18c634310dd8d37121c5e21b06960e2f28/breathe-4.29.0.tar.gz
Patch0: 0001-Cancel-sphinx-version-limit.patch
BuildArch: noarch
Patch0: 0001-Add-events-attribute-to-MockApp.patch
BuildRequires: doxygen git python2-devel python3-devel python2-six >= 1.4 python2-setuptools
BuildRequires: python3-setuptools python2-sphinx >= 1.4 python3-six >= 1.4 python2-docutils >= 0.5
BuildRequires: python2-nose python3-docutils >= 0.5 python-sphinx
%description
Breathe provides a bridge between the Sphinx and Doxygen documentation systems. It is an easy way
to include Doxygen information in a set of documentation generated by Sphinx. The aim is to produce
an autodoc like support for people who enjoy using Sphinx but work with languages other than Python.
The system relies on the Doxygens xml output.
Breathe is an extension to reStructuredText and Sphinx to be able to read and render Doxygen xml output.
%package -n python2-breathe
Summary: An extension to reStructuredText and Sphinx
Requires: python2-six doxygen
Provides: breathe = %{version}-%{release}
Obsoletes: breathe < %{version}-%{release}
%{?python_provide:%python_provide python2-breathe}
%description -n python2-breathe
Breathe provides a bridge between the Sphinx and Doxygen documentation systems. It is an easy way
to include Doxygen information in a set of documentation generated by Sphinx. The aim is to produce
an autodoc like support for people who enjoy using Sphinx but work with languages other than Python.
The system relies on the Doxygens xml output.
%package -n python3-breathe
Summary: An extension to reStructuredText and Sphinx
Requires: python3-six doxygen
%{?python_provide:%python_provide python3-breathe}
%package -n python3-breathe
Summary: Sphinx Doxygen renderer
Provides: python-breathe
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-sphinx
BuildRequires: python3-docutils
BuildRequires: python3-six python3-pip
%description -n python3-breathe
Breathe provides a bridge between the Sphinx and Doxygen documentation systems. It is an easy way
to include Doxygen information in a set of documentation generated by Sphinx. The aim is to produce
an autodoc like support for people who enjoy using Sphinx but work with languages other than Python.
The system relies on the Doxygens xml output.
Breathe is an extension to reStructuredText and Sphinx to be able to read and render Doxygen xml output.
%package help
Summary: Documentation files for breathe
Provides: python-breathe-doc = %{version}-%{release}
Obsoletes: python-breathe-doc < %{version}-%{release}
License: BSD and zlib
%description help
Documentation for developer documentation for breathe.
%package help
Summary: Sphinx Doxygen renderer
Provides: python3-breathe-doc
%description help
Breathe is an extension to reStructuredText and Sphinx to be able to read and render Doxygen xml output.
%prep
%autosetup -n breathe-%{version} -p1
%autosetup -n breathe-4.29.0 -p1
%build
%py2_build
%py3_build
%make_build html
rm documentation/build/html/.buildinfo
%install
%py2_install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
make dev-test
%{__python3} setup.py test
%files -n python2-breathe
%doc README.rst LICENSE
%{python2_sitelib}/*
%files -n python3-breathe -f filelist.lst
%dir %{python3_sitelib}/*
%files -n python3-breathe
%doc README.rst LICENSE
%{_bindir}/breathe-apidoc
%{python3_sitelib}/*
%files help
%doc documentation/build/html LICENSE
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Thu Oct 12 2023 chenyaqiang<chenyaqiang@huawei.com> - 4.11.1-1
* Tue May 10 2022 houyingchao <houyingchao@h-partners.com> - 4.29.0-3
- License compliance rectification
* Sat Jan 8 2022 baizhonggui <baizhonggui@huawei.com> - 4.29.0-2
- fix build error
* Mon Aug 23 2021 OpenStack_SIG <openstack@openeuler.org> - 4.29.0-1
- Package update to 4.29.0
* Thu Jan 04 2021 wangxiao <wangxiao65@huawei.com> - 4.26.1-1
- update to 4.26.1 for fix build errors with Sphinx 3.4
* Sat Oct 10 2020 zhanghua <zhanghua40@huawei.com> - 4.22.1-1
- update to 4.22.1 for fix build errors with Sphinx 3.1
* Thu Feb 20 2020 Ling Yang <lingyang2@huawei.com> - 4.11.1-2
- Package init

Binary file not shown.