You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make stub docstring generation available outside cibuildwheel #1293
#1274 adds runtime docstrings to the bundled type stubs through cibuildwheel’s repair hook. Builds that do not use cibuildwheel, including conda-forge, bypass this step. As pointed out by @mkoeppe in this comment, the documentation should also be made available through conda-forge builds.
Possible approaches:
Customize setuptools commands: extract docstrings after compilation, before setuptools packages the wheel.
Wrap setuptools.build_meta: let setuptools build the wheel, then unpack it, add docstrings, and repack it. This means moving this process from cibuildwheel to setuptools.
Use another build backend, e.g. Hatchling, which provides build hooks.
Add an equivalent step in the conda-forge build process; this is likely the easiest change, though it does not cover source builds.
Generation should remain optional, so distribution builds can enable it without adding work to the development workflow. Options 1–3 could expose a build setting or environment variable to enable extraction.
Activity