Fix setup.py for pip 10.0.0

This commit is contained in:
Alex Root Junior 2018-04-14 20:51:14 +03:00
parent 1e03e6f80a
commit 8d3a43c17d

View file

@ -3,8 +3,11 @@
import sys
from warnings import warn
from pip.req import parse_requirements
from setuptools import PackageFinder, setup
try:
from pip.req import parse_requirements
except ModuleNotFoundError: # pip >= 10.0.0
from pip._internal.req import parse_requirements
from aiogram import Stage, VERSION
@ -46,7 +49,6 @@ setup(
name='aiogram',
version=VERSION.version,
packages=PackageFinder.find(exclude=('tests', 'tests.*', 'examples.*', 'docs',)),
requires_python='>=3.6',
url='https://github.com/aiogram/aiogram',
license='MIT',
author='Alex Root Junior',