From 41c764971be60aa937cb145204ef03abf5f3ee72 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sun, 15 Apr 2018 04:12:24 +0300 Subject: [PATCH] Use `find_packages()` instead of for `PackageFinder.find()` in `setup.py` --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index b4f22c4f..e6485ca1 100755 --- a/setup.py +++ b/setup.py @@ -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',