Add version command and diagnostic logging
authorJeremy Stanley <fungi@yuggoth.org>
Tue, 8 May 2018 18:46:54 +0000 (18:46 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Tue, 8 May 2018 18:55:16 +0000 (18:55 +0000)
commit6a9bb53b0c872e05edd3e0e0e14b155cced42f30
tree639deef6835365a642a27061d35c31c6e008331f
parent0dada4ecf3a22443c09d1f6678d55664b1e8a986
Add version command and diagnostic logging

Implement a new Versions class which is instantiated at startup and
reflects the versions of mudpy as well as the Python interpreter on
which it's running and versions of associated Python dependencies
plus any other importable Python packages which are found to be
present in the environment.

Include a show version command which provides a relevant summary of
this information and a selftest routine to make sure it's exercised.
Also log detailed version and diagnostic information at service
start, for ease of troubleshooting and defect reporting.
doc/source/api.rst
mudpy/__init__.py
mudpy/misc.py
mudpy/tests/selftest.py
mudpy/version.py [new file with mode: 0644]