summaryrefslogtreecommitdiff
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-02-06 15:22:38 -0500
committerJason R. Coombs <jaraco@jaraco.com>2022-02-06 15:22:38 -0500
commitebdaa76c3c6c55d5cffd1a80903484d80cf146c6 (patch)
treec61a47022a1d81f0701d02fb3dfa061ee6215fa4 /setuptools/command/egg_info.py
parentc49b7d36f872438020b3ed3b2c1ec0a4a5978f92 (diff)
downloadpython-setuptools-git-ebdaa76c3c6c55d5cffd1a80903484d80cf146c6.tar.gz
Refactor _entry_points to separate loading from rendering. Explicitly validate and restore validation of entry points that don't match the pattern.
Diffstat (limited to 'setuptools/command/egg_info.py')
-rw-r--r--setuptools/command/egg_info.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 2e8ca4b7..8af018f4 100644
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -717,7 +717,8 @@ def write_arg(cmd, basename, filename, force=False):
def write_entries(cmd, basename, filename):
- defn = _entry_points.render(cmd.distribution.entry_points)
+ eps = _entry_points.load(cmd.distribution.entry_points)
+ defn = _entry_points.render(eps)
cmd.write_or_delete_file('entry points', filename, defn, True)