Done!
Configuration for Debug in PyCharm:
--builder coverage --verbose --keep-going --conf-dir /Users/folkertmeeuw/cpython/Doc --doctree-dir /Users/folkertmeeuw/cpython/Doc/build/doctrees /Users/folkertmeeuw/cpython/Doc /Users/folkertmeeuw/cpython/Doc/build/coverage
creates c.txt
, python.txt
files.
Changes in conf.py
for Terminal:
PYTHON = python3
VENVDIR = ./venv
SPHINXBUILD = PATH=$(VENVDIR)/bin:$$PATH sphinx-build
BLURB = PATH=$(VENVDIR)/bin:$$PATH blurb
JOBS = auto
PAPER =
SOURCES = /Users/folkertmeeuw/cpython
DISTVERSION = $(shell $(PYTHON) tools/extensions/patchlevel.py)
REQUIREMENTS = requirements.txt
SPHINXERRORHANDLING = -W
# Internal variables.
PAPEROPT_a4 = -D latex_elements.papersize=a4paper
PAPEROPT_letter = -D latex_elements.papersize=letterpaper
ALLSPHINXOPTS = --builder $(BUILDER) \
--verbose \
--keep-going \
--jobs $(JOBS) \
--conf-dir $(SOURCES)/Doc \
--doctree-dir $(SOURCES)/Doc/build/doctrees \
$(PAPEROPT_$(PAPER)) \
$(SPHINXOPTS) $(SPHINXERRORHANDLING) \
$(SOURCES)/Doc \
$(SOURCES)/Doc/build/$(BUILDER)
creates c.txt, python.txt files, too.
Modules that failed to import:
* _tkinter -- No module named '_tkinter'
* dbm.sqlite3 -- No module named 'dbm.sqlite3'
* encodings.mbcs -- cannot import name 'mbcs_encode' from 'codecs' (/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/codecs.py)
* msvcrt -- No module named 'msvcrt'
* sitecustomize -- No module named 'sitecustomize'
* sys.monitoring -- No module named 'sys.monitoring'; 'sys' is not a package
* turtle -- No module named '_tkinter'
* usercustomize -- No module named 'usercustomize'
* winreg -- No module named 'winreg'
* winsound -- No module named 'winsound'
Possible is then
ALLSPHINXOPTS = --builder $(BUILDER) \
--verbose \
--jobs $(JOBS) \
--conf-dir $(SOURCES)/Doc \
--doctree-dir $(SOURCES)/Doc/build/doctrees \
$(PAPEROPT_$(PAPER)) \
$(SPHINXOPTS) $(SPHINXERRORHANDLING) \
$(SOURCES)/Doc \
$(SOURCES)/Doc/build/$(BUILDER)
in Makefile in combination with
coverage_ignore_modules = [
r'[D|d][B|b][M|m]',
r'[E|e][N|n]',
r'[M|m][S|s][V|v]',
r'[S|s][I|i][T|t][E|e]',
r'[S|s][Y|y][S|s]',
r'[T|t][K|k]',
r'[_][T|t][K|k]',
r'[T|t][U|u][R|r]',
r'[U|u][S|s][E|e][R|r]',
r'[W|w][I|i][N|n]',
]
in conf.py file.
Python 3.12 didn’t integrate the dbm.sqlite3
, but it’s in 3.13.
Others are encoding, msvr, site, sys, turtle, and customizations. But that is probably too rough.