mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
Check python version in setup.py
This commit is contained in:
parent
4f2cb40aea
commit
f3f9b3c27a
1 changed files with 7 additions and 0 deletions
7
setup.py
7
setup.py
|
|
@ -1,12 +1,19 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import sys
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
from warnings import warn
|
||||||
|
|
||||||
from pip.req import parse_requirements
|
from pip.req import parse_requirements
|
||||||
from setuptools import PackageFinder
|
from setuptools import PackageFinder
|
||||||
|
|
||||||
from aiogram import Stage, VERSION
|
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():
|
def get_description():
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue