summaryrefslogtreecommitdiff
path: root/setuptools/config/setupcfg.py
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-02-19 20:30:10 +0000
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-03-05 14:54:35 +0000
commit54f61809ed9da2a1ab3d14f7a8f06c3d74ad799c (patch)
tree5bf6f5454db4d87222c392f4b3602dc3f3da11b7 /setuptools/config/setupcfg.py
parentd3e62b109e0d6ec57dcf14207c7dd91610138666 (diff)
downloadpython-setuptools-git-54f61809ed9da2a1ab3d14f7a8f06c3d74ad799c.tar.gz
Find namespaces by default when using config in 'pyproject.toml'
Diffstat (limited to 'setuptools/config/setupcfg.py')
-rw-r--r--setuptools/config/setupcfg.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/setuptools/config/setupcfg.py b/setuptools/config/setupcfg.py
index 76feb6cd..5a449655 100644
--- a/setuptools/config/setupcfg.py
+++ b/setuptools/config/setupcfg.py
@@ -580,15 +580,12 @@ class ConfigOptionsHandler(ConfigHandler["Distribution"]):
if trimmed_value not in find_directives:
return self._parse_list(value)
- findns = trimmed_value == find_directives[1]
-
# Read function arguments from a dedicated section.
find_kwargs = self.parse_section_packages__find(
self.sections.get('packages.find', {})
)
- if findns:
- find_kwargs["namespaces"] = True
+ find_kwargs["namespaces"] = (trimmed_value == find_directives[1])
return expand.find_packages(**find_kwargs)