From 6a9c8c7c1e2d1f686d6abbc28f2a021e7a8426d5 Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Thu, 6 Feb 2020 11:13:18 -0500 Subject: [PATCH] Use find_packages to populate the package list This will prevent further issues like #372 (though technically #372 would still have caused a problem because __init__.py was missing). --- setup.cfg | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/setup.cfg b/setup.cfg index 9149b4de6..2ba134dbb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,19 +22,7 @@ classifiers = [options] python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <3.8 packages = - pytype - pytype/overlays - pytype/pyc - pytype/pyi - pytype/pytd - pytype/pytd/parse - pytype/tools - pytype/tools/analyze_project - pytype/tools/annotate_ast - pytype/tools/merge_pyi - pytype/tools/traces - pytype/tools/xref - pytype/typegraph + find: install_requires = attrs importlab>=0.5.1 @@ -43,6 +31,15 @@ install_requires = six typed_ast; python_version >= "3.3" +[options.packages.find] +include = + pytype + pytype.* +exclude = + pytype.test_data + pytype.tests + pytype.typeshed.tests + [options.entry_points] console_scripts = annotate-ast = pytype.tools.annotate_ast.main:main