prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Packaging: prep for 1.0.0 release of `google-resumable-media-python`.
  See: https://github.com/googleapis/google-resumable-media-python/issues/138
  
  --- 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.26.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-api-core >= 1.21.0, < 2.0dev",
  34     "google-cloud-core >= 1.1.0, < 2.0dev",
  35     "google-resumable-media >= 0.5.0, < 0.6dev",
  36     "six >=1.13.0,< 2.0.0dev",
  37 ]
  38 extras = {
  39     "bqstorage": [
  40         "google-cloud-bigquery-storage >= 1.0.0, <2.0.0dev",
  41         # Due to an issue in pip's dependency resolver, the `grpc` extra is not
  42         # installed, even though `google-cloud-bigquery-storage` specifies it
  43         # as `google-api-core[grpc]`. We thus need to explicitly specify it here.
  44         # See: https://github.com/googleapis/python-bigquery/issues/83
  45         "grpcio >= 1.8.2, < 2.0dev",
  46         "pyarrow>=0.16.0, < 2.0dev",
  47     ],
  48     "pandas": ["pandas>=0.17.1"],
  49     # Exclude PyArrow dependency from Windows Python 2.7.
  50     'pyarrow: platform_system != "Windows" or python_version >= "3.4"': [
  51         # Bad Linux release for 0.14.0.
  52         # https://issues.apache.org/jira/browse/ARROW-5868
  53         "pyarrow>=0.4.1, != 0.14.0"
  54     ],
  55     "tqdm": ["tqdm >= 4.0.0, <5.0.0dev"],
  56     "fastparquet": [
  57         "fastparquet",
  58         "python-snappy",
  59         # llvmlite >= 0.32.0 cannot be installed on Python 3.5 and below
  60         # (building the wheel fails), thus needs to be restricted.
  61         # See: https://github.com/googleapis/python-bigquery/issues/78
  62         "llvmlite <= 0.31.0",
  63     ],
  64 }
  65 
  66 all_extras = []
  67 
  68 for extra in extras:
  69     if extra == "fastparquet":
  70         # Skip fastparquet from "all" because it is redundant with pyarrow and
  71         # creates a dependency on pre-release versions of numpy. See:
  72         # https://github.com/googleapis/google-cloud-python/issues/8549
  73         continue
  74     all_extras.extend(extras[extra])
  75 
  76 extras["all"] = all_extras
  77 
  78 # Setup boilerplate below this line.
  79 
  80 package_root = os.path.abspath(os.path.dirname(__file__))
  81 
  82 readme_filename = os.path.join(package_root, "README.rst")
  83 with io.open(readme_filename, encoding="utf-8") as readme_file:
  84     readme = readme_file.read()
  85 
  86 # Only include packages under the 'google' namespace. Do not include tests,
  87 # benchmarks, etc.
  88 packages = [
  89     package for package in setuptools.find_packages() if package.startswith("google")
  90 ]
  91 
  92 # Determine which namespaces are needed.
  93 namespaces = ["google"]
  94 if "google.cloud" in packages:
  95     namespaces.append("google.cloud")
  96 
  97 
  98 setuptools.setup(
  99     name=name,
  100     version=version,
  101     description=description,
  102     long_description=readme,
  103     author="Google LLC",
  104     author_email="googleapis-packages@google.com",
  105     license="Apache 2.0",
  106     url="https://github.com/googleapis/python-bigquery",
  107     classifiers=[
  108         release_status,
  109         "Intended Audience :: Developers",
  110         "License :: OSI Approved :: Apache Software License",
  111         "Programming Language :: Python",
  112         "Programming Language :: Python :: 2",
  113         "Programming Language :: Python :: 2.7",
  114         "Programming Language :: Python :: 3",
  115         "Programming Language :: Python :: 3.5",
  116         "Programming Language :: Python :: 3.6",
  117         "Programming Language :: Python :: 3.7",
  118         "Programming Language :: Python :: 3.8",
  119         "Operating System :: OS Independent",
  120         "Topic :: Internet",
  121     ],
  122     platforms="Posix; MacOS X; Windows",
  123     packages=packages,
  124     namespace_packages=namespaces,
  125     install_requires=dependencies,
  126     extras_require=extras,
  127     python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
  128     include_package_data=True,
  129     zip_safe=False,
  130 )
  131
  ```
  --- 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
  @@ -32,7 +32,7 @@
       'enum34; python_version < "3.4"',
       "google-api-core >= 1.21.0, < 2.0dev",
       "google-cloud-core >= 1.1.0, < 2.0dev",
  -    "google-resumable-media >= 0.5.0, < 0.6dev",
  +    "google-resumable-media >= 0.5.0, < 2.0dev",
       "six >=1.13.0,< 2.0.0dev",
   ]
   extras = {
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -32,7 +32,7 @@\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+    \"google-resumable-media >= 0.5.0, < 2.0dev\",\n     \"six >=1.13.0,< 2.0.0dev\",\n ]\n extras = {\n", "issue": "Packaging: prep for 1.0.0 release of `google-resumable-media-python`.\nSee: https://github.com/googleapis/google-resumable-media-python/issues/138\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.26.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"}], "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.26.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, < 2.0dev\",\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"}]}