All seems doable, thanks for the ideas! I may opt for something along the lines of:
Code:
from calibre.constants import numeric_version
if numeric_version < (5, 13, 0):
PyQt5 imports
else:
from qt.conf import yada
That should allow me to support Calibre 2.0+, with the advantage of being (somewhat) prepared for calibre PyQt7.