mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 09:22:03 +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
|
||||
|
||||
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():
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue