diff options
author | Gunnlaugur Thor Briem <gunnlaugur@gmail.com> | 2019-06-12 13:24:33 +0000 |
---|---|---|
committer | José Padilla <jpadilla@webapplicate.com> | 2019-06-12 09:24:33 -0400 |
commit | 3d47b0ea9e5d489f9c90ee6dde9e3d9d69244e3a (patch) | |
tree | cacb4b31520037ccb066534824b42c279f6123d4 | |
parent | 2c8bfe502a5fc3803e6334c4914016bfa805f181 (diff) | |
download | pyjwt-3d47b0ea9e5d489f9c90ee6dde9e3d9d69244e3a.tar.gz |
Document (and prefer) `pyjwt[crypto]` req format (#426)
-rw-r--r-- | docs/installation.rst | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/installation.rst b/docs/installation.rst index a10cddd..7e9c220 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -12,11 +12,16 @@ Cryptographic Dependencies (Optional) If you are planning on encoding or decoding tokens using certain digital signature algorithms (like RSA or ECDSA), you will need to install the -cryptography_ library. +cryptography_ library. This can be installed explicitly, or as a required +extra in the ``pyjwt`` requirement: .. code-block:: console - $ pip install cryptography + $ pip install pyjwt[crypto] + +The ``pyjwt[crypto]`` format is recommended in requirements files in +projects using ``PyJWT``, as a separate ``cryptography`` requirement line +may later be mistaken for an unused requirement and removed. .. _legacy-deps: |