summaryrefslogtreecommitdiff
path: root/docs/userguide
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-06-28 09:25:51 +0100
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-06-28 09:25:51 +0100
commit522850384ea92208116d6f2bab6db48042e34b16 (patch)
treea87c0121c455f0b444fdeb1071b9047df468600a /docs/userguide
parentda37f7b5d747c5f1e0f63c52a2ee4567c9d14490 (diff)
downloadpython-setuptools-git-522850384ea92208116d6f2bab6db48042e34b16.tar.gz
[Docs:discovery] Attempt to clarify include/exclude
Diffstat (limited to 'docs/userguide')
-rw-r--r--docs/userguide/package_discovery.rst9
1 files changed, 3 insertions, 6 deletions
diff --git a/docs/userguide/package_discovery.rst b/docs/userguide/package_discovery.rst
index 93419a24..6770833f 100644
--- a/docs/userguide/package_discovery.rst
+++ b/docs/userguide/package_discovery.rst
@@ -319,8 +319,7 @@ in ``src`` that start with the name ``pkg`` and not ``additional``:
[options.packages.find]
where = src
- include = pkg*
- exclude = additional
+ include = pkg* # alternatively: `exclude = additional*`
.. note::
``pkg`` does not contain an ``__init__.py`` file, therefore
@@ -334,8 +333,7 @@ in ``src`` that start with the name ``pkg`` and not ``additional``:
# ...
packages=find_packages(
where='src',
- include=['pkg*'],
- exclude=['additional'],
+ include=['pkg*'], # alternatively: `exclude=['additional*']`
),
package_dir={"": "src"}
# ...
@@ -353,8 +351,7 @@ in ``src`` that start with the name ``pkg`` and not ``additional``:
[tool.setuptools.packages.find]
where = ["src"]
- include = ["pkg*"]
- exclude = ["additional"]
+ include = ["pkg*"] # alternatively: `exclude = ["additional*"]`
namespaces = false
.. note::