We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
setup.py uses https://cocotb.org which doesn't work (yet)
We have 
https://github.com/cocotb/cocotb/blob/e74d508e30027c16778b95ef0985b6bcbc5207c2/setup.py#L90
which doesn't work (yet). Do we also want to use https://docs.cocotb.org temporarily like in GitHub?


--- 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 # Copyright (c) 2013 Potential Ventures Ltd
4 # Copyright (c) 2013 SolarFlare Communications Inc
5 # All rights reserved.
6 #
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions are met:
9 #     * Redistributions of source code must retain the above copyright
10 #       notice, this list of conditions and the following disclaimer.
11 #     * Redistributions in binary form must reproduce the above copyright
12 #       notice, this list of conditions and the following disclaimer in the
13 #       documentation and/or other materials provided with the distribution.
14 #     * Neither the name of Potential Ventures Ltd,
15 #       SolarFlare Communications Inc nor the
16 #       names of its contributors may be used to endorse or promote products
17 #       derived from this software without specific prior written permission.
18 #
19 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 # DISCLAIMED. IN NO EVENT SHALL POTENTIAL VENTURES LTD BE LIABLE FOR ANY
23 # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26 # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 ###############################################################################
30 
31 import sys
32 if sys.version_info[:2] < (3, 5):
33     msg = [
34         "This version of cocotb requires at least Python 3.5,",
35         "you are running Python %d.%d.%d." % (
36             sys.version_info[0], sys.version_info[1], sys.version_info[2])
37     ]
38     if sys.version_info[0] == 2:
39         msg += [
40             "If you have Python 3 installed on your machine try ",
41             "using 'python3 -m pip' instead of 'pip' to install cocotb."
42         ]
43     msg += [
44         "For more information please refer to the documentation at ",
45         "https://cocotb.readthedocs.io."
46     ]
47 
48     raise SystemExit("\n".join(msg))
49 
50 import logging
51 from setuptools import setup
52 from setuptools import find_packages
53 from os import path, walk
54 from io import StringIO
55 
56 # Note: cocotb is not installed properly yet and is missing dependencies and binaries
57 # We can still import other files next to setup.py, as long as they're in MANIFEST.in
58 from cocotb_build_libs import get_ext, build_ext
59 
60 
61 def read_file(fname):
62     with open(path.join(path.dirname(__file__), fname), encoding='utf8') as f:
63         return f.read()
64 
65 
66 def package_files(directory):
67     paths = []
68     for (fpath, directories, filenames) in walk(directory):
69         for filename in filenames:
70             paths.append(path.join('..', fpath, filename))
71     return paths
72 
73 
74 # this sets the __version__ variable
75 exec(read_file(path.join('cocotb', '_version.py')))
76 
77 # store log from build_libs and display at the end in verbose mode
78 # see https://github.com/pypa/pip/issues/6634
79 log_stream = StringIO()
80 handler = logging.StreamHandler(log_stream)
81 log = logging.getLogger("cocotb._build_libs")
82 log.setLevel(logging.INFO)
83 log.addHandler(handler)
84 
85 setup(
86     name='cocotb',
87     cmdclass={'build_ext': build_ext},
88     version=__version__,  # noqa: F821
89     description='cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python.',
90     url='https://cocotb.org',
91     license='BSD',
92     long_description=read_file('README.md'),
93     long_description_content_type='text/markdown',
94     author='Chris Higgs, Stuart Hodgson',
95     maintainer='cocotb contributors',
96     maintainer_email='cocotb@lists.librecores.org',
97     install_requires=[],
98     python_requires='>=3.5',
99     packages=find_packages(),
100     include_package_data=True,
101     package_data={'cocotb': package_files('cocotb/share')},
102     ext_modules=get_ext(),
103     entry_points={
104         'console_scripts': [
105             'cocotb-config=cocotb.config:main',
106         ]
107     },
108     platforms='any',
109     classifiers=[
110         "Programming Language :: Python :: 3",
111         "Programming Language :: Python :: 3.5",
112         "Programming Language :: Python :: 3.6",
113         "Programming Language :: Python :: 3.7",
114         "Programming Language :: Python :: 3.8",
115         "License :: OSI Approved :: BSD License",
116         "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
117     ],
118 
119     # these appear in the sidebar on PyPI
120     project_urls={
121         "Bug Tracker": "https://github.com/cocotb/cocotb/issues",
122         "Source Code": "https://github.com/cocotb/cocotb",
123         "Documentation": "https://docs.cocotb.org",
124     },
125 )
126 
127 print(log_stream.getvalue())
128
```
--- 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
@@ -87,7 +87,7 @@
     cmdclass={'build_ext': build_ext},
     version=__version__,  # noqa: F821
     description='cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python.',
-    url='https://cocotb.org',
+    url='https://docs.cocotb.org',
     license='BSD',
     long_description=read_file('README.md'),
     long_description_content_type='text/markdown',

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -87,7 +87,7 @@\n     cmdclass={'build_ext': build_ext},\n     version=__version__,  # noqa: F821\n     description='cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python.',\n-    url='https://cocotb.org',\n+    url='https://docs.cocotb.org',\n     license='BSD',\n     long_description=read_file('README.md'),\n     long_description_content_type='text/markdown',\n", "issue": "setup.py uses https://cocotb.org which doesn't work (yet)\nWe have \r\nhttps://github.com/cocotb/cocotb/blob/e74d508e30027c16778b95ef0985b6bcbc5207c2/setup.py#L90\r\nwhich doesn't work (yet). Do we also want to use https://docs.cocotb.org temporarily like in GitHub?\r\n\n", "before_files": [{"content": "#!/usr/bin/env python\n###############################################################################\n# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#     * Redistributions of source code must retain the above copyright\n#       notice, this list of conditions and the following disclaimer.\n#     * Redistributions in binary form must reproduce the above copyright\n#       notice, this list of conditions and the following disclaimer in the\n#       documentation and/or other materials provided with the distribution.\n#     * Neither the name of Potential Ventures Ltd,\n#       SolarFlare Communications Inc nor the\n#       names of its contributors may be used to endorse or promote products\n#       derived from this software without specific prior written permission.\n#\n# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n# DISCLAIMED. IN NO EVENT SHALL POTENTIAL VENTURES LTD BE LIABLE FOR ANY\n# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n###############################################################################\n\nimport sys\nif sys.version_info[:2] < (3, 5):\n    msg = [\n        \"This version of cocotb requires at least Python 3.5,\",\n        \"you are running Python %d.%d.%d.\" % (\n            sys.version_info[0], sys.version_info[1], sys.version_info[2])\n    ]\n    if sys.version_info[0] == 2:\n        msg += [\n            \"If you have Python 3 installed on your machine try \",\n            \"using 'python3 -m pip' instead of 'pip' to install cocotb.\"\n        ]\n    msg += [\n        \"For more information please refer to the documentation at \",\n        \"https://cocotb.readthedocs.io.\"\n    ]\n\n    raise SystemExit(\"\\n\".join(msg))\n\nimport logging\nfrom setuptools import setup\nfrom setuptools import find_packages\nfrom os import path, walk\nfrom io import StringIO\n\n# Note: cocotb is not installed properly yet and is missing dependencies and binaries\n# We can still import other files next to setup.py, as long as they're in MANIFEST.in\nfrom cocotb_build_libs import get_ext, build_ext\n\n\ndef read_file(fname):\n    with open(path.join(path.dirname(__file__), fname), encoding='utf8') as f:\n        return f.read()\n\n\ndef package_files(directory):\n    paths = []\n    for (fpath, directories, filenames) in walk(directory):\n        for filename in filenames:\n            paths.append(path.join('..', fpath, filename))\n    return paths\n\n\n# this sets the __version__ variable\nexec(read_file(path.join('cocotb', '_version.py')))\n\n# store log from build_libs and display at the end in verbose mode\n# see https://github.com/pypa/pip/issues/6634\nlog_stream = StringIO()\nhandler = logging.StreamHandler(log_stream)\nlog = logging.getLogger(\"cocotb._build_libs\")\nlog.setLevel(logging.INFO)\nlog.addHandler(handler)\n\nsetup(\n    name='cocotb',\n    cmdclass={'build_ext': build_ext},\n    version=__version__,  # noqa: F821\n    description='cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python.',\n    url='https://cocotb.org',\n    license='BSD',\n    long_description=read_file('README.md'),\n    long_description_content_type='text/markdown',\n    author='Chris Higgs, Stuart Hodgson',\n    maintainer='cocotb contributors',\n    maintainer_email='cocotb@lists.librecores.org',\n    install_requires=[],\n    python_requires='>=3.5',\n    packages=find_packages(),\n    include_package_data=True,\n    package_data={'cocotb': package_files('cocotb/share')},\n    ext_modules=get_ext(),\n    entry_points={\n        'console_scripts': [\n            'cocotb-config=cocotb.config:main',\n        ]\n    },\n    platforms='any',\n    classifiers=[\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.5\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"License :: OSI Approved :: BSD License\",\n        \"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)\",\n    ],\n\n    # these appear in the sidebar on PyPI\n    project_urls={\n        \"Bug Tracker\": \"https://github.com/cocotb/cocotb/issues\",\n        \"Source Code\": \"https://github.com/cocotb/cocotb\",\n        \"Documentation\": \"https://docs.cocotb.org\",\n    },\n)\n\nprint(log_stream.getvalue())\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\n###############################################################################\n# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#     * Redistributions of source code must retain the above copyright\n#       notice, this list of conditions and the following disclaimer.\n#     * Redistributions in binary form must reproduce the above copyright\n#       notice, this list of conditions and the following disclaimer in the\n#       documentation and/or other materials provided with the distribution.\n#     * Neither the name of Potential Ventures Ltd,\n#       SolarFlare Communications Inc nor the\n#       names of its contributors may be used to endorse or promote products\n#       derived from this software without specific prior written permission.\n#\n# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n# DISCLAIMED. IN NO EVENT SHALL POTENTIAL VENTURES LTD BE LIABLE FOR ANY\n# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n###############################################################################\n\nimport sys\nif sys.version_info[:2] < (3, 5):\n    msg = [\n        \"This version of cocotb requires at least Python 3.5,\",\n        \"you are running Python %d.%d.%d.\" % (\n            sys.version_info[0], sys.version_info[1], sys.version_info[2])\n    ]\n    if sys.version_info[0] == 2:\n        msg += [\n            \"If you have Python 3 installed on your machine try \",\n            \"using 'python3 -m pip' instead of 'pip' to install cocotb.\"\n        ]\n    msg += [\n        \"For more information please refer to the documentation at \",\n        \"https://cocotb.readthedocs.io.\"\n    ]\n\n    raise SystemExit(\"\\n\".join(msg))\n\nimport logging\nfrom setuptools import setup\nfrom setuptools import find_packages\nfrom os import path, walk\nfrom io import StringIO\n\n# Note: cocotb is not installed properly yet and is missing dependencies and binaries\n# We can still import other files next to setup.py, as long as they're in MANIFEST.in\nfrom cocotb_build_libs import get_ext, build_ext\n\n\ndef read_file(fname):\n    with open(path.join(path.dirname(__file__), fname), encoding='utf8') as f:\n        return f.read()\n\n\ndef package_files(directory):\n    paths = []\n    for (fpath, directories, filenames) in walk(directory):\n        for filename in filenames:\n            paths.append(path.join('..', fpath, filename))\n    return paths\n\n\n# this sets the __version__ variable\nexec(read_file(path.join('cocotb', '_version.py')))\n\n# store log from build_libs and display at the end in verbose mode\n# see https://github.com/pypa/pip/issues/6634\nlog_stream = StringIO()\nhandler = logging.StreamHandler(log_stream)\nlog = logging.getLogger(\"cocotb._build_libs\")\nlog.setLevel(logging.INFO)\nlog.addHandler(handler)\n\nsetup(\n    name='cocotb',\n    cmdclass={'build_ext': build_ext},\n    version=__version__,  # noqa: F821\n    description='cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python.',\n    url='https://docs.cocotb.org',\n    license='BSD',\n    long_description=read_file('README.md'),\n    long_description_content_type='text/markdown',\n    author='Chris Higgs, Stuart Hodgson',\n    maintainer='cocotb contributors',\n    maintainer_email='cocotb@lists.librecores.org',\n    install_requires=[],\n    python_requires='>=3.5',\n    packages=find_packages(),\n    include_package_data=True,\n    package_data={'cocotb': package_files('cocotb/share')},\n    ext_modules=get_ext(),\n    entry_points={\n        'console_scripts': [\n            'cocotb-config=cocotb.config:main',\n        ]\n    },\n    platforms='any',\n    classifiers=[\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.5\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"License :: OSI Approved :: BSD License\",\n        \"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)\",\n    ],\n\n    # these appear in the sidebar on PyPI\n    project_urls={\n        \"Bug Tracker\": \"https://github.com/cocotb/cocotb/issues\",\n        \"Source Code\": \"https://github.com/cocotb/cocotb\",\n        \"Documentation\": \"https://docs.cocotb.org\",\n    },\n)\n\nprint(log_stream.getvalue())\n", "path": "setup.py"}]}