Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/astrojuanlu/sphinx-autosummary-tracebacks
https://github.com/astrojuanlu/sphinx-autosummary-tracebacks
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/astrojuanlu/sphinx-autosummary-tracebacks
- Owner: astrojuanlu
- Created: 2021-07-24T19:33:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-24T22:35:00.000Z (over 3 years ago)
- Last Synced: 2024-10-14T19:59:25.568Z (2 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Autosummary Tracebacks
See discussion at https://github.com/sphinx-doc/sphinx/issues/7989
```bash
(.venv) $ pip install -r requirements.txt
(.venv) $ python -c "import test_pkg.A; print(test_pkg.A)"
Traceback (most recent call last):
File "", line 1, in
File "/home/juanlu/Projects/RTD/tmp/sphinx-autosummary-tracebacks/.venv/lib/python3.7/site-packages/test_pkg.py", line 7, in
import attr # Do not install to surface problem
ModuleNotFoundError: No module named 'attr'
(.venv) $ make html
Running Sphinx v4.1.1
loading pickled environment... done
[autosummary] generating autosummary for: index.rst
WARNING: [autosummary] failed to import 'test_pkg.A': no module named test_pkg.A
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
no targets are out of date.
build succeeded, 1 warning.The HTML pages are in build/html.
(.venv) $ python -m sphinx -W -b html source/ build/html
Running Sphinx v4.1.1
[autosummary] generating autosummary for: index.rstWarning, treated as error:
[autosummary] failed to import 'test_pkg.A': no module named test_pkg.A
```