Put the explicit version identifier in each module.
__version__ = "Some.version.String"
Put them in every module you write, without exception.
import someModule print someModule.__version__
This is (a) explicit, (b) easy to manage. You can also use Keyword Substitution from your version control tool to actually populate the version string for each commit.
S. Lott
source share