prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [bug] TypeError for older versions of HVAC in read_secret_version method
  **Describe the bug**
  A combination of newer versions of Dynaconf with older versions of HVAC result in an incompatible mix of expected vs available arguments. Specifically you can get the following traceback.
  
  ```python
      109 try:
      110     if obj.VAULT_KV_VERSION_FOR_DYNACONF == 2:
  --> 111         data = client.secrets.kv.v2.read_secret_version(
      112             path,
      113             mount_point=obj.VAULT_MOUNT_POINT_FOR_DYNACONF,
      114             raise_on_deleted_version=True,  # keep default behavior
      115         )
      116     else:
      117         data = client.secrets.kv.read_secret(
      118             "data/" + path,
      119             mount_point=obj.VAULT_MOUNT_POINT_FOR_DYNACONF,
      120         )
  
  TypeError: KvV2.read_secret_version() got an unexpected keyword argument 'raise_on_deleted_version'
  ```
  
  The PR introducing this feature was included in HVAC 1.1.0: https://github.com/hvac/hvac/pull/907 
  
  **To Reproduce**
  Steps to reproduce the behavior:
  
  1. Have a version of HVAC older than 1.1.0
  2. Trigger a vault version read
  
  
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `setup.py`
  Content:
  ```
  1 from __future__ import annotations
  2 
  3 import os
  4 
  5 from setuptools import find_packages
  6 from setuptools import setup
  7 
  8 
  9 def read(*names, **kwargs):
  10     """Read a file."""
  11     content = ""
  12     with open(
  13         os.path.join(os.path.dirname(__file__), *names),
  14         encoding=kwargs.get("encoding", "utf8"),
  15     ) as open_file:
  16         content = open_file.read().strip()
  17     return content
  18 
  19 
  20 test_requirements = [
  21     "pytest",
  22     "pytest-cov",
  23     "pytest-xdist",
  24     "pytest-mock",
  25     "flake8",
  26     "pep8-naming",
  27     "flake8-debugger",
  28     "flake8-print",
  29     "flake8-todo",
  30     "radon",
  31     "flask>=0.12",
  32     "django",
  33     "python-dotenv",
  34     "toml",
  35     "redis",
  36     "hvac",
  37     "configobj",
  38 ]
  39 
  40 
  41 setup(
  42     name="dynaconf",
  43     version=read("dynaconf", "VERSION"),
  44     url="https://github.com/dynaconf/dynaconf",
  45     license="MIT",
  46     license_files=["LICENSE", "vendor_licenses/*"],
  47     author="Bruno Rocha",
  48     author_email="rochacbruno@gmail.com",
  49     description="The dynamic configurator for your Python Project",
  50     long_description=read("README.md"),
  51     long_description_content_type="text/markdown",
  52     packages=find_packages(
  53         exclude=[
  54             "tests",
  55             "tests.*",
  56             "tests_functional",
  57             "tests_functional.*",
  58             "docs",
  59             "legacy_docs",
  60             "legacy_docs.*",
  61             "docs.*",
  62             "build",
  63             "build.*",
  64             "dynaconf.vendor_src",
  65             "dynaconf/vendor_src",
  66             "dynaconf.vendor_src.*",
  67             "dynaconf/vendor_src/*",
  68         ]
  69     ),
  70     include_package_data=True,
  71     zip_safe=False,
  72     platforms="any",
  73     tests_require=test_requirements,
  74     extras_require={
  75         "redis": ["redis"],
  76         "vault": ["hvac"],
  77         "yaml": ["ruamel.yaml"],
  78         "toml": ["toml"],
  79         "ini": ["configobj"],
  80         "configobj": ["configobj"],
  81         "all": ["redis", "ruamel.yaml", "configobj", "hvac"],
  82         "test": test_requirements,
  83     },
  84     python_requires=">=3.8",
  85     entry_points={"console_scripts": ["dynaconf=dynaconf.cli:main"]},
  86     setup_requires=["setuptools>=38.6.0"],
  87     classifiers=[
  88         "Development Status :: 5 - Production/Stable",
  89         "Framework :: Django",
  90         "Framework :: Flask",
  91         "Intended Audience :: Developers",
  92         "License :: OSI Approved :: MIT License",
  93         "Natural Language :: English",
  94         "Operating System :: OS Independent",
  95         "Programming Language :: Python",
  96         "Programming Language :: Python :: 3",
  97         "Programming Language :: Python :: 3 :: Only",
  98         "Programming Language :: Python :: 3.8",
  99         "Programming Language :: Python :: 3.9",
  100         "Programming Language :: Python :: 3.10",
  101         "Programming Language :: Python :: 3.11",
  102         "Topic :: Utilities",
  103         "Topic :: Software Development :: Libraries",
  104         "Topic :: Software Development :: Libraries :: Python Modules",
  105     ],
  106 )
  107
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -33,7 +33,7 @@
       "python-dotenv",
       "toml",
       "redis",
  -    "hvac",
  +    "hvac>=1.1.0",
       "configobj",
   ]
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -33,7 +33,7 @@\n     \"python-dotenv\",\n     \"toml\",\n     \"redis\",\n-    \"hvac\",\n+    \"hvac>=1.1.0\",\n     \"configobj\",\n ]\n", "issue": "[bug] TypeError for older versions of HVAC in read_secret_version method\n**Describe the bug**\r\nA combination of newer versions of Dynaconf with older versions of HVAC result in an incompatible mix of expected vs available arguments. Specifically you can get the following traceback.\r\n\r\n```python\r\n    109 try:\r\n    110     if obj.VAULT_KV_VERSION_FOR_DYNACONF == 2:\r\n--> 111         data = client.secrets.kv.v2.read_secret_version(\r\n    112             path,\r\n    113             mount_point=obj.VAULT_MOUNT_POINT_FOR_DYNACONF,\r\n    114             raise_on_deleted_version=True,  # keep default behavior\r\n    115         )\r\n    116     else:\r\n    117         data = client.secrets.kv.read_secret(\r\n    118             \"data/\" + path,\r\n    119             mount_point=obj.VAULT_MOUNT_POINT_FOR_DYNACONF,\r\n    120         )\r\n\r\nTypeError: KvV2.read_secret_version() got an unexpected keyword argument 'raise_on_deleted_version'\r\n```\r\n\r\nThe PR introducing this feature was included in HVAC 1.1.0: https://github.com/hvac/hvac/pull/907 \r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n\r\n1. Have a version of HVAC older than 1.1.0\r\n2. Trigger a vault version read\r\n\r\n\r\n\n", "before_files": [{"content": "from __future__ import annotations\n\nimport os\n\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n\ndef read(*names, **kwargs):\n    \"\"\"Read a file.\"\"\"\n    content = \"\"\n    with open(\n        os.path.join(os.path.dirname(__file__), *names),\n        encoding=kwargs.get(\"encoding\", \"utf8\"),\n    ) as open_file:\n        content = open_file.read().strip()\n    return content\n\n\ntest_requirements = [\n    \"pytest\",\n    \"pytest-cov\",\n    \"pytest-xdist\",\n    \"pytest-mock\",\n    \"flake8\",\n    \"pep8-naming\",\n    \"flake8-debugger\",\n    \"flake8-print\",\n    \"flake8-todo\",\n    \"radon\",\n    \"flask>=0.12\",\n    \"django\",\n    \"python-dotenv\",\n    \"toml\",\n    \"redis\",\n    \"hvac\",\n    \"configobj\",\n]\n\n\nsetup(\n    name=\"dynaconf\",\n    version=read(\"dynaconf\", \"VERSION\"),\n    url=\"https://github.com/dynaconf/dynaconf\",\n    license=\"MIT\",\n    license_files=[\"LICENSE\", \"vendor_licenses/*\"],\n    author=\"Bruno Rocha\",\n    author_email=\"rochacbruno@gmail.com\",\n    description=\"The dynamic configurator for your Python Project\",\n    long_description=read(\"README.md\"),\n    long_description_content_type=\"text/markdown\",\n    packages=find_packages(\n        exclude=[\n            \"tests\",\n            \"tests.*\",\n            \"tests_functional\",\n            \"tests_functional.*\",\n            \"docs\",\n            \"legacy_docs\",\n            \"legacy_docs.*\",\n            \"docs.*\",\n            \"build\",\n            \"build.*\",\n            \"dynaconf.vendor_src\",\n            \"dynaconf/vendor_src\",\n            \"dynaconf.vendor_src.*\",\n            \"dynaconf/vendor_src/*\",\n        ]\n    ),\n    include_package_data=True,\n    zip_safe=False,\n    platforms=\"any\",\n    tests_require=test_requirements,\n    extras_require={\n        \"redis\": [\"redis\"],\n        \"vault\": [\"hvac\"],\n        \"yaml\": [\"ruamel.yaml\"],\n        \"toml\": [\"toml\"],\n        \"ini\": [\"configobj\"],\n        \"configobj\": [\"configobj\"],\n        \"all\": [\"redis\", \"ruamel.yaml\", \"configobj\", \"hvac\"],\n        \"test\": test_requirements,\n    },\n    python_requires=\">=3.8\",\n    entry_points={\"console_scripts\": [\"dynaconf=dynaconf.cli:main\"]},\n    setup_requires=[\"setuptools>=38.6.0\"],\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"Framework :: Django\",\n        \"Framework :: Flask\",\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: MIT License\",\n        \"Natural Language :: English\",\n        \"Operating System :: OS Independent\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3 :: Only\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3.10\",\n        \"Programming Language :: Python :: 3.11\",\n        \"Topic :: Utilities\",\n        \"Topic :: Software Development :: Libraries\",\n        \"Topic :: Software Development :: Libraries :: Python Modules\",\n    ],\n)\n", "path": "setup.py"}], "after_files": [{"content": "from __future__ import annotations\n\nimport os\n\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n\ndef read(*names, **kwargs):\n    \"\"\"Read a file.\"\"\"\n    content = \"\"\n    with open(\n        os.path.join(os.path.dirname(__file__), *names),\n        encoding=kwargs.get(\"encoding\", \"utf8\"),\n    ) as open_file:\n        content = open_file.read().strip()\n    return content\n\n\ntest_requirements = [\n    \"pytest\",\n    \"pytest-cov\",\n    \"pytest-xdist\",\n    \"pytest-mock\",\n    \"flake8\",\n    \"pep8-naming\",\n    \"flake8-debugger\",\n    \"flake8-print\",\n    \"flake8-todo\",\n    \"radon\",\n    \"flask>=0.12\",\n    \"django\",\n    \"python-dotenv\",\n    \"toml\",\n    \"redis\",\n    \"hvac>=1.1.0\",\n    \"configobj\",\n]\n\n\nsetup(\n    name=\"dynaconf\",\n    version=read(\"dynaconf\", \"VERSION\"),\n    url=\"https://github.com/dynaconf/dynaconf\",\n    license=\"MIT\",\n    license_files=[\"LICENSE\", \"vendor_licenses/*\"],\n    author=\"Bruno Rocha\",\n    author_email=\"rochacbruno@gmail.com\",\n    description=\"The dynamic configurator for your Python Project\",\n    long_description=read(\"README.md\"),\n    long_description_content_type=\"text/markdown\",\n    packages=find_packages(\n        exclude=[\n            \"tests\",\n            \"tests.*\",\n            \"tests_functional\",\n            \"tests_functional.*\",\n            \"docs\",\n            \"legacy_docs\",\n            \"legacy_docs.*\",\n            \"docs.*\",\n            \"build\",\n            \"build.*\",\n            \"dynaconf.vendor_src\",\n            \"dynaconf/vendor_src\",\n            \"dynaconf.vendor_src.*\",\n            \"dynaconf/vendor_src/*\",\n        ]\n    ),\n    include_package_data=True,\n    zip_safe=False,\n    platforms=\"any\",\n    tests_require=test_requirements,\n    extras_require={\n        \"redis\": [\"redis\"],\n        \"vault\": [\"hvac\"],\n        \"yaml\": [\"ruamel.yaml\"],\n        \"toml\": [\"toml\"],\n        \"ini\": [\"configobj\"],\n        \"configobj\": [\"configobj\"],\n        \"all\": [\"redis\", \"ruamel.yaml\", \"configobj\", \"hvac\"],\n        \"test\": test_requirements,\n    },\n    python_requires=\">=3.8\",\n    entry_points={\"console_scripts\": [\"dynaconf=dynaconf.cli:main\"]},\n    setup_requires=[\"setuptools>=38.6.0\"],\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"Framework :: Django\",\n        \"Framework :: Flask\",\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: MIT License\",\n        \"Natural Language :: English\",\n        \"Operating System :: OS Independent\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3 :: Only\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3.10\",\n        \"Programming Language :: Python :: 3.11\",\n        \"Topic :: Utilities\",\n        \"Topic :: Software Development :: Libraries\",\n        \"Topic :: Software Development :: Libraries :: Python Modules\",\n    ],\n)\n", "path": "setup.py"}]}