@@ -46,6 +46,7 @@ def run_tests(self):
46
46
"PyYAML" ,
47
47
"wrapt" ,
48
48
"yarl" ,
49
+ "urllib3" ,
49
50
# Support for urllib3 >=2 needs CPython >=3.10
50
51
# so we need to block urllib3 >=2 for Python <3.10 and PyPy for now.
51
52
# Note that vcrpy would work fine without any urllib3 around,
@@ -57,24 +58,28 @@ def run_tests(self):
57
58
"urllib3 <2; platform_python_implementation =='PyPy'" ,
58
59
]
59
60
60
- tests_require = [
61
- "aiohttp" ,
62
- "boto3" ,
63
- "httplib2" ,
64
- "httpx" ,
65
- "pytest" ,
66
- "pytest-aiohttp" ,
67
- "pytest-httpbin" ,
68
- "requests>=2.16.2" ,
69
- "tornado" ,
70
- # Needed to un-break httpbin 0.7.0. For httpbin >=0.7.1 and after,
71
- # this pin and the dependency itself can be removed, provided
72
- # that the related bug in httpbin has been fixed:
73
- # https://github.com/kevin1024/vcrpy/issues/645#issuecomment-1562489489
74
- # https://github.com/postmanlabs/httpbin/issues/673
75
- # https://github.com/postmanlabs/httpbin/pull/674
76
- "Werkzeug==2.0.3" ,
77
- ]
61
+ tests_require = {
62
+ "tests" : [
63
+ "aiohttp" ,
64
+ "boto3" ,
65
+ "httplib2" ,
66
+ "httpx" ,
67
+ "pytest" ,
68
+ "pytest-cov" ,
69
+ "pytest-asyncio" ,
70
+ "pytest-aiohttp" ,
71
+ "pytest-httpbin" ,
72
+ "requests>=2.22.0" ,
73
+ "tornado" ,
74
+ # Needed to un-break httpbin 0.7.0. For httpbin >=0.7.1 and after,
75
+ # this pin and the dependency itself can be removed, provided
76
+ # that the related bug in httpbin has been fixed:
77
+ # https://github.com/kevin1024/vcrpy/issues/645#issuecomment-1562489489
78
+ # https://github.com/postmanlabs/httpbin/issues/673
79
+ # https://github.com/postmanlabs/httpbin/pull/674
80
+ "Werkzeug==2.0.3" ,
81
+ ],
82
+ }
78
83
79
84
setup (
80
85
name = "vcrpy" ,
@@ -89,7 +94,7 @@ def run_tests(self):
89
94
python_requires = ">=3.8" ,
90
95
install_requires = install_requires ,
91
96
license = "MIT" ,
92
- tests_require = tests_require ,
97
+ extras_require = tests_require ,
93
98
classifiers = [
94
99
"Development Status :: 5 - Production/Stable" ,
95
100
"Environment :: Console" ,
0 commit comments