We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Remove redundant dependencies
I think we can remove the following from the dependencies list:

https://github.com/googleapis/python-bigquery/blob/dbaf3bdc35656fdfef2d4380befdcc2392c1ca83/setup.py#L31-L43

* `google-auth` is already required via [google-api-core](https://github.com/googleapis/python-api-core/blob/master/setup.py#L34)
* `protobuf` is already required via [google-api-core](https://github.com/googleapis/python-api-core/blob/master/setup.py#L33)
* `rsa` [google-auth](https://github.com/googleapis/google-auth-library-python/blob/master/setup.py#L25-L26) is pinning compatible versions now 

--- 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 # Copyright 2018 Google LLC
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 
15 import io
16 import os
17 
18 import setuptools
19 
20 
21 # Package metadata.
22 
23 name = "google-cloud-bigquery"
24 description = "Google BigQuery API client library"
25 version = "1.25.0"
26 # Should be one of:
27 # 'Development Status :: 3 - Alpha'
28 # 'Development Status :: 4 - Beta'
29 # 'Development Status :: 5 - Production/Stable'
30 release_status = "Development Status :: 5 - Production/Stable"
31 dependencies = [
32     'enum34; python_version < "3.4"',
33     "google-auth >= 1.9.0, < 2.0dev",
34     "google-api-core >= 1.15.0, < 2.0dev",
35     "google-cloud-core >= 1.1.0, < 2.0dev",
36     "google-resumable-media >= 0.5.0, < 0.6dev",
37     "protobuf >= 3.6.0",
38     "six >=1.13.0,< 2.0.0dev",
39     # rsa >= 4.1 is not compatible with Python 2
40     # https://github.com/sybrenstuvel/python-rsa/issues/152
41     'rsa <4.1; python_version < "3"',
42     'rsa >=3.1.4, <5; python_version >= "3"',
43 ]
44 extras = {
45     "bqstorage": [
46         "google-cloud-bigquery-storage >= 1.0.0, <2.0.0dev",
47         # Due to an issue in pip's dependency resolver, the `grpc` extra is not
48         # installed, even though `google-cloud-bigquery-storage` specifies it
49         # as `google-api-core[grpc]`. We thus need to explicitly specify it here.
50         # See: https://github.com/googleapis/python-bigquery/issues/83
51         "grpcio >= 1.8.2, < 2.0dev",
52         "pyarrow>=0.16.0, < 2.0dev",
53     ],
54     "pandas": ["pandas>=0.17.1"],
55     # Exclude PyArrow dependency from Windows Python 2.7.
56     'pyarrow: platform_system != "Windows" or python_version >= "3.4"': [
57         # Bad Linux release for 0.14.0.
58         # https://issues.apache.org/jira/browse/ARROW-5868
59         "pyarrow>=0.4.1, != 0.14.0"
60     ],
61     "tqdm": ["tqdm >= 4.0.0, <5.0.0dev"],
62     "fastparquet": [
63         "fastparquet",
64         "python-snappy",
65         # llvmlite >= 0.32.0 cannot be installed on Python 3.5 and below
66         # (building the wheel fails), thus needs to be restricted.
67         # See: https://github.com/googleapis/python-bigquery/issues/78
68         "llvmlite <= 0.31.0",
69     ],
70 }
71 
72 all_extras = []
73 
74 for extra in extras:
75     if extra == "fastparquet":
76         # Skip fastparquet from "all" because it is redundant with pyarrow and
77         # creates a dependency on pre-release versions of numpy. See:
78         # https://github.com/googleapis/google-cloud-python/issues/8549
79         continue
80     all_extras.extend(extras[extra])
81 
82 extras["all"] = all_extras
83 
84 # Setup boilerplate below this line.
85 
86 package_root = os.path.abspath(os.path.dirname(__file__))
87 
88 readme_filename = os.path.join(package_root, "README.rst")
89 with io.open(readme_filename, encoding="utf-8") as readme_file:
90     readme = readme_file.read()
91 
92 # Only include packages under the 'google' namespace. Do not include tests,
93 # benchmarks, etc.
94 packages = [
95     package for package in setuptools.find_packages() if package.startswith("google")
96 ]
97 
98 # Determine which namespaces are needed.
99 namespaces = ["google"]
100 if "google.cloud" in packages:
101     namespaces.append("google.cloud")
102 
103 
104 setuptools.setup(
105     name=name,
106     version=version,
107     description=description,
108     long_description=readme,
109     author="Google LLC",
110     author_email="googleapis-packages@google.com",
111     license="Apache 2.0",
112     url="https://github.com/googleapis/python-bigquery",
113     classifiers=[
114         release_status,
115         "Intended Audience :: Developers",
116         "License :: OSI Approved :: Apache Software License",
117         "Programming Language :: Python",
118         "Programming Language :: Python :: 2",
119         "Programming Language :: Python :: 2.7",
120         "Programming Language :: Python :: 3",
121         "Programming Language :: Python :: 3.5",
122         "Programming Language :: Python :: 3.6",
123         "Programming Language :: Python :: 3.7",
124         "Programming Language :: Python :: 3.8",
125         "Operating System :: OS Independent",
126         "Topic :: Internet",
127     ],
128     platforms="Posix; MacOS X; Windows",
129     packages=packages,
130     namespace_packages=namespaces,
131     install_requires=dependencies,
132     extras_require=extras,
133     python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
134     include_package_data=True,
135     zip_safe=False,
136 )
137
```
--- 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
@@ -30,16 +30,10 @@
 release_status = "Development Status :: 5 - Production/Stable"
 dependencies = [
     'enum34; python_version < "3.4"',
-    "google-auth >= 1.9.0, < 2.0dev",
-    "google-api-core >= 1.15.0, < 2.0dev",
+    "google-api-core >= 1.21.0, < 2.0dev",
     "google-cloud-core >= 1.1.0, < 2.0dev",
     "google-resumable-media >= 0.5.0, < 0.6dev",
-    "protobuf >= 3.6.0",
     "six >=1.13.0,< 2.0.0dev",
-    # rsa >= 4.1 is not compatible with Python 2
-    # https://github.com/sybrenstuvel/python-rsa/issues/152
-    'rsa <4.1; python_version < "3"',
-    'rsa >=3.1.4, <5; python_version >= "3"',
 ]
 extras = {
     "bqstorage": [

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -30,16 +30,10 @@\n release_status = \"Development Status :: 5 - Production/Stable\"\n dependencies = [\n     'enum34; python_version < \"3.4\"',\n-    \"google-auth >= 1.9.0, < 2.0dev\",\n-    \"google-api-core >= 1.15.0, < 2.0dev\",\n+    \"google-api-core >= 1.21.0, < 2.0dev\",\n     \"google-cloud-core >= 1.1.0, < 2.0dev\",\n     \"google-resumable-media >= 0.5.0, < 0.6dev\",\n-    \"protobuf >= 3.6.0\",\n     \"six >=1.13.0,< 2.0.0dev\",\n-    # rsa >= 4.1 is not compatible with Python 2\n-    # https://github.com/sybrenstuvel/python-rsa/issues/152\n-    'rsa <4.1; python_version < \"3\"',\n-    'rsa >=3.1.4, <5; python_version >= \"3\"',\n ]\n extras = {\n     \"bqstorage\": [\n", "issue": "Remove redundant dependencies\nI think we can remove the following from the dependencies list:\r\n\r\nhttps://github.com/googleapis/python-bigquery/blob/dbaf3bdc35656fdfef2d4380befdcc2392c1ca83/setup.py#L31-L43\r\n\r\n* `google-auth` is already required via [google-api-core](https://github.com/googleapis/python-api-core/blob/master/setup.py#L34)\r\n* `protobuf` is already required via [google-api-core](https://github.com/googleapis/python-api-core/blob/master/setup.py#L33)\r\n* `rsa` [google-auth](https://github.com/googleapis/google-auth-library-python/blob/master/setup.py#L25-L26) is pinning compatible versions now \n", "before_files": [{"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport io\nimport os\n\nimport setuptools\n\n\n# Package metadata.\n\nname = \"google-cloud-bigquery\"\ndescription = \"Google BigQuery API client library\"\nversion = \"1.25.0\"\n# Should be one of:\n# 'Development Status :: 3 - Alpha'\n# 'Development Status :: 4 - Beta'\n# 'Development Status :: 5 - Production/Stable'\nrelease_status = \"Development Status :: 5 - Production/Stable\"\ndependencies = [\n    'enum34; python_version < \"3.4\"',\n    \"google-auth >= 1.9.0, < 2.0dev\",\n    \"google-api-core >= 1.15.0, < 2.0dev\",\n    \"google-cloud-core >= 1.1.0, < 2.0dev\",\n    \"google-resumable-media >= 0.5.0, < 0.6dev\",\n    \"protobuf >= 3.6.0\",\n    \"six >=1.13.0,< 2.0.0dev\",\n    # rsa >= 4.1 is not compatible with Python 2\n    # https://github.com/sybrenstuvel/python-rsa/issues/152\n    'rsa <4.1; python_version < \"3\"',\n    'rsa >=3.1.4, <5; python_version >= \"3\"',\n]\nextras = {\n    \"bqstorage\": [\n        \"google-cloud-bigquery-storage >= 1.0.0, <2.0.0dev\",\n        # Due to an issue in pip's dependency resolver, the `grpc` extra is not\n        # installed, even though `google-cloud-bigquery-storage` specifies it\n        # as `google-api-core[grpc]`. We thus need to explicitly specify it here.\n        # See: https://github.com/googleapis/python-bigquery/issues/83\n        \"grpcio >= 1.8.2, < 2.0dev\",\n        \"pyarrow>=0.16.0, < 2.0dev\",\n    ],\n    \"pandas\": [\"pandas>=0.17.1\"],\n    # Exclude PyArrow dependency from Windows Python 2.7.\n    'pyarrow: platform_system != \"Windows\" or python_version >= \"3.4\"': [\n        # Bad Linux release for 0.14.0.\n        # https://issues.apache.org/jira/browse/ARROW-5868\n        \"pyarrow>=0.4.1, != 0.14.0\"\n    ],\n    \"tqdm\": [\"tqdm >= 4.0.0, <5.0.0dev\"],\n    \"fastparquet\": [\n        \"fastparquet\",\n        \"python-snappy\",\n        # llvmlite >= 0.32.0 cannot be installed on Python 3.5 and below\n        # (building the wheel fails), thus needs to be restricted.\n        # See: https://github.com/googleapis/python-bigquery/issues/78\n        \"llvmlite <= 0.31.0\",\n    ],\n}\n\nall_extras = []\n\nfor extra in extras:\n    if extra == \"fastparquet\":\n        # Skip fastparquet from \"all\" because it is redundant with pyarrow and\n        # creates a dependency on pre-release versions of numpy. See:\n        # https://github.com/googleapis/google-cloud-python/issues/8549\n        continue\n    all_extras.extend(extras[extra])\n\nextras[\"all\"] = all_extras\n\n# Setup boilerplate below this line.\n\npackage_root = os.path.abspath(os.path.dirname(__file__))\n\nreadme_filename = os.path.join(package_root, \"README.rst\")\nwith io.open(readme_filename, encoding=\"utf-8\") as readme_file:\n    readme = readme_file.read()\n\n# Only include packages under the 'google' namespace. Do not include tests,\n# benchmarks, etc.\npackages = [\n    package for package in setuptools.find_packages() if package.startswith(\"google\")\n]\n\n# Determine which namespaces are needed.\nnamespaces = [\"google\"]\nif \"google.cloud\" in packages:\n    namespaces.append(\"google.cloud\")\n\n\nsetuptools.setup(\n    name=name,\n    version=version,\n    description=description,\n    long_description=readme,\n    author=\"Google LLC\",\n    author_email=\"googleapis-packages@google.com\",\n    license=\"Apache 2.0\",\n    url=\"https://github.com/googleapis/python-bigquery\",\n    classifiers=[\n        release_status,\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 2\",\n        \"Programming Language :: Python :: 2.7\",\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        \"Operating System :: OS Independent\",\n        \"Topic :: Internet\",\n    ],\n    platforms=\"Posix; MacOS X; Windows\",\n    packages=packages,\n    namespace_packages=namespaces,\n    install_requires=dependencies,\n    extras_require=extras,\n    python_requires=\">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*\",\n    include_package_data=True,\n    zip_safe=False,\n)\n", "path": "setup.py"}], "after_files": [{"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport io\nimport os\n\nimport setuptools\n\n\n# Package metadata.\n\nname = \"google-cloud-bigquery\"\ndescription = \"Google BigQuery API client library\"\nversion = \"1.25.0\"\n# Should be one of:\n# 'Development Status :: 3 - Alpha'\n# 'Development Status :: 4 - Beta'\n# 'Development Status :: 5 - Production/Stable'\nrelease_status = \"Development Status :: 5 - Production/Stable\"\ndependencies = [\n    'enum34; python_version < \"3.4\"',\n    \"google-api-core >= 1.21.0, < 2.0dev\",\n    \"google-cloud-core >= 1.1.0, < 2.0dev\",\n    \"google-resumable-media >= 0.5.0, < 0.6dev\",\n    \"six >=1.13.0,< 2.0.0dev\",\n]\nextras = {\n    \"bqstorage\": [\n        \"google-cloud-bigquery-storage >= 1.0.0, <2.0.0dev\",\n        # Due to an issue in pip's dependency resolver, the `grpc` extra is not\n        # installed, even though `google-cloud-bigquery-storage` specifies it\n        # as `google-api-core[grpc]`. We thus need to explicitly specify it here.\n        # See: https://github.com/googleapis/python-bigquery/issues/83\n        \"grpcio >= 1.8.2, < 2.0dev\",\n        \"pyarrow>=0.16.0, < 2.0dev\",\n    ],\n    \"pandas\": [\"pandas>=0.17.1\"],\n    # Exclude PyArrow dependency from Windows Python 2.7.\n    'pyarrow: platform_system != \"Windows\" or python_version >= \"3.4\"': [\n        # Bad Linux release for 0.14.0.\n        # https://issues.apache.org/jira/browse/ARROW-5868\n        \"pyarrow>=0.4.1, != 0.14.0\"\n    ],\n    \"tqdm\": [\"tqdm >= 4.0.0, <5.0.0dev\"],\n    \"fastparquet\": [\n        \"fastparquet\",\n        \"python-snappy\",\n        # llvmlite >= 0.32.0 cannot be installed on Python 3.5 and below\n        # (building the wheel fails), thus needs to be restricted.\n        # See: https://github.com/googleapis/python-bigquery/issues/78\n        \"llvmlite <= 0.31.0\",\n    ],\n}\n\nall_extras = []\n\nfor extra in extras:\n    if extra == \"fastparquet\":\n        # Skip fastparquet from \"all\" because it is redundant with pyarrow and\n        # creates a dependency on pre-release versions of numpy. See:\n        # https://github.com/googleapis/google-cloud-python/issues/8549\n        continue\n    all_extras.extend(extras[extra])\n\nextras[\"all\"] = all_extras\n\n# Setup boilerplate below this line.\n\npackage_root = os.path.abspath(os.path.dirname(__file__))\n\nreadme_filename = os.path.join(package_root, \"README.rst\")\nwith io.open(readme_filename, encoding=\"utf-8\") as readme_file:\n    readme = readme_file.read()\n\n# Only include packages under the 'google' namespace. Do not include tests,\n# benchmarks, etc.\npackages = [\n    package for package in setuptools.find_packages() if package.startswith(\"google\")\n]\n\n# Determine which namespaces are needed.\nnamespaces = [\"google\"]\nif \"google.cloud\" in packages:\n    namespaces.append(\"google.cloud\")\n\n\nsetuptools.setup(\n    name=name,\n    version=version,\n    description=description,\n    long_description=readme,\n    author=\"Google LLC\",\n    author_email=\"googleapis-packages@google.com\",\n    license=\"Apache 2.0\",\n    url=\"https://github.com/googleapis/python-bigquery\",\n    classifiers=[\n        release_status,\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 2\",\n        \"Programming Language :: Python :: 2.7\",\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        \"Operating System :: OS Independent\",\n        \"Topic :: Internet\",\n    ],\n    platforms=\"Posix; MacOS X; Windows\",\n    packages=packages,\n    namespace_packages=namespaces,\n    install_requires=dependencies,\n    extras_require=extras,\n    python_requires=\">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*\",\n    include_package_data=True,\n    zip_safe=False,\n)\n", "path": "setup.py"}]}