|
33 | 33 | "aiohttp >= 3.6.2, < 4.0.0.dev0", |
34 | 34 | ] + requests_extra_require |
35 | 35 |
|
| 36 | +pyjwt_extra_require = [ |
| 37 | + "pyjwt>=2.0", |
| 38 | + "cryptography>=38.0.3", |
| 39 | + "cryptography < 39.0.0; python_version == '3.7'", |
| 40 | +] |
| 41 | + |
36 | 42 | # Unit test requirements. |
37 | 43 | testing_extra_require = [ |
38 | 44 | "flask", |
39 | 45 | "freezegun", |
40 | 46 | "mock", |
41 | | - "cryptography < 39.0.0", |
42 | 47 | "pyopenssl", |
43 | 48 | "pytest", |
44 | 49 | "pytest-cov", |
45 | 50 | "pytest-localserver", |
46 | 51 | "pyu2f", |
47 | | - "pyjwt", |
48 | 52 | "responses", |
| 53 | + # TODO(): Remove `grpcio` from testing requirements once an extra is added for `grpcio` dependency. |
49 | 54 | "grpcio", |
| 55 | + # TODO(): Remove `oauth2client` from testing requirements once an extra is added for `grpcio` dependency. |
50 | 56 | "oauth2client", |
51 | 57 | # 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`. |
53 | 60 | "aiohttp < 3.10.0", |
54 | 61 | "pytest-asyncio; python_version > '3.0'", |
55 | 62 | "aioresponses; python_version > '3.0'", |
56 | 63 | ] |
57 | 64 |
|
58 | 65 | extras = { |
59 | 66 | "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 | + ], |
61 | 72 | "requests": requests_extra_require, |
62 | 73 | "reauth": "pyu2f>=0.1.5", |
63 | | - "enterprise_cert": ["cryptography", "pyopenssl"], |
64 | | - "pyjwt": ["pyjwt>=2.0", "cryptography>=38.0.3"], |
65 | 74 | "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, |
66 | 81 | "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. |
67 | 85 | } |
68 | 86 |
|
69 | 87 | with io.open("README.rst", "r") as fh: |
|
0 commit comments