Lorenz Quack created QPID-6574:
----------------------------------
Summary: Python - client version property is unreliable
Key: QPID-6574
URL: https://issues.apache.org/jira/browse/QPID-6574
Project: Qpid
Issue Type: Bug
Components: Python Client
Affects Versions: 0.33
Reporter: Lorenz Quack
In trunk (r1683751) the python clients tries to determine it's own version
through pkg_resources which is a 3rd party module provided by setuptools which
might not be installed.
Even if setuptools is installed this method is unreliable. It reports a version
that is installed not necessarily the version that is currently
imported/running. Additionally, the behaviour of pkg_resources in case there
are several versions installed is unclear.
While there doesn't seem to be a definitive canonical way of handling versions
in python there are several ways listed
[here|https://packaging.python.org/en/latest/single_source_version.html]. IMHO,
Option 3 which is also suggested [here|https://stackoverflow.com/a/7071358]
seems like the best option.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]