|
28 | 28 | ) |
29 | 29 |
|
30 | 30 | # TODO(https://github.com/googleapis/google-auth-library-python/issues/1440): Unit test fails with |
31 | | -# No module named 'cryptography.hazmat.backends.openssl.x509' for Python 3.7. |
| 31 | +# `No module named 'cryptography.hazmat.backends.openssl.x509' for Python 3.7``. |
32 | 32 | cryptography_base_require = [ |
33 | 33 | "cryptography>=38.0.3", |
34 | 34 | "cryptography < 39.0.0; python_version < '3.8'", |
35 | 35 | ] |
36 | 36 |
|
37 | | -# TODO(https://github.com/googleapis/google-auth-library-python/issues/1665): Remove `pyopenssl_testing_require` once |
38 | | -# `TestDecryptPrivateKey::test_success` is updated to remove the deprecated `OpenSSL.crypto.sign` and |
39 | | -# `OpenSSL.crypto.verify` methods. See: https://www.pyopenssl.org/en/latest/changelog.html#id3. |
40 | | -pyopenssl_testing_require = [ |
41 | | - "pyopenssl < 24.3.0", |
42 | | -] |
43 | | - |
44 | 37 | requests_extra_require = ["requests >= 2.20.0, < 3.0.0.dev0"] |
45 | 38 |
|
46 | 39 | aiohttp_extra_require = ["aiohttp >= 3.6.2, < 4.0.0.dev0", *requests_extra_require] |
|
62 | 55 | cryptography_base_require, |
63 | 56 | ] |
64 | 57 |
|
| 58 | +urllib3_extra_require = [["urllib3", "packaging"]] |
| 59 | + |
65 | 60 | # Unit test requirements. |
66 | 61 | testing_extra_require = [ |
67 | 62 | "flask", |
|
71 | 66 | "pytest-cov", |
72 | 67 | "pytest-localserver", |
73 | 68 | "responses", |
74 | | - "pytest-asyncio", |
| 69 | + *pyjwt_extra_require, |
| 70 | + *pyopenssl_extra_require, |
| 71 | + *reauth_extra_require, |
| 72 | + *urllib3_extra_require, |
| 73 | + # Async Dependencies |
75 | 74 | "aioresponses", |
76 | | - # TODO(): Remove `grpcio` from testing requirements once an extra is added for `grpcio` dependency. |
| 75 | + "pytest-asyncio", |
| 76 | + *aiohttp_extra_require, |
| 77 | + # TODO(https://github.com/googleapis/google-auth-library-python/issues/1735): Remove `grpcio` from testing requirements once an extra is added for `grpcio` dependency. |
77 | 78 | "grpcio", |
78 | | - # TODO(): Remove `oauth2client` from testing requirements once an extra is added for `grpcio` dependency. |
| 79 | + # TODO(https://github.com/googleapis/google-auth-library-python/issues/1736): Remove `oauth2client` from testing requirements once an extra is added for `oauth2client` dependency. |
79 | 80 | "oauth2client", |
80 | | - # Async Dependencies |
| 81 | + # TODO(https://github.com/googleapis/google-auth-library-python/issues/1665): Remove the pinned version of pyopenssl |
| 82 | + # once `TestDecryptPrivateKey::test_success` is updated to remove the deprecated `OpenSSL.crypto.sign` and |
| 83 | + # `OpenSSL.crypto.verify` methods. See: https://www.pyopenssl.org/en/latest/changelog.html#id3. |
| 84 | + "pyopenssl < 24.3.0", |
81 | 85 | # TODO(https://github.com/googleapis/google-auth-library-python/issues/1722): `test_aiohttp_requests` depend on |
82 | | - # aiohttp < 3.10.0 which is a bug. Investigate and remove the pinned aiohttp version and use `aiohttp_extra_require`. |
| 86 | + # aiohttp < 3.10.0 which is a bug. Investigate and remove the pinned aiohttp version. |
83 | 87 | "aiohttp < 3.10.0", |
84 | | - *pyjwt_extra_require, |
85 | | - *reauth_extra_require, |
86 | | - *pyopenssl_extra_require, |
87 | 88 | ] |
88 | 89 |
|
89 | 90 | extras = { |
90 | 91 | "aiohttp": aiohttp_extra_require, |
91 | 92 | "pyopenssl": pyopenssl_extra_require, |
92 | 93 | "requests": requests_extra_require, |
93 | | - "urllib3": ["urllib3", "packaging"], |
| 94 | + "urllib3": urllib3_extra_require, |
94 | 95 | "reauth": reauth_extra_require, |
95 | 96 | "enterprise_cert": enterprise_cert_extra_require, |
96 | 97 | "pyjwt": pyjwt_extra_require, |
97 | 98 | "testing": testing_extra_require, |
98 | | - # TODO(): Add an extra for `grpcio` dependency. |
99 | | - # TODO(): Add an extra for `oauth2client` dependency. |
100 | | - # TODO(): Add an extra for `urllib3` dependency. |
| 99 | + # TODO(https://github.com/googleapis/google-auth-library-python/issues/1735): Add an extra for `grpcio` dependency. |
| 100 | + # TODO(https://github.com/googleapis/google-auth-library-python/issues/1736): Add an extra for `oauth2client` dependency. |
101 | 101 | } |
102 | 102 |
|
103 | 103 | with io.open("README.rst", "r") as fh: |
|
0 commit comments