Skip to content

Commit 3d47b0e

Browse files
gthbjpadilla
authored andcommitted
Document (and prefer) pyjwt[crypto] req format (jpadilla#426)
1 parent 2c8bfe5 commit 3d47b0e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/installation.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@ Cryptographic Dependencies (Optional)
1212

1313
If you are planning on encoding or decoding tokens using certain digital
1414
signature algorithms (like RSA or ECDSA), you will need to install the
15-
cryptography_ library.
15+
cryptography_ library. This can be installed explicitly, or as a required
16+
extra in the ``pyjwt`` requirement:
1617

1718
.. code-block:: console
1819
19-
$ pip install cryptography
20+
$ pip install pyjwt[crypto]
21+
22+
The ``pyjwt[crypto]`` format is recommended in requirements files in
23+
projects using ``PyJWT``, as a separate ``cryptography`` requirement line
24+
may later be mistaken for an unused requirement and removed.
2025

2126
.. _legacy-deps:
2227

0 commit comments

Comments
 (0)