From a4997d4edcbd25db46a59491f37587f1084d711d Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 18 Sep 2024 14:12:38 -0400 Subject: [PATCH] RF+ENH: also report requests and urllib3 versions, do not prefix with v no v prefix since is not providing any information on top; sorting for deterministic order --- dandi/cli/command.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/dandi/cli/command.py b/dandi/cli/command.py index c49542fe1..aa1871c45 100644 --- a/dandi/cli/command.py +++ b/dandi/cli/command.py @@ -114,16 +114,19 @@ def main(ctx, log_level, pdb=False): lambda r: r.name != "pyout" and not r.name.startswith("pyout.") ) root.addHandler(handler) + exts = ( + "dandischema", + "h5py", + "hdmf", + "pynwb", + "requests", + "urllib3", + ) lgr.info( - "dandi v%s, dandischema v%s, hdmf v%s, pynwb v%s, h5py v%s", + "dandi %s, " + + ", ".join("%s %s" % (e, get_module_version(e)) for e in sorted(exts)), __version__, - get_module_version("dandischema"), - get_module_version("h5py"), - get_module_version("hdmf"), - get_module_version("pynwb"), - get_module_version("requests"), - get_module_version("urllib3"), extra={"file_only": True}, ) lgr.info("sys.argv = %r", sys.argv, extra={"file_only": True})