Skip to content

Commit c8339b3

Browse files
committed
Use include keyword in find_packages() call
Based on discussion in #641
1 parent ecf061c commit c8339b3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

source/guides/distributing-packages-using-setuptools.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,14 @@ packages
353353

354354
::
355355

356-
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
356+
packages=find_packages(include=['sample', 'sample.*']),
357357

358358
Set ``packages`` to a list of all :term:`packages <Import Package>` in your
359359
project, including their subpackages, sub-subpackages, etc. Although the
360360
packages can be listed manually, ``setuptools.find_packages()`` finds them
361-
automatically. Use the ``exclude`` keyword argument to omit packages that are
362-
not intended to be released and installed.
361+
automatically. Use the ``include`` keyword argument to find only the given
362+
packages. Use the ``exclude`` keyword argument to omit packages that are not
363+
intended to be released and installed.
363364

364365

365366
py_modules

0 commit comments

Comments
 (0)