2e0d95f3cd
Extend the steps taken in tox.ini by type checking the 'devicetree' package. This will make it easier for callers to type-check code that uses the low level DT module's public APIs, since they can rely on the type checker a bit more. It will also help avoid bugs by adding some type checking for future changes to this module. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no> |
||
---|---|---|
.. | ||
python-devicetree | ||
gen_defines.py | ||
README.txt |
This directory used to contain the edtlib.py and dtlib.py libraries and tests, alongside the gen_defines.py script that uses them for converting DTS to the C macros used by Zephyr. The libraries and tests have now been moved to the 'python-devicetree' subdirectory. We are now in the process of extracting edtlib and dtlib into a standalone source code library that we intend to share with other projects. Links related to the work making this standalone: https://pypi.org/project/devicetree/ https://python-devicetree.readthedocs.io/en/latest/ https://github.com/zephyrproject-rtos/python-devicetree The 'python-devicetree' subdirectory you find here next to this README.txt matches the standalone python-devicetree repository linked above. For now, the 'main' copy will continue to be hosted here in the zephyr repository. We will mirror changes into the standalone repository as needed; you can just ignore it for now. Code in the zephyr repository which needs these libraries will import devicetree.edtlib from now on, but the code will continue to be found by manipulating sys.path for now. Eventually, as APIs stabilize, the python-devicetree code in this repository will disappear, and a standalone repository will be the 'main' one.