Skip to content

Commit

Permalink
Add crypto extras to pyjwt, which pulls in cryptogaphy package (#2443)
Browse files Browse the repository at this point in the history
* Add crypto extras to pyjwt, which pulls in cryptogaphy package
* Remove cryptography dependency from more places
* Remove integrations extra from docs
  • Loading branch information
EnricoMi committed Mar 14, 2023
1 parent 45f3d72 commit 554b2b2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions doc/introduction.rst
Expand Up @@ -37,9 +37,6 @@ This package is in the `Python Package Index
be enough. You can also clone it on `Github
<http://github.com/PyGithub/PyGithub>`__.

If you wish to use GitHub Integrations, you'll want to be sure to install the
'integrations' option: ``pip install PyGithub[integrations]``

Licensing
---------

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
@@ -1,6 +1,6 @@
pynacl>=1.4.0
requests>=2.14.0
pyjwt>=2.4.0
pyjwt[crypto]>=2.4.0
sphinx<3
Jinja2<3.1
sphinx-rtd-theme<1.1
Expand Down
7 changes: 4 additions & 3 deletions setup.py
Expand Up @@ -104,10 +104,11 @@
python_requires=">=3.7",
install_requires=[
"deprecated",
"pyjwt>=2.4.0",
"pyjwt[crypto]>=2.4.0",
"pynacl>=1.4.0",
"requests>=2.14.0",
],
extras_require={"integrations": ["cryptography"]},
tests_require=["cryptography", "httpretty>=1.0.3"],
# can be removed, still here to avoid breaking user code
extras_require={"integrations": []},
tests_require=["httpretty>=1.0.3"],
)
1 change: 0 additions & 1 deletion test-requirements.txt
@@ -1,4 +1,3 @@
cryptography
httpretty>=1.0.3
pytest>=5.3
pytest-cov>=2.8

0 comments on commit 554b2b2

Please sign in to comment.