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)
commita36ecfa80ee60f30cce09590e030d79abe542d04
tree639deef6835365a642a27061d35c31c6e008331f
parent9b539bfe237cf95ca6ba4055ae283fa55e7af7ff
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]