prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  loosen opentelemetry dependencies
  See Spanner PR: https://github.com/googleapis/python-spanner/pull/298
  
  </issue>
  <code>
  [start of setup.py]
  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 
  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     "google-api-core[grpc] >= 1.23.0, < 2.0.0dev",
  33     "proto-plus >= 1.10.0",
  34     "google-cloud-core >= 1.4.1, < 2.0dev",
  35     "google-resumable-media >= 0.6.0, < 2.0dev",
  36     "packaging >= 14.3",
  37     "protobuf >= 3.12.0",
  38     "requests >= 2.18.0, < 3.0.0dev",
  39 ]
  40 extras = {
  41     "bqstorage": [
  42         "google-cloud-bigquery-storage >= 2.0.0, <3.0.0dev",
  43         # Due to an issue in pip's dependency resolver, the `grpc` extra is not
  44         # installed, even though `google-cloud-bigquery-storage` specifies it
  45         # as `google-api-core[grpc]`. We thus need to explicitly specify it here.
  46         # See: https://github.com/googleapis/python-bigquery/issues/83 The
  47         # grpc.Channel.close() method isn't added until 1.32.0.
  48         # https://github.com/grpc/grpc/pull/15254
  49         "grpcio >= 1.32.0, < 2.0dev",
  50         "pyarrow >= 1.0.0, < 4.0dev",
  51     ],
  52     "pandas": ["pandas>=0.23.0", "pyarrow >= 1.0.0, < 4.0dev"],
  53     "bignumeric_type": ["pyarrow >= 3.0.0, < 4.0dev"],
  54     "tqdm": ["tqdm >= 4.7.4, <5.0.0dev"],
  55     "opentelemetry": [
  56         "opentelemetry-api==0.11b0",
  57         "opentelemetry-sdk==0.11b0",
  58         "opentelemetry-instrumentation==0.11b0",
  59     ],
  60 }
  61 
  62 all_extras = []
  63 
  64 for extra in extras:
  65     # Exclude this extra from all to avoid overly strict dependencies on core
  66     # libraries such as pyarrow.
  67     # https://github.com/googleapis/python-bigquery/issues/563
  68     if extra in {"bignumeric_type"}:
  69         continue
  70     all_extras.extend(extras[extra])
  71 
  72 extras["all"] = all_extras
  73 
  74 # Setup boilerplate below this line.
  75 
  76 package_root = os.path.abspath(os.path.dirname(__file__))
  77 
  78 readme_filename = os.path.join(package_root, "README.rst")
  79 with io.open(readme_filename, encoding="utf-8") as readme_file:
  80     readme = readme_file.read()
  81 
  82 version = {}
  83 with open(os.path.join(package_root, "google/cloud/bigquery/version.py")) as fp:
  84     exec(fp.read(), version)
  85 version = version["__version__"]
  86 
  87 # Only include packages under the 'google' namespace. Do not include tests,
  88 # benchmarks, etc.
  89 packages = [
  90     package
  91     for package in setuptools.PEP420PackageFinder.find()
  92     if package.startswith("google")
  93 ]
  94 
  95 # Determine which namespaces are needed.
  96 namespaces = ["google"]
  97 if "google.cloud" in packages:
  98     namespaces.append("google.cloud")
  99 
  100 
  101 setuptools.setup(
  102     name=name,
  103     version=version,
  104     description=description,
  105     long_description=readme,
  106     author="Google LLC",
  107     author_email="googleapis-packages@google.com",
  108     license="Apache 2.0",
  109     url="https://github.com/googleapis/python-bigquery",
  110     classifiers=[
  111         release_status,
  112         "Intended Audience :: Developers",
  113         "License :: OSI Approved :: Apache Software License",
  114         "Programming Language :: Python",
  115         "Programming Language :: Python :: 3",
  116         "Programming Language :: Python :: 3.6",
  117         "Programming Language :: Python :: 3.7",
  118         "Programming Language :: Python :: 3.8",
  119         "Programming Language :: Python :: 3.9",
  120         "Operating System :: OS Independent",
  121         "Topic :: Internet",
  122     ],
  123     platforms="Posix; MacOS X; Windows",
  124     packages=packages,
  125     namespace_packages=namespaces,
  126     install_requires=dependencies,
  127     extras_require=extras,
  128     python_requires=">=3.6, <3.10",
  129     include_package_data=True,
  130     zip_safe=False,
  131 )
  132
  [end of setup.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -53,9 +53,9 @@
       "bignumeric_type": ["pyarrow >= 3.0.0, < 4.0dev"],
       "tqdm": ["tqdm >= 4.7.4, <5.0.0dev"],
       "opentelemetry": [
  -        "opentelemetry-api==0.11b0",
  -        "opentelemetry-sdk==0.11b0",
  -        "opentelemetry-instrumentation==0.11b0",
  +        "opentelemetry-api >= 0.11b0",
  +        "opentelemetry-sdk >= 0.11b0",
  +        "opentelemetry-instrumentation >= 0.11b0",
       ],
   }
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -53,9 +53,9 @@\n     \"bignumeric_type\": [\"pyarrow >= 3.0.0, < 4.0dev\"],\n     \"tqdm\": [\"tqdm >= 4.7.4, <5.0.0dev\"],\n     \"opentelemetry\": [\n-        \"opentelemetry-api==0.11b0\",\n-        \"opentelemetry-sdk==0.11b0\",\n-        \"opentelemetry-instrumentation==0.11b0\",\n+        \"opentelemetry-api >= 0.11b0\",\n+        \"opentelemetry-sdk >= 0.11b0\",\n+        \"opentelemetry-instrumentation >= 0.11b0\",\n     ],\n }\n", "issue": "loosen opentelemetry dependencies\nSee Spanner PR: https://github.com/googleapis/python-spanner/pull/298\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\"\n\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    \"google-api-core[grpc] >= 1.23.0, < 2.0.0dev\",\n    \"proto-plus >= 1.10.0\",\n    \"google-cloud-core >= 1.4.1, < 2.0dev\",\n    \"google-resumable-media >= 0.6.0, < 2.0dev\",\n    \"packaging >= 14.3\",\n    \"protobuf >= 3.12.0\",\n    \"requests >= 2.18.0, < 3.0.0dev\",\n]\nextras = {\n    \"bqstorage\": [\n        \"google-cloud-bigquery-storage >= 2.0.0, <3.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 The\n        # grpc.Channel.close() method isn't added until 1.32.0.\n        # https://github.com/grpc/grpc/pull/15254\n        \"grpcio >= 1.32.0, < 2.0dev\",\n        \"pyarrow >= 1.0.0, < 4.0dev\",\n    ],\n    \"pandas\": [\"pandas>=0.23.0\", \"pyarrow >= 1.0.0, < 4.0dev\"],\n    \"bignumeric_type\": [\"pyarrow >= 3.0.0, < 4.0dev\"],\n    \"tqdm\": [\"tqdm >= 4.7.4, <5.0.0dev\"],\n    \"opentelemetry\": [\n        \"opentelemetry-api==0.11b0\",\n        \"opentelemetry-sdk==0.11b0\",\n        \"opentelemetry-instrumentation==0.11b0\",\n    ],\n}\n\nall_extras = []\n\nfor extra in extras:\n    # Exclude this extra from all to avoid overly strict dependencies on core\n    # libraries such as pyarrow.\n    # https://github.com/googleapis/python-bigquery/issues/563\n    if extra in {\"bignumeric_type\"}:\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\nversion = {}\nwith open(os.path.join(package_root, \"google/cloud/bigquery/version.py\")) as fp:\n    exec(fp.read(), version)\nversion = version[\"__version__\"]\n\n# Only include packages under the 'google' namespace. Do not include tests,\n# benchmarks, etc.\npackages = [\n    package\n    for package in setuptools.PEP420PackageFinder.find()\n    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 :: 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        \"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=\">=3.6, <3.10\",\n    include_package_data=True,\n    zip_safe=False,\n)\n", "path": "setup.py"}]}