From a7da6d210a65d3fd248b0b0056728e35bacb0aba Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sun, 17 Jan 2021 10:30:44 +0100 Subject: [PATCH] Added hint for python 2 --- cps/__init__.py | 3 +++ setup.cfg | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) 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