mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-22 18:39:31 +01:00
setup: Add DeprecationWarning for Python 2.
This commit is contained in:
parent
fcf30a5601
commit
2ee0be35cb
11
setup.py
11
setup.py
@ -240,7 +240,7 @@ if sys.version_info < (2, 7, 9):
|
||||
'<http://doc.supybot.aperio.fr/en/latest/use/security.html#ssl-python-versions>',
|
||||
DeprecationWarning)
|
||||
elif sys.version_info < (3, 0):
|
||||
pass # fine, for the moment
|
||||
pass
|
||||
elif sys.version_info < (3, 4):
|
||||
warnings.warn('Running Limnoria on Python 3.2 or 3.3 is not '
|
||||
'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>',
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user