We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update Lunr dependency to 0.5.9
Please consider updating Lunr to the latest version, [0.5.9](https://github.com/yeraydiazdiaz/lunr.py/releases/tag/0.5.9). This avoids the following error without he need to downgrade Lunr:

```python
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (lunr 0.5.9 (/usr/lib/python3.9/site-packages), Requirement.parse('lunr[languages]==0.5.8'), {'mkdocs'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/bin/mkdocs", line 33, in <module>
    sys.exit(load_entry_point('mkdocs==1.1.2', 'console_scripts', 'mkdocs')())
  File "/bin/mkdocs", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/mkdocs/__main__.py", line 14, in <module>
    from mkdocs import utils                                  # noqa: E402
  File "/usr/lib/python3.9/site-packages/mkdocs/utils/__init__.py", line 11, in <module>
    import pkg_resources
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 570, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'lunr[languages]==0.5.8' distribution was not found and is required by mkdocs
```


--- 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 #!/usr/bin/env python
2 
3 from setuptools import setup
4 import re
5 import os
6 import sys
7 
8 
9 with open('README.md') as f:
10     long_description = f.read()
11 
12 
13 def get_version(package):
14     """Return package version as listed in `__version__` in `init.py`."""
15     init_py = open(os.path.join(package, '__init__.py')).read()
16     return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
17 
18 
19 def get_packages(package):
20     """Return root package and all sub-packages."""
21     return [dirpath
22             for dirpath, dirnames, filenames in os.walk(package)
23             if os.path.exists(os.path.join(dirpath, '__init__.py'))]
24 
25 
26 if sys.argv[-1] == 'publish':
27     if os.system("pip freeze | grep wheel"):
28         print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
29         sys.exit()
30     if os.system("pip freeze | grep twine"):
31         print("twine not installed.\nUse `pip install twine`.\nExiting.")
32         sys.exit()
33     os.system("python setup.py sdist bdist_wheel")
34     os.system("twine upload dist/*")
35     print("You probably want to also tag the version now:")
36     print("  git tag -a {0} -m 'version {0}'".format(get_version("mkdocs")))
37     print("  git push --tags")
38     sys.exit()
39 
40 
41 setup(
42     name="mkdocs",
43     version=get_version("mkdocs"),
44     url='https://www.mkdocs.org',
45     license='BSD',
46     description='Project documentation with Markdown.',
47     long_description=long_description,
48     long_description_content_type='text/markdown',
49     author='Tom Christie',
50     author_email='tom@tomchristie.com',  # SEE NOTE BELOW (*)
51     packages=get_packages("mkdocs"),
52     include_package_data=True,
53     install_requires=[
54         'click>=3.3',
55         'Jinja2>=2.10.1',
56         'livereload>=2.5.1',
57         'lunr[languages]==0.5.8',  # must support lunr.js version included in search
58         'Markdown>=3.2.1',
59         'PyYAML>=3.10',
60         'tornado>=5.0',
61         'ghp-import>=1.0',
62         'pyyaml_env_tag>=0.1',
63         'importlib_metadata>=3.10',
64         'packaging>=20.5'
65     ],
66     python_requires='>=3.6',
67     entry_points={
68         'console_scripts': [
69             'mkdocs = mkdocs.__main__:cli',
70         ],
71         'mkdocs.themes': [
72             'mkdocs = mkdocs.themes.mkdocs',
73             'readthedocs = mkdocs.themes.readthedocs',
74         ],
75         'mkdocs.plugins': [
76             'search = mkdocs.contrib.search:SearchPlugin',
77         ],
78     },
79     classifiers=[
80         'Development Status :: 5 - Production/Stable',
81         'Environment :: Console',
82         'Environment :: Web Environment',
83         'Intended Audience :: Developers',
84         'License :: OSI Approved :: BSD License',
85         'Operating System :: OS Independent',
86         'Programming Language :: Python',
87         'Programming Language :: Python :: 3',
88         'Programming Language :: Python :: 3.6',
89         'Programming Language :: Python :: 3.7',
90         'Programming Language :: Python :: 3.8',
91         'Programming Language :: Python :: 3.9',
92         'Programming Language :: Python :: 3 :: Only',
93         "Programming Language :: Python :: Implementation :: CPython",
94         "Programming Language :: Python :: Implementation :: PyPy",
95         'Topic :: Documentation',
96         'Topic :: Text Processing',
97     ],
98     zip_safe=False,
99 )
100 
101 # (*) Please direct queries to the discussion group:
102 #     https://groups.google.com/forum/#!forum/mkdocs
103
```
--- 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()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -54,7 +54,7 @@
         'click>=3.3',
         'Jinja2>=2.10.1',
         'livereload>=2.5.1',
-        'lunr[languages]==0.5.8',  # must support lunr.js version included in search
+        'lunr[languages]==0.5.9',  # must support lunr.js version included in search
         'Markdown>=3.2.1',
         'PyYAML>=3.10',
         'tornado>=5.0',

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -54,7 +54,7 @@\n         'click>=3.3',\n         'Jinja2>=2.10.1',\n         'livereload>=2.5.1',\n-        'lunr[languages]==0.5.8',  # must support lunr.js version included in search\n+        'lunr[languages]==0.5.9',  # must support lunr.js version included in search\n         'Markdown>=3.2.1',\n         'PyYAML>=3.10',\n         'tornado>=5.0',\n", "issue": "Update Lunr dependency to 0.5.9\nPlease consider updating Lunr to the latest version, [0.5.9](https://github.com/yeraydiazdiaz/lunr.py/releases/tag/0.5.9). This avoids the following error without he need to downgrade Lunr:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py\", line 568, in _build_master\r\n    ws.require(__requires__)\r\n  File \"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py\", line 886, in require\r\n    needed = self.resolve(parse_requirements(requirements))\r\n  File \"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py\", line 777, in resolve\r\n    raise VersionConflict(dist, req).with_context(dependent_req)\r\npkg_resources.ContextualVersionConflict: (lunr 0.5.9 (/usr/lib/python3.9/site-packages), Requirement.parse('lunr[languages]==0.5.8'), {'mkdocs'})\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/bin/mkdocs\", line 33, in <module>\r\n    sys.exit(load_entry_point('mkdocs==1.1.2', 'console_scripts', 'mkdocs')())\r\n  File \"/bin/mkdocs\", line 25, in importlib_load_entry_point\r\n    return next(matches).load()\r\n  File \"/usr/lib/python3.9/importlib/metadata.py\", line 77, in load\r\n    module = import_module(match.group('module'))\r\n  File \"/usr/lib/python3.9/importlib/__init__.py\", line 127, in import_module\r\n    return _bootstrap._gcd_import(name[level:], package, level)\r\n  File \"<frozen importlib._bootstrap>\", line 1030, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 1007, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 986, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 680, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap_external>\", line 790, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 228, in _call_with_frames_removed\r\n  File \"/usr/lib/python3.9/site-packages/mkdocs/__main__.py\", line 14, in <module>\r\n    from mkdocs import utils                                  # noqa: E402\r\n  File \"/usr/lib/python3.9/site-packages/mkdocs/utils/__init__.py\", line 11, in <module>\r\n    import pkg_resources\r\n  File \"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py\", line 3243, in <module>\r\n    def _initialize_master_working_set():\r\n  File \"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py\", line 3226, in _call_aside\r\n    f(*args, **kwargs)\r\n  File \"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py\", line 3255, in _initialize_master_working_set\r\n    working_set = WorkingSet._build_master()\r\n  File \"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py\", line 570, in _build_master\r\n    return cls._build_from_requirements(__requires__)\r\n  File \"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py\", line 583, in _build_from_requirements\r\n    dists = ws.resolve(reqs, Environment())\r\n  File \"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py\", line 772, in resolve\r\n    raise DistributionNotFound(req, requirers)\r\npkg_resources.DistributionNotFound: The 'lunr[languages]==0.5.8' distribution was not found and is required by mkdocs\r\n```\r\n\n", "before_files": [{"content": "#!/usr/bin/env python\n\nfrom setuptools import setup\nimport re\nimport os\nimport sys\n\n\nwith open('README.md') as f:\n    long_description = f.read()\n\n\ndef get_version(package):\n    \"\"\"Return package version as listed in `__version__` in `init.py`.\"\"\"\n    init_py = open(os.path.join(package, '__init__.py')).read()\n    return re.search(\"__version__ = ['\\\"]([^'\\\"]+)['\\\"]\", init_py).group(1)\n\n\ndef get_packages(package):\n    \"\"\"Return root package and all sub-packages.\"\"\"\n    return [dirpath\n            for dirpath, dirnames, filenames in os.walk(package)\n            if os.path.exists(os.path.join(dirpath, '__init__.py'))]\n\n\nif sys.argv[-1] == 'publish':\n    if os.system(\"pip freeze | grep wheel\"):\n        print(\"wheel not installed.\\nUse `pip install wheel`.\\nExiting.\")\n        sys.exit()\n    if os.system(\"pip freeze | grep twine\"):\n        print(\"twine not installed.\\nUse `pip install twine`.\\nExiting.\")\n        sys.exit()\n    os.system(\"python setup.py sdist bdist_wheel\")\n    os.system(\"twine upload dist/*\")\n    print(\"You probably want to also tag the version now:\")\n    print(\"  git tag -a {0} -m 'version {0}'\".format(get_version(\"mkdocs\")))\n    print(\"  git push --tags\")\n    sys.exit()\n\n\nsetup(\n    name=\"mkdocs\",\n    version=get_version(\"mkdocs\"),\n    url='https://www.mkdocs.org',\n    license='BSD',\n    description='Project documentation with Markdown.',\n    long_description=long_description,\n    long_description_content_type='text/markdown',\n    author='Tom Christie',\n    author_email='tom@tomchristie.com',  # SEE NOTE BELOW (*)\n    packages=get_packages(\"mkdocs\"),\n    include_package_data=True,\n    install_requires=[\n        'click>=3.3',\n        'Jinja2>=2.10.1',\n        'livereload>=2.5.1',\n        'lunr[languages]==0.5.8',  # must support lunr.js version included in search\n        'Markdown>=3.2.1',\n        'PyYAML>=3.10',\n        'tornado>=5.0',\n        'ghp-import>=1.0',\n        'pyyaml_env_tag>=0.1',\n        'importlib_metadata>=3.10',\n        'packaging>=20.5'\n    ],\n    python_requires='>=3.6',\n    entry_points={\n        'console_scripts': [\n            'mkdocs = mkdocs.__main__:cli',\n        ],\n        'mkdocs.themes': [\n            'mkdocs = mkdocs.themes.mkdocs',\n            'readthedocs = mkdocs.themes.readthedocs',\n        ],\n        'mkdocs.plugins': [\n            'search = mkdocs.contrib.search:SearchPlugin',\n        ],\n    },\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Environment :: Console',\n        'Environment :: Web Environment',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: BSD License',\n        'Operating System :: OS Independent',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n        'Programming Language :: Python :: 3.8',\n        'Programming Language :: Python :: 3.9',\n        'Programming Language :: Python :: 3 :: Only',\n        \"Programming Language :: Python :: Implementation :: CPython\",\n        \"Programming Language :: Python :: Implementation :: PyPy\",\n        'Topic :: Documentation',\n        'Topic :: Text Processing',\n    ],\n    zip_safe=False,\n)\n\n# (*) Please direct queries to the discussion group:\n#     https://groups.google.com/forum/#!forum/mkdocs\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\n\nfrom setuptools import setup\nimport re\nimport os\nimport sys\n\n\nwith open('README.md') as f:\n    long_description = f.read()\n\n\ndef get_version(package):\n    \"\"\"Return package version as listed in `__version__` in `init.py`.\"\"\"\n    init_py = open(os.path.join(package, '__init__.py')).read()\n    return re.search(\"__version__ = ['\\\"]([^'\\\"]+)['\\\"]\", init_py).group(1)\n\n\ndef get_packages(package):\n    \"\"\"Return root package and all sub-packages.\"\"\"\n    return [dirpath\n            for dirpath, dirnames, filenames in os.walk(package)\n            if os.path.exists(os.path.join(dirpath, '__init__.py'))]\n\n\nif sys.argv[-1] == 'publish':\n    if os.system(\"pip freeze | grep wheel\"):\n        print(\"wheel not installed.\\nUse `pip install wheel`.\\nExiting.\")\n        sys.exit()\n    if os.system(\"pip freeze | grep twine\"):\n        print(\"twine not installed.\\nUse `pip install twine`.\\nExiting.\")\n        sys.exit()\n    os.system(\"python setup.py sdist bdist_wheel\")\n    os.system(\"twine upload dist/*\")\n    print(\"You probably want to also tag the version now:\")\n    print(\"  git tag -a {0} -m 'version {0}'\".format(get_version(\"mkdocs\")))\n    print(\"  git push --tags\")\n    sys.exit()\n\n\nsetup(\n    name=\"mkdocs\",\n    version=get_version(\"mkdocs\"),\n    url='https://www.mkdocs.org',\n    license='BSD',\n    description='Project documentation with Markdown.',\n    long_description=long_description,\n    long_description_content_type='text/markdown',\n    author='Tom Christie',\n    author_email='tom@tomchristie.com',  # SEE NOTE BELOW (*)\n    packages=get_packages(\"mkdocs\"),\n    include_package_data=True,\n    install_requires=[\n        'click>=3.3',\n        'Jinja2>=2.10.1',\n        'livereload>=2.5.1',\n        'lunr[languages]==0.5.9',  # must support lunr.js version included in search\n        'Markdown>=3.2.1',\n        'PyYAML>=3.10',\n        'tornado>=5.0',\n        'ghp-import>=1.0',\n        'pyyaml_env_tag>=0.1',\n        'importlib_metadata>=3.10',\n        'packaging>=20.5'\n    ],\n    python_requires='>=3.6',\n    entry_points={\n        'console_scripts': [\n            'mkdocs = mkdocs.__main__:cli',\n        ],\n        'mkdocs.themes': [\n            'mkdocs = mkdocs.themes.mkdocs',\n            'readthedocs = mkdocs.themes.readthedocs',\n        ],\n        'mkdocs.plugins': [\n            'search = mkdocs.contrib.search:SearchPlugin',\n        ],\n    },\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Environment :: Console',\n        'Environment :: Web Environment',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: BSD License',\n        'Operating System :: OS Independent',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n        'Programming Language :: Python :: 3.8',\n        'Programming Language :: Python :: 3.9',\n        'Programming Language :: Python :: 3 :: Only',\n        \"Programming Language :: Python :: Implementation :: CPython\",\n        \"Programming Language :: Python :: Implementation :: PyPy\",\n        'Topic :: Documentation',\n        'Topic :: Text Processing',\n    ],\n    zip_safe=False,\n)\n\n# (*) Please direct queries to the discussion group:\n#     https://groups.google.com/forum/#!forum/mkdocs\n", "path": "setup.py"}]}