diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-05 14:21:41 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-05 14:21:41 -0500 |
commit | 92a553d3adeb431cdf92b136ac9ccc3f2ef98bf1 (patch) | |
tree | 5fc6312e181a4dea87a02e700b49c065283c7f9a /setuptools | |
parent | 7fa87f2fbdf84d414e069ca96f6c6d860d7e0505 (diff) | |
download | python-setuptools-git-11.3.tar.gz |
Add EntryPoint.resolve and deprecate most usage of EntryPoint.load. Removed EntryPoint._load.11.3
Diffstat (limited to 'setuptools')
-rw-r--r-- | setuptools/command/test.py | 2 | ||||
-rw-r--r-- | setuptools/dist.py | 2 | ||||
-rw-r--r-- | setuptools/tests/test_sdist.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/test.py b/setuptools/command/test.py index 2bf5cb16..42689f70 100644 --- a/setuptools/command/test.py +++ b/setuptools/command/test.py @@ -172,4 +172,4 @@ class test(Command): if val is None: return parsed = EntryPoint.parse("x=" + val) - return parsed._load()() + return parsed.resolve()() diff --git a/setuptools/dist.py b/setuptools/dist.py index 1917a610..bc29b131 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -434,7 +434,7 @@ class Distribution(_Distribution): for ep in pkg_resources.iter_entry_points('distutils.commands'): if ep.name not in self.cmdclass: # don't require extras as the commands won't be invoked - cmdclass = ep._load() + cmdclass = ep.resolve() self.cmdclass[ep.name] = cmdclass return _Distribution.print_commands(self) diff --git a/setuptools/tests/test_sdist.py b/setuptools/tests/test_sdist.py index d3494d7a..9013b505 100644 --- a/setuptools/tests/test_sdist.py +++ b/setuptools/tests/test_sdist.py @@ -415,5 +415,5 @@ def test_default_revctrl(): """ ep_def = 'svn_cvs = setuptools.command.sdist:_default_revctrl' ep = pkg_resources.EntryPoint.parse(ep_def) - res = ep._load() + res = ep.resolve() assert hasattr(res, '__iter__') |