We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a80b223 commit 68f0ff7Copy full SHA for 68f0ff7
.github/workflows/ci.yml
@@ -704,14 +704,11 @@ jobs:
704
- name: Install Doxygen
705
run: sudo apt-get install -y doxygen librsvg2-bin # Changed to rsvg-convert in 20.04
706
707
- - name: Install docs & setup requirements
708
- run: python3 -m pip install -r docs/requirements.txt
709
-
710
- name: Build docs
711
- run: python3 -m sphinx -W -b html docs docs/.build
+ run: pipx run nox -s docs
712
713
- name: Make SDist
714
- run: python3 setup.py sdist
+ run: pipx run nox -s build -- --sdist
715
716
- run: git status --ignored
717
@@ -723,7 +720,7 @@ jobs:
723
720
- name: Compare Dists (headers only)
724
721
working-directory: include
725
722
run: |
726
- python3 -m pip install --user -U ../dist/*
+ python3 -m pip install --user -U ../dist/*.tar.gz
727
installed=$(python3 -c "import pybind11; print(pybind11.get_include() + '/pybind11')")
728
diff -rq $installed ./pybind11
729
docs/Doxyfile
@@ -18,6 +18,5 @@ ALIASES += "endrst=\endverbatim"
18
QUIET = YES
19
WARNINGS = YES
20
WARN_IF_UNDOCUMENTED = NO
21
-PREDEFINED = DOXYGEN_SHOULD_SKIP_THIS \
22
- PY_MAJOR_VERSION=3 \
+PREDEFINED = PY_MAJOR_VERSION=3 \
23
PYBIND11_NOINLINE
docs/requirements.txt
@@ -1,8 +1,5 @@
1
-breathe==4.26.1
2
-# docutils 0.17 breaks HTML tags & RTD theme
3
-# https://github.com/sphinx-doc/sphinx/issues/9001
4
-docutils==0.16
5
-sphinx==3.3.1
6
-sphinx_rtd_theme==0.5.0
7
-sphinxcontrib-moderncmakedomain==3.17
8
-sphinxcontrib-svg2pdfconverter==1.1.0
+breathe==4.31.0
+sphinx==3.5.4
+sphinx_rtd_theme==1.0.0
+sphinxcontrib-moderncmakedomain==3.19
+sphinxcontrib-svg2pdfconverter==1.1.1
include/pybind11/pytypes.h
@@ -287,10 +287,10 @@ class object : public handle {
287
struct borrowed_t { };
288
struct stolen_t { };
289
290
-#ifndef DOXYGEN_SHOULD_SKIP_THIS // Issue in breathe 4.26.1
+ /// @cond BROKEN
291
template <typename T> friend T reinterpret_borrow(handle);
292
template <typename T> friend T reinterpret_steal(handle);
293
-#endif
+ /// @endcond
294
295
public:
296
// Only accessible from derived classes and the reinterpret_* functions
@@ -1717,7 +1717,7 @@ class memoryview : public object {
1717
#endif
1718
};
1719
1720
-#ifndef DOXYGEN_SHOULD_SKIP_THIS
+/// @cond DUPLICATE
1721
inline memoryview memoryview::from_buffer(
1722
void *ptr, ssize_t itemsize, const char* format,
1723
detail::any_container<ssize_t> shape,
@@ -1745,7 +1745,7 @@ inline memoryview memoryview::from_buffer(
1745
throw error_already_set();
1746
return memoryview(object(obj, stolen_t{}));
1747
}
1748
-#endif // DOXYGEN_SHOULD_SKIP_THIS
+/// @endcond
1749
/// @} pytypes
1750
1751
/// \addtogroup python_builtins
noxfile.py
@@ -57,10 +57,10 @@ def docs(session: nox.Session) -> None:
57
session.chdir("docs")
58
59
if "pdf" in session.posargs:
60
- session.run("sphinx-build", "-M", "latexpdf", ".", "_build")
+ session.run("sphinx-build", "-b", "latexpdf", ".", "_build")
61
return
62
63
- session.run("sphinx-build", "-M", "html", ".", "_build")
+ session.run("sphinx-build", "-b", "html", ".", "_build")
64
65
if "serve" in session.posargs:
66
session.log("Launching docs at http://localhost:8000/ - use Ctrl-C to quit")
@@ -85,5 +85,7 @@ def build(session: nox.Session) -> None:
85
"""
86
87
session.install("build")
88
- session.run("python", "-m", "build")
89
- session.run("python", "-m", "build", env={"PYBIND11_GLOBAL_SDIST": "1"})
+ session.run("python", "-m", "build", *session.posargs)
+ session.run(
90
+ "python", "-m", "build", *session.posargs, env={"PYBIND11_GLOBAL_SDIST": "1"}
91
+ )
0 commit comments