|
27 | 27 | "rsa>=3.1.4,<5", |
28 | 28 | ) |
29 | 29 |
|
| 30 | + |
| 31 | +requests_extra_require = ["requests >= 2.20.0, < 3.0.0.dev0"] |
| 32 | +aiohttp_extra_require = [ |
| 33 | + "aiohttp >= 3.6.2, < 4.0.0.dev0", |
| 34 | +] + requests_extra_require |
| 35 | + |
30 | 36 | # Unit test requirements. |
31 | 37 | testing_extra_require = [ |
32 | 38 | "flask", |
|
39 | 45 | "pytest-localserver", |
40 | 46 | "pyu2f", |
41 | 47 | "pyjwt", |
42 | | - "requests", |
43 | 48 | "urllib3", |
44 | 49 | "cryptography < 39.0.0", |
45 | 50 | "responses", |
|
48 | 53 | "pytest-asyncio; python_version > '3.0'", |
49 | 54 | "aioresponses; python_version > '3.0'", |
50 | 55 | "asynctest; python_version > '3.0'", |
51 | | - "aiohttp < 3.10.0; python_version > '3.0'", |
52 | | -] |
| 56 | +] + aiohttp_extra_require |
53 | 57 |
|
54 | 58 | extras = { |
55 | | - "aiohttp": ["aiohttp >= 3.6.2, < 4.0.0.dev0", "requests >= 2.20.0, < 3.0.0.dev0"], |
| 59 | + "aiohttp": aiohttp_extra_require, |
56 | 60 | "pyopenssl": ["pyopenssl>=20.0.0", "cryptography>=38.0.3"], |
57 | | - "requests": "requests >= 2.20.0, < 3.0.0.dev0", |
| 61 | + "requests": requests_extra_require, |
58 | 62 | "reauth": "pyu2f>=0.1.5", |
59 | 63 | "enterprise_cert": ["cryptography", "pyopenssl"], |
60 | 64 | "pyjwt": ["pyjwt>=2.0", "cryptography>=38.0.3"], |
61 | | - "testing_extra_require": testing_extra_require, |
| 65 | + "testing": testing_extra_require, |
62 | 66 | } |
63 | 67 |
|
64 | 68 | with io.open("README.rst", "r") as fh: |
|
0 commit comments