Created attachment 674353 [details] Quick patch to add lvm.__version__ etc. Description of problem: I'd like some way to test the version of the python-lvm module within code so that I can more easily turn features off or just not use old versions. The commonish python way to do this is to supply the module top levels: lvm.__version__ # string of the version lvm.__version_info__ # tuple of the version ...so this patch does that: http://james.fedorapeople.org/patches/pylvm2-version.patch ...although it requires manually updating the code for each version change, which sucks.
Suggest using lvm2-python-libs pkg in rawhide, the successor to python-lvm. Version is obtainable via lvm.getVersion().