From e766c2b3d046a597953d503a62e7fb1b4f070122 Mon Sep 17 00:00:00 2001 From: xadupre Date: Tue, 29 Jul 2025 10:23:12 +0200 Subject: [PATCH 1/2] exclude function from pybind11 in docassert --- sphinx_runpython/docassert/sphinx_docassert_extension.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sphinx_runpython/docassert/sphinx_docassert_extension.py b/sphinx_runpython/docassert/sphinx_docassert_extension.py index 7a9fe62..0b81024 100644 --- a/sphinx_runpython/docassert/sphinx_docassert_extension.py +++ b/sphinx_runpython/docassert/sphinx_docassert_extension.py @@ -319,6 +319,11 @@ def override_transform(self, other_self, node): # Import object, get the list of parameters docs = fieldbody.parent.source.split("docstring of")[-1].strip() docs = docs.replace(".PyCapsule.", ".") + if ( + "pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1" + in docs + ): + continue myfunc = None funckind = None From 7221a7917d1f0944ebdae39e66b93d92687e3369 Mon Sep 17 00:00:00 2001 From: xadupre Date: Tue, 29 Jul 2025 10:26:06 +0200 Subject: [PATCH 2/2] upgrade version " --- CHANGELOGS.rst | 5 +++++ _doc/index.rst | 3 +-- sphinx_runpython/__init__.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOGS.rst b/CHANGELOGS.rst index 3362b26..090165f 100644 --- a/CHANGELOGS.rst +++ b/CHANGELOGS.rst @@ -1,6 +1,11 @@ Change Logs =========== +0.4.1 ++++++ + +* :pr:`42`: excludes failing functions from pybind11 in docassert + 0.4.0 +++++ diff --git a/_doc/index.rst b/_doc/index.rst index b3b0ad9..003082c 100644 --- a/_doc/index.rst +++ b/_doc/index.rst @@ -54,7 +54,6 @@ Sources available on Older versions ++++++++++++++ +* `0.4.1 <../v0.4.1/index.html>`_ * `0.4.0 <../v0.4.0/index.html>`_ * `0.3.0 <../v0.3.0/index.html>`_ -* `0.2.0 <../v0.2.0/index.html>`_ -* `0.1.0 <../v0.1.0/index.html>`_ diff --git a/sphinx_runpython/__init__.py b/sphinx_runpython/__init__.py index 5280383..12a3dfd 100644 --- a/sphinx_runpython/__init__.py +++ b/sphinx_runpython/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.4.0" +__version__ = "0.4.1" __author__ = "Xavier Dupré" __github__ = "https://github.com/sdpython/sphinx-runpython" __url__ = "https://sdpython.github.io/doc/sphinx-runpython/dev/"