qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lorenz Quack (JIRA)" <j...@apache.org>
Subject [jira] [Created] (QPID-6574) Python - client version property is unreliable
Date Fri, 05 Jun 2015 14:10:00 GMT
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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message