|
18 | 18 | from setuptools import find_namespace_packages |
19 | 19 | from setuptools import setup |
20 | 20 |
|
| 21 | +cryptography_base_require = [ |
| 22 | + "cryptography >= 38.0.3", |
| 23 | +] |
21 | 24 |
|
22 | 25 | DEPENDENCIES = ( |
23 | 26 | "pyasn1-modules>=0.2.1", |
24 | | - "cryptography >= 38.0.3", |
| 27 | + cryptography_base_require, |
25 | 28 | ) |
26 | 29 |
|
27 | | -# Note: cryptography was made into a required dependency. Extra is kept for backwards compatibility |
28 | | -cryptography_extra_require = [ |
29 | | - "cryptography >= 38.0.3", |
30 | | -] |
31 | | - |
32 | 30 | requests_extra_require = ["requests >= 2.20.0, < 3.0.0"] |
33 | 31 |
|
34 | 32 | aiohttp_extra_require = ["aiohttp >= 3.6.2, < 4.0.0", *requests_extra_require] |
|
37 | 35 |
|
38 | 36 | reauth_extra_require = ["pyu2f>=0.1.5"] |
39 | 37 |
|
40 | | -# TODO(https://github.com/googleapis/google-auth-library-python/issues/1738): Add bounds for cryptography and pyopenssl dependencies. |
41 | | -enterprise_cert_extra_require = ["cryptography", "pyopenssl"] |
| 38 | +# TODO(https://github.com/googleapis/google-auth-library-python/issues/1738): Add bounds for pyopenssl dependency. |
| 39 | +enterprise_cert_extra_require = ["pyopenssl"] |
42 | 40 |
|
43 | 41 | pyopenssl_extra_require = ["pyopenssl>=20.0.0"] |
44 | 42 |
|
|
78 | 76 | ] |
79 | 77 |
|
80 | 78 | extras = { |
81 | | - "cryptography": cryptography_extra_require, |
| 79 | + # Note: cryptography was made into a required dependency. Extra is kept for backwards compatibility |
| 80 | + "cryptography": cryptography_base_require, |
82 | 81 | "aiohttp": aiohttp_extra_require, |
83 | 82 | "enterprise_cert": enterprise_cert_extra_require, |
84 | 83 | "pyopenssl": pyopenssl_extra_require, |
|
0 commit comments