diff options
author | Donald Stufft <donald@stufft.io> | 2016-01-23 21:07:54 -0500 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2016-01-23 21:07:54 -0500 |
commit | 1a420843b05a99f7c96a975f60f8575b6bdf9284 (patch) | |
tree | 3d3ee31b861cdf95cba3ba6f80bc1b6f1c1156bb | |
parent | 841336cf89ff343b0f9c8aa1fc6dd8b2936a589c (diff) | |
parent | 30e199e0fb220a17b3089508a59d29a2924f10e4 (diff) | |
download | cryptography-1a420843b05a99f7c96a975f60f8575b6bdf9284.tar.gz cryptography-1a420843b05a99f7c96a975f60f8575b6bdf9284.tar.bz2 cryptography-1a420843b05a99f7c96a975f60f8575b6bdf9284.zip |
Merge pull request #2685 from alex/setuptools-dep
Require a newer setuptools.
-rw-r--r-- | setup.py | 2 | ||||
-rw-r--r-- | src/cryptography/hazmat/backends/__init__.py | 7 |
2 files changed, 2 insertions, 7 deletions
@@ -37,7 +37,7 @@ requirements = [ "idna>=2.0", "pyasn1>=0.1.8", "six>=1.4.1", - "setuptools>=1.0", + "setuptools>=11.3", ] setup_requirements = [] diff --git a/src/cryptography/hazmat/backends/__init__.py b/src/cryptography/hazmat/backends/__init__.py index 256fee39..96a431dc 100644 --- a/src/cryptography/hazmat/backends/__init__.py +++ b/src/cryptography/hazmat/backends/__init__.py @@ -17,12 +17,7 @@ def _available_backends(): if _available_backends_list is None: _available_backends_list = [ - # setuptools 11.3 deprecated support for the require parameter to - # load(), and introduced the new resolve() method instead. - # This can be removed if/when we can assume setuptools>=11.3. At - # some point we may wish to add a warning, to push people along, - # but at present this would result in too many warnings. - ep.resolve() if hasattr(ep, "resolve") else ep.load(require=False) + ep.resolve() for ep in pkg_resources.iter_entry_points( "cryptography.backends" ) |