From 3bbb31528feea2105b97306b0728df94f812bc6e Mon Sep 17 00:00:00 2001 From: Eddie Lebow Date: Wed, 8 Apr 2020 23:30:41 -0400 Subject: [PATCH] Use `setuptools.find_packages()` in setup.py Ongoing refactoring efforts have been trying to introduce new packages. All packages must be listed in the packages argument to `setuptools.setup()`. `setuptools.find_packages()` provides a convenient way to list all packages without manually updating a list. --- setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index b6137c162..bc5ac01f3 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ from pathlib import Path -from setuptools import setup +import setuptools import sys min_version = (3, 6) @@ -26,7 +26,9 @@ with readme_file.open(encoding = "utf-8") as f: long_description = f.read() -setup( + + +setuptools.setup( name = "nextstrain-augur", version = __version__, author = "Nextstrain developers", @@ -41,7 +43,7 @@ "Change Log": "https://github.com/nextstrain/augur/blob/master/CHANGES.md#next", "Source": "https://github.com/nextstrain/augur", }, - packages = ['augur'], + packages = setuptools.find_packages(), package_data = {'augur': ['data/*']}, data_files = [("", ["LICENSE.txt"])], python_requires = '>={}'.format('.'.join(str(n) for n in min_version)),