sphinx-doc / sphinx-doc/sphinx-argparse
Issue importing mock with sphinx 9.1.0
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 38
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
Hi! 👋
On Arch Linux we are trying to use sphinx-argparse in the context of building man pages for khard, but this fails unfortunately: https://github.com/lucc/khard/issues/356
File "/usr/lib/python3.14/site-packages/sphinxarg/ext.py", line 18, in <module>
if ismodule(mock):
^^^^
NameError: name 'mock' is not defined
This seems similar to #82 but fails differently.
Currently, this means we are disabling the man pages for khard, so it would be awesome if this could be resolved (either here or in sphinx).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with sphinxarg/ext.py around line 18 and reproduce the import failure with Sphinx 9.1.0, comparing it with issue #82. Confirm the fix by importing the extension successfully and verifying that khard's man-page documentation can build again.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100