Bug #1452436 “testtools does not conform to PEP 396” : Bugs : testtools (original) (raw)
testtools does not conform to PEP 396
Bug #1452436 reported byDavid Riddle on 2015-05-06
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone |
---|---|---|---|---|
testtools | Triaged | Wishlist | Unassigned |
Bug Description
For our package management we use automated tooling to extract version numbers from python packages. I would like to request that you change the __version__ attribute so that it conforms to PEP 396. Currently __version__ returns a tuple according to PEP 396 it should return a string. From what I have seen it is common for the tuple form to be stored in __version_info__.
PEP 396 states:
#. When a module (or package) includes a version number, the version
SHOULD be available in the ``__version__`` attribute.
#. The ``__version__`` attribute's value SHOULD be a string.