suever / pydicom-experimental

pydicom test
0 stars 1 forks source link

pydicom lacks embedded version infoformation #87

Closed suever closed 9 years ago

suever commented 9 years ago

From NikitaTh...@gmail.com on June 11, 2010 12:24:58

Many (most?) Python modules have embedded version info; pydicom does not. When writing install routines, it's really nice to be able to import a module and check that the version is adequate. For example --

import dicom dicom.version '0.9.4'

There's no official standard for the name of this attribute, but the Python world seems to be coalescing around version. See here for more info: http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package I'd like to see this simple feature added to pydicom.

Thanks Philip

Original issue: http://code.google.com/p/pydicom/issues/detail?id=87

suever commented 9 years ago

From darcymason@gmail.com on June 13, 2010 19:57:26

dicom.version was added a while ago -- it should be available in recent versions (it is working for me on my 0.9.4-1 version).

I like the idea of also having the tuple version_info as discussed in that link; I'll leave this issue on to add that. I'm not sure what people do with version or version_info for repository revisions between releases, though ... any idea on that? The linked discussion talks about embedding revision numbers from the source control system, but I'm not a fan of doing that.

Status: Accepted
Owner: darcymason
Labels: -Type-Defect -Difficulty-Medium Type-Enhancement Difficulty-Easy

suever commented 9 years ago

From NikitaTh...@gmail.com on June 14, 2010 07:57:47

Sorry, I'm still on 0.9.3 and I didn't see anything in the issue tracker related to version. Thanks for adding it.

I don't know if there's a standard for inter-release numbers. Adding a 'b' for beta might work, as in "0.9.4b".

suever commented 9 years ago

From darcymason@gmail.com on July 28, 2010 16:47:36

This issue was closed by revision 63ab240c0c .

Status: Fixed