setup: Add DeprecationWarning for Python 2.

This commit is contained in:
Valentin Lorentz 2019-01-02 10:55:36 +01:00
parent fcf30a5601
commit 2ee0be35cb

View File

@ -240,7 +240,7 @@ if sys.version_info < (2, 7, 9):
'<http://doc.supybot.aperio.fr/en/latest/use/security.html#ssl-python-versions>', '<http://doc.supybot.aperio.fr/en/latest/use/security.html#ssl-python-versions>',
DeprecationWarning) DeprecationWarning)
elif sys.version_info < (3, 0): elif sys.version_info < (3, 0):
pass # fine, for the moment pass
elif sys.version_info < (3, 4): elif sys.version_info < (3, 4):
warnings.warn('Running Limnoria on Python 3.2 or 3.3 is not ' warnings.warn('Running Limnoria on Python 3.2 or 3.3 is not '
'recommended because these versions do not support SSL ' 'recommended because these versions do not support SSL '
@ -248,4 +248,13 @@ elif sys.version_info < (3, 4):
'<http://doc.supybot.aperio.fr/en/latest/use/security.html#ssl-python-versions>', '<http://doc.supybot.aperio.fr/en/latest/use/security.html#ssl-python-versions>',
DeprecationWarning) DeprecationWarning)
if sys.version_info < (3, 0):
warnings.warn('You are installing Limnoria for Python 2. While Python 2 '
'is currently supported by Limnoria, this may change in the near '
'future. If there is anything preventing you frorm upgrading to '
'Python 3 (incompatible plugin, dependency, ...), please open a '
'bug at <https://github.com/ProgVal/Limnoria/issues> and we\'ll '
'see together what we can do about it.',
DeprecationWarning)
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79: # vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79: