I'm checking if a package is out of date using
pkg_resources.get_distribution("mymodule").version
If the version isn't matching the latest, I'm running pip install --upgrade git+...
. Doing reload('mymodule')
is correctly representing the changes, but the above-mentioned snippet still shows the previous version even though the version was bumped in setup.py
I guess the version is only updated per python session? Any other ways of getting live information? Would it be safe to read the latest dist-info
directory?