Move wrapped C library to subpackage 38/3238/9
authorLott, Christopher (cl778h) <cl778h@att.com>
Thu, 9 Apr 2020 22:25:19 +0000 (18:25 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Fri, 10 Apr 2020 19:11:22 +0000 (15:11 -0400)
commitdb26ba217530985dbdcf739640c16c6cecd54a1d
tree4a35503a3ef056b1fbbde2611064f39cbbe6954e
parent4b9552c36d910264474a25cd7c1520a2a816f4d4
Move wrapped C library to subpackage

Create new subpackage rmr/rmrclib with the C library loaded via ctypes.
Add method to get constants from RMR library and detect mock objects.
Split test files into test_rmr and test_rmrclib.
Extend sphinx configuration to mock the rmrclib subpackage, so the
rmr package receives a mock instead of a real object.
This change allows generation of API documentation by Sphinx
when the .so file is not available and import fails, for example
at ReadTheDocs.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: Idb9bb1d7a534c4142ea0353b5a48d3132e55f6e6
docs/conf.py [changed mode: 0644->0755]
docs/rmr_api.rst
ricxappframe/rmr/rmr.py
ricxappframe/rmr/rmrclib/__init__.py [new file with mode: 0644]
ricxappframe/rmr/rmrclib/rmrclib.py [new file with mode: 0644]
tests/test_rmr.py
tests/test_rmrclib.py [new file with mode: 0644]