Skip to content

Commit

Permalink
Use setuptools.find_packages() in setup.py
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
elebow committed Apr 9, 2020
1 parent e03e1da commit 3bbb315
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pathlib import Path
from setuptools import setup
import setuptools
import sys

min_version = (3, 6)
Expand All @@ -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",
Expand All @@ -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)),
Expand Down

0 comments on commit 3bbb315

Please sign in to comment.