mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +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
|
import sys
|
||||||
from warnings import warn
|
from warnings import warn
|
||||||
|
|
||||||
from pip.req import parse_requirements
|
|
||||||
from setuptools import PackageFinder, setup
|
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
|
from aiogram import Stage, VERSION
|
||||||
|
|
||||||
|
|
@ -46,7 +49,6 @@ setup(
|
||||||
name='aiogram',
|
name='aiogram',
|
||||||
version=VERSION.version,
|
version=VERSION.version,
|
||||||
packages=PackageFinder.find(exclude=('tests', 'tests.*', 'examples.*', 'docs',)),
|
packages=PackageFinder.find(exclude=('tests', 'tests.*', 'examples.*', 'docs',)),
|
||||||
requires_python='>=3.6',
|
|
||||||
url='https://github.com/aiogram/aiogram',
|
url='https://github.com/aiogram/aiogram',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
author='Alex Root Junior',
|
author='Alex Root Junior',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue