Force --version to be reproducible

By ordering the plugins, --version becomes reproducible so that it
continuously prints the same output (provided the plugins have not
changed).

Closes #297
This commit is contained in:
Raphael Das Gupta 2017-01-13 14:22:44 +00:00 committed by Ian Cordasco
parent 29d9090954
commit f0f2ea7f4e
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A

View file

@ -245,7 +245,7 @@ class OptionManager(object):
"""Generate a comma-separated list of versions of plugins."""
return join_on.join(
format_str % self.format_plugin(plugin)
for plugin in self.registered_plugins
for plugin in sorted(self.registered_plugins)
)
def update_version_string(self):