prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Unit tests fail in Python 2.7, 3.5 (dependency issue)
  Unit tests check fails on Python 2.7 and Python 3.5, because not all dependencies can be installed.
  
  #### Environment details
  
    - OS type and version: Linux (and possibly others?)
    - Python version: 2.7, 3.5
    - pip version: `pip --version`: 20.0.2
    - `google-cloud-bigquery` version: 1.24.0
  
  #### Steps to reproduce
  
    1. Run uni tests session for Python 2.7 or 3.5, e.g.:
      ```
      nox -f noxfile.py -s unit-2.7    
      ```
    2. Test do not run, an error occurs when installing dependencies.
  
  #### Code example
  
  ```python
  # example
  ```
  
  #### Stack trace
  ```
  Building wheels for collected packages: llvmlite
  ...
  RuntimeError: Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x, got '11.0.0'. Be sure to set LLVM_CONFIG to the right executable path.
  ```
  
  --- 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.24.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 ]
  40 extras = {
  41     "bqstorage": [
  42         "google-cloud-bigquery-storage >= 0.6.0, <2.0.0dev",
  43         "pyarrow>=0.16.0, < 2.0dev",
  44     ],
  45     "pandas": ["pandas>=0.17.1"],
  46     # Exclude PyArrow dependency from Windows Python 2.7.
  47     'pyarrow: platform_system != "Windows" or python_version >= "3.4"': [
  48         # Bad Linux release for 0.14.0.
  49         # https://issues.apache.org/jira/browse/ARROW-5868
  50         "pyarrow>=0.4.1, != 0.14.0"
  51     ],
  52     "tqdm": ["tqdm >= 4.0.0, <5.0.0dev"],
  53     "fastparquet": ["fastparquet", "python-snappy"],
  54 }
  55 
  56 all_extras = []
  57 
  58 for extra in extras:
  59     if extra == "fastparquet":
  60         # Skip fastparquet from "all" because it is redundant with pyarrow and
  61         # creates a dependency on pre-release versions of numpy. See:
  62         # https://github.com/googleapis/google-cloud-python/issues/8549
  63         continue
  64     all_extras.extend(extras[extra])
  65 
  66 extras["all"] = all_extras
  67 
  68 # Setup boilerplate below this line.
  69 
  70 package_root = os.path.abspath(os.path.dirname(__file__))
  71 
  72 readme_filename = os.path.join(package_root, "README.rst")
  73 with io.open(readme_filename, encoding="utf-8") as readme_file:
  74     readme = readme_file.read()
  75 
  76 # Only include packages under the 'google' namespace. Do not include tests,
  77 # benchmarks, etc.
  78 packages = [
  79     package for package in setuptools.find_packages() if package.startswith("google")
  80 ]
  81 
  82 # Determine which namespaces are needed.
  83 namespaces = ["google"]
  84 if "google.cloud" in packages:
  85     namespaces.append("google.cloud")
  86 
  87 
  88 setuptools.setup(
  89     name=name,
  90     version=version,
  91     description=description,
  92     long_description=readme,
  93     author="Google LLC",
  94     author_email="googleapis-packages@google.com",
  95     license="Apache 2.0",
  96     url="https://github.com/googleapis/python-bigquery",
  97     classifiers=[
  98         release_status,
  99         "Intended Audience :: Developers",
  100         "License :: OSI Approved :: Apache Software License",
  101         "Programming Language :: Python",
  102         "Programming Language :: Python :: 2",
  103         "Programming Language :: Python :: 2.7",
  104         "Programming Language :: Python :: 3",
  105         "Programming Language :: Python :: 3.5",
  106         "Programming Language :: Python :: 3.6",
  107         "Programming Language :: Python :: 3.7",
  108         "Programming Language :: Python :: 3.8",
  109         "Operating System :: OS Independent",
  110         "Topic :: Internet",
  111     ],
  112     platforms="Posix; MacOS X; Windows",
  113     packages=packages,
  114     namespace_packages=namespaces,
  115     install_requires=dependencies,
  116     extras_require=extras,
  117     python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
  118     include_package_data=True,
  119     zip_safe=False,
  120 )
  121
  ```
  --- 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
  @@ -50,7 +50,14 @@
           "pyarrow>=0.4.1, != 0.14.0"
       ],
       "tqdm": ["tqdm >= 4.0.0, <5.0.0dev"],
  -    "fastparquet": ["fastparquet", "python-snappy"],
  +    "fastparquet": [
  +        "fastparquet",
  +        "python-snappy",
  +        # llvmlite >= 0.32.0 cannot be installed on Python 3.5 and below
  +        # (building the wheel fails), thus needs to be restricted.
  +        # See: https://github.com/googleapis/python-bigquery/issues/78
  +        "llvmlite <= 0.31.0",
  +    ],
   }
   
   all_extras = []
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -50,7 +50,14 @@\n         \"pyarrow>=0.4.1, != 0.14.0\"\n     ],\n     \"tqdm\": [\"tqdm >= 4.0.0, <5.0.0dev\"],\n-    \"fastparquet\": [\"fastparquet\", \"python-snappy\"],\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 \n all_extras = []\n", "issue": "Unit tests fail in Python 2.7, 3.5 (dependency issue)\nUnit tests check fails on Python 2.7 and Python 3.5, because not all dependencies can be installed.\r\n\r\n#### Environment details\r\n\r\n  - OS type and version: Linux (and possibly others?)\r\n  - Python version: 2.7, 3.5\r\n  - pip version: `pip --version`: 20.0.2\r\n  - `google-cloud-bigquery` version: 1.24.0\r\n\r\n#### Steps to reproduce\r\n\r\n  1. Run uni tests session for Python 2.7 or 3.5, e.g.:\r\n    ```\r\n    nox -f noxfile.py -s unit-2.7    \r\n    ```\r\n  2. Test do not run, an error occurs when installing dependencies.\r\n\r\n#### Code example\r\n\r\n```python\r\n# example\r\n```\r\n\r\n#### Stack trace\r\n```\r\nBuilding wheels for collected packages: llvmlite\r\n...\r\nRuntimeError: Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x, got '11.0.0'. Be sure to set LLVM_CONFIG to the right executable path.\r\n```\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.24.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]\nextras = {\n    \"bqstorage\": [\n        \"google-cloud-bigquery-storage >= 0.6.0, <2.0.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\": [\"fastparquet\", \"python-snappy\"],\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.24.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]\nextras = {\n    \"bqstorage\": [\n        \"google-cloud-bigquery-storage >= 0.6.0, <2.0.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"}]}