diff --git a/cps/__init__.py b/cps/__init__.py index b1dfbf88..d4f46917 100644 --- a/cps/__init__.py +++ b/cps/__init__.py @@ -99,6 +99,9 @@ def create_app(): cache_buster.init_cache_busting(app) log.info('Starting Calibre Web...') + if sys.version_info < (3, 0): + log.info('Python2 is EOL since end of 2020, this version of Calibre-Web supporting Python2 please consider upgrading to Python3') + print('Python2 is EOL since end of 2020, this version of Calibre-Web supporting Python2 please consider upgrading to Python3') Principal(app) lm.init_app(app) app.secret_key = os.getenv('SECRET_KEY', config_sql.get_flask_session_key(ub.session)) diff --git a/setup.cfg b/setup.cfg index b10c2828..94f03c3e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -20,7 +20,6 @@ license_file = LICENSE classifiers = Development Status :: 5 - Production/Stable License :: OSI Approved :: GNU Affero General Public License v3 - Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 Programming Language :: Python :: 3.5