Use find_packages() instead of for PackageFinder.find() in setup.py

This commit is contained in:
Alex Root Junior 2018-04-15 04:12:24 +03:00
parent 0de77cdea6
commit 41c764971b

View file

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