0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-02-04 21:58:31 +00:00
alerta_alerta/alerta/__init__.py
Asher Foa 2cb00a7b9b iSort fixes (#1058)
* iSort fixes

* Remove unused import
2019-08-10 23:14:44 +02:00

29 lines
592 B
Python

import sys
if sys.version_info < (3,):
raise ImportError(
"""You are running Alerta 6.0 on Python 2
Alerta 6.0 and above are no longer compatible with Python 2.
Make sure you have pip >= 9.0 to avoid this kind of issue,
as well as setuptools >= 24.2:
$ pip install pip setuptools --upgrade
Your choices:
- Upgrade to Python 3.
- Install an older version of Alerta:
$ pip install 'alerta<6.0'
See the following URL for more up-to-date information:
https://github.com/alerta/alerta/wiki/Python-3
""")
from .app import create_app # noqa isort:skip
app = create_app()