1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00

Organize dependencies for tests and extras requires

This commit is contained in:
Jair Henrique
2023-12-11 17:29:27 -03:00
parent 0594de9b3e
commit abbb50135f

View File

@@ -57,24 +57,29 @@ install_requires = [
"urllib3 <2; platform_python_implementation =='PyPy'", "urllib3 <2; platform_python_implementation =='PyPy'",
] ]
tests_require = [ extras_require = {
"aiohttp", "tests": [
"boto3", "aiohttp",
"httplib2", "boto3",
"httpx", "httplib2",
"pytest", "httpx",
"pytest-aiohttp", "pytest-aiohttp",
"pytest-httpbin", "pytest-asyncio",
"requests>=2.16.2", "pytest-cov",
"tornado", "pytest-httpbin",
# Needed to un-break httpbin 0.7.0. For httpbin >=0.7.1 and after, "pytest",
# this pin and the dependency itself can be removed, provided "requests>=2.22.0",
# that the related bug in httpbin has been fixed: "tornado",
# https://github.com/kevin1024/vcrpy/issues/645#issuecomment-1562489489 "urllib3",
# https://github.com/postmanlabs/httpbin/issues/673 # Needed to un-break httpbin 0.7.0. For httpbin >=0.7.1 and after,
# https://github.com/postmanlabs/httpbin/pull/674 # this pin and the dependency itself can be removed, provided
"Werkzeug==2.0.3", # that the related bug in httpbin has been fixed:
] # https://github.com/kevin1024/vcrpy/issues/645#issuecomment-1562489489
# https://github.com/postmanlabs/httpbin/issues/673
# https://github.com/postmanlabs/httpbin/pull/674
"Werkzeug==2.0.3",
],
}
setup( setup(
name="vcrpy", name="vcrpy",
@@ -89,7 +94,8 @@ setup(
python_requires=">=3.8", python_requires=">=3.8",
install_requires=install_requires, install_requires=install_requires,
license="MIT", license="MIT",
tests_require=tests_require, extras_require=extras_require,
tests_require=extras_require["tests"],
classifiers=[ classifiers=[
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
"Environment :: Console", "Environment :: Console",