1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-10 17:45:35 +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,16 +57,20 @@ install_requires = [
"urllib3 <2; platform_python_implementation =='PyPy'", "urllib3 <2; platform_python_implementation =='PyPy'",
] ]
tests_require = [ extras_require = {
"tests": [
"aiohttp", "aiohttp",
"boto3", "boto3",
"httplib2", "httplib2",
"httpx", "httpx",
"pytest",
"pytest-aiohttp", "pytest-aiohttp",
"pytest-asyncio",
"pytest-cov",
"pytest-httpbin", "pytest-httpbin",
"requests>=2.16.2", "pytest",
"requests>=2.22.0",
"tornado", "tornado",
"urllib3",
# Needed to un-break httpbin 0.7.0. For httpbin >=0.7.1 and after, # Needed to un-break httpbin 0.7.0. For httpbin >=0.7.1 and after,
# this pin and the dependency itself can be removed, provided # this pin and the dependency itself can be removed, provided
# that the related bug in httpbin has been fixed: # that the related bug in httpbin has been fixed:
@@ -74,7 +78,8 @@ tests_require = [
# https://github.com/postmanlabs/httpbin/issues/673 # https://github.com/postmanlabs/httpbin/issues/673
# https://github.com/postmanlabs/httpbin/pull/674 # https://github.com/postmanlabs/httpbin/pull/674
"Werkzeug==2.0.3", "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",