]> khamidou — GitHub mirrors - imapclient.git/commitdiff
Document the new pyOpenSSL check.
authorMenno Smits <menno@freshfoo.com>
Wed, 17 Aug 2016 02:48:58 +0000 (14:48 +1200)
committerMenno Smits <menno@freshfoo.com>
Wed, 17 Aug 2016 02:48:58 +0000 (14:48 +1200)
The error emitted when the version is wrong now links to the docs.

--HG--
branch : stable

doc/src/index.rst
doc/src/releases.rst
imapclient/tls.py

index 133eeabd9021cc5789b7703f77e371e3fd7bea93..7646a75c4fcd51fd7bf3f4029958ecee45a074f0 100644 (file)
@@ -175,6 +175,18 @@ The above examples show some of the most common TLS parameter
 customisations but there are many other tweaks are possible. Consult
 the Python 3 :py:mod:`ssl` package documentation for further options.
 
+Old pyOpenSSL Versions
++++++++++++++++++++++++
+
+IMAPClient's TLS functionality will not behaviour correctly if an
+out-of-date version of pyOpenSSL is used. On some systems
+(particularly OS X) the system installed version of pyOpenSSL will
+take precedence over any user installed version. Use of virtualenvs is
+strongly encouraged to work around this.
+
+IMAPClient checks the installed pyOpenSSL version at import time and
+will fail early if an old pyOpenSSL version is found.
+
 Using gevent with IMAPClient
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Some extra monkey patching is required so that the gevent_ package can
index 21d9b2ba66f0472f6ccc8d3576a98fc262c2f5f7..8850c01e48e355588c13ae702468b3d2d39e19ce 100644 (file)
@@ -1,5 +1,19 @@
 :tocdepth: 1
 
+===============
+ Version 1.0.2
+===============
+
+Changed
+-------
+- Explicitly check that the required pyOpenSSL version is installed
+- Start testing against Python 3.5
+- Update doc links from readthedocs.org to readthedocs.io
+
+Fixed
+-----
+- Allow installation from alternate directories
+
 ===============
  Version 1.0.1
 ===============
index 3611d73678969a46ae19aeec2494c12c5d03aa6f..617b351e9e15a5c84e1f8c4e0aa2d7a5848508c0 100644 (file)
@@ -25,8 +25,10 @@ def check_pyopenssl_version():
     from .version import min_pyopenssl_version
 
     if V(installed_pyopenssl_version) < V(min_pyopenssl_version):
-       raise ImportError("pyOpenSSL version (%s) is too old. Need at least %s."
-                         % (installed_pyopenssl_version, min_pyopenssl_version))
+       raise ImportError(
+           "pyOpenSSL version (%s) is too old. Need at least %s.\n"
+           "See http://imapclient.rtfd.io/#old-pyopenssl-versions"
+           % (installed_pyopenssl_version, min_pyopenssl_version))
 
 check_pyopenssl_version()