twisted / pydoctor

This is pydoctor, an API documentation generator that works by static analysis.
https://pydoctor.readthedocs.io
Other
179 stars 48 forks source link

Fix the standard library smoke test #732

Closed tristanlatr closed 9 months ago

tristanlatr commented 10 months ago

As a smoke test we run the tox environment cpython-apidocs.

This task pulls the latest CPython an run pydoctor on it. The trick is that is't set-up to unconditionally run with python 3.8 in the Github CI. All files that uses syntax introduced after python 3.8 (like the match statement or exception groups) are not being analyzed because the parser fails to produce the AST for these files.

We should pull a specific version of python, and run pydoctor with the corresponding python version instead.