Closed levitsky closed 3 years ago
Good point, thanks. I would probably name it version_info
though, so that the user doesn't expect a string. Should I rename __version__
to version
then?
I think __version__
is expected to be a string still based upon what I've seen. Renaming version
to version_info
is fine though.
I'm not sure if __version__
is easy enough to find (as it's not tab-completed) and I see no real reason for it to be private, even though it is common. But we can provide both.
This PR closes #13. It adds a module,
pyteomics/version.py
, which defines a__version__
string and a function that parses it into a tuple similar tosys.version_info
, with a simple string representation.