diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2022-02-06 15:22:38 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-02-06 15:22:38 -0500 |
commit | ebdaa76c3c6c55d5cffd1a80903484d80cf146c6 (patch) | |
tree | c61a47022a1d81f0701d02fb3dfa061ee6215fa4 /setuptools/command/egg_info.py | |
parent | c49b7d36f872438020b3ed3b2c1ec0a4a5978f92 (diff) | |
download | python-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.py | 3 |
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) |