mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 09:22:03 +00:00
Fix setup.py for pip 10.0.0
This commit is contained in:
parent
1e03e6f80a
commit
8d3a43c17d
1 changed files with 4 additions and 2 deletions
6
setup.py
6
setup.py
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue