Skip to content

Commit f016897

Browse files
committed
add pyjwt extra
1 parent c9fcb4d commit f016897

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

setup.py

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,37 +33,55 @@
3333
"aiohttp >= 3.6.2, < 4.0.0.dev0",
3434
] + requests_extra_require
3535

36+
pyjwt_extra_require = [
37+
"pyjwt>=2.0",
38+
"cryptography>=38.0.3",
39+
"cryptography < 39.0.0; python_version == '3.7'",
40+
]
41+
3642
# Unit test requirements.
3743
testing_extra_require = [
3844
"flask",
3945
"freezegun",
4046
"mock",
41-
"cryptography < 39.0.0",
4247
"pyopenssl",
4348
"pytest",
4449
"pytest-cov",
4550
"pytest-localserver",
4651
"pyu2f",
47-
"pyjwt",
4852
"responses",
53+
# TODO(): Remove `grpcio` from testing requirements once an extra is added for `grpcio` dependency.
4954
"grpcio",
55+
# TODO(): Remove `oauth2client` from testing requirements once an extra is added for `grpcio` dependency.
5056
"oauth2client",
5157
# Async Dependencies
52-
# TODO(https://github.com/googleapis/google-auth-library-python/issues/1722): Remove the pinned aiohttp version and use `aiohttp_extra_require`.
58+
# TODO(https://github.com/googleapis/google-auth-library-python/issues/1722): `test_aiohttp_requests` depend on
59+
# aiohttp < 3.10.0 which is a bug. Investigate and remove the pinned aiohttp version and use `aiohttp_extra_require`.
5360
"aiohttp < 3.10.0",
5461
"pytest-asyncio; python_version > '3.0'",
5562
"aioresponses; python_version > '3.0'",
5663
]
5764

5865
extras = {
5966
"aiohttp": aiohttp_extra_require,
60-
"pyopenssl": ["pyopenssl>=20.0.0", "cryptography>=38.0.3"],
67+
"pyopenssl": [
68+
"pyopenssl>=20.0.0",
69+
"cryptography>=38.0.3",
70+
"cryptography < 39.0.0; python_version == '3.7'",
71+
],
6172
"requests": requests_extra_require,
6273
"reauth": "pyu2f>=0.1.5",
63-
"enterprise_cert": ["cryptography", "pyopenssl"],
64-
"pyjwt": ["pyjwt>=2.0", "cryptography>=38.0.3"],
6574
"urllib3": ["urllib3", "packaging"],
75+
"enterprise_cert": [
76+
"cryptography",
77+
"pyopenssl",
78+
"cryptography < 39.0.0; python_version == '3.7'",
79+
],
80+
"pyjwt": pyjwt_extra_require,
6681
"testing": testing_extra_require,
82+
# TODO(): Add an extra for `grpcio` dependency.
83+
# TODO(): Add an extra for `oauth2client` dependency.
84+
# TODO(): Add an extra for `urllib3` dependency.
6785
}
6886

6987
with io.open("README.rst", "r") as fh:

0 commit comments

Comments
 (0)