Quote:
Originally Posted by DNSB
Add a minimum version check so the Python 3 version won't install on a calibre version less than 5. Ghod knows enough plugins already have that minimum version check baked in.
Look at the Job Spy plugin for example. In it's root __init__.py, you find the following lines:
Code:
name = 'Job Spy'
description = JS_DESCRIPTION
supported_platforms = ['windows', 'osx', 'linux']
author = 'DaltonST'
version = (1, 0, 184)
minimum_calibre_version = (4, 6, 0) # originally 2.49.0
Change that tuple to (5,0,0) and happily forget Python 2.
|
But what about the Python 2 compatible version? How would that e handled along side a Python 3 version with the same name?