| Aug | SEP | Oct |
| 30 | ||
| 2023 | 2024 | 2025 |
COLLECTED BY
Collection: End Of Term 2024 Pre-Election Crawls
To see all available qualifiers, see our documentation.
Sign in /| Name | Name |
Last commit date
| ||
|---|---|---|---|---|
Latest commitHistory | ||||
| ||||
__doc__ for RustPython
__doc__ attributes generator for objects written in RustPython.
It's composed of two parts of:
●the generate_docs.py script that extracts the __doc__ attributes from CPython to docs.inc.rs
●the rustpython-doc rust crate that uses the docs.inc.rs file to create a documentation Database.
This documentation database is then used by macros pymodule and pyclass macros of the rustpython-derive crate to automatically add the __doc__ attribute.
The docs.inc.rs database file can be generated with
docs.inc.rs
$ deactivate">$ python -m venv gendocs
$ source gendocs/bin/activate
$ python -I generate_docs.py <path_to_RustPython> docs.inc.rs
$ deactivate
or using docker
$ docker pull python:slim
$ docker run python:slim python --version
Python 3.10.8
$ ls
__doc__ RustPython
$ docker run -v $(pwd):/RustPython -w /RustPython/__doc__ python:slim python generate_docs.py ../RustPython docs.inc.rs
and do not forget to update cargo before the test
$ cargo update
__doc__ is not changed?