Check python version in setup.py

This commit is contained in:
Alex Root Junior 2018-02-22 02:11:29 +02:00
parent 4f2cb40aea
commit f3f9b3c27a

View file

@ -1,12 +1,19 @@
#!/usr/bin/env python3
import sys
from distutils.core import setup
from warnings import warn
from pip.req import parse_requirements
from setuptools import PackageFinder
from aiogram import Stage, VERSION
MINIMAL_PY_VERSION = (3, 6)
if sys.version_info < MINIMAL_PY_VERSION:
warn('aiogram works only with Python {}+'.format('.'.join(map(str, MINIMAL_PY_VERSION)), RuntimeWarning))
def get_description():
"""