prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Explicitly depend on setuptools
  Context: #3295
  
  We should explicitly depend on a minimum version of setuptools to get around problems installing our packages if setuptools is too old.
  
  </issue>
  <code>
  [start of core/setup.py]
  1 # Copyright 2016 Google Inc.
  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 os
  16 
  17 from setuptools import find_packages
  18 from setuptools import setup
  19 
  20 
  21 PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
  22 
  23 with open(os.path.join(PACKAGE_ROOT, 'README.rst')) as file_obj:
  24     README = file_obj.read()
  25 
  26 # NOTE: This is duplicated throughout and we should try to
  27 #       consolidate.
  28 SETUP_BASE = {
  29     'author': 'Google Cloud Platform',
  30     'author_email': 'googleapis-publisher@google.com',
  31     'scripts': [],
  32     'url': 'https://github.com/GoogleCloudPlatform/google-cloud-python',
  33     'license': 'Apache 2.0',
  34     'platforms': 'Posix; MacOS X; Windows',
  35     'include_package_data': True,
  36     'zip_safe': False,
  37     'classifiers': [
  38         'Development Status :: 4 - Beta',
  39         'Intended Audience :: Developers',
  40         'License :: OSI Approved :: Apache Software License',
  41         'Operating System :: OS Independent',
  42         'Programming Language :: Python :: 2',
  43         'Programming Language :: Python :: 2.7',
  44         'Programming Language :: Python :: 3',
  45         'Programming Language :: Python :: 3.4',
  46         'Programming Language :: Python :: 3.5',
  47         'Programming Language :: Python :: 3.6',
  48         'Topic :: Internet',
  49     ],
  50 }
  51 
  52 
  53 REQUIREMENTS = [
  54     'googleapis-common-protos >= 1.3.4',
  55     'protobuf >= 3.0.0',
  56     'google-auth >= 0.4.0, < 2.0.0dev',
  57     'requests >= 2.4.0, < 3.0.0dev',
  58     'six',
  59     'tenacity >= 4.0.0, <5.0.0dev'
  60 ]
  61 
  62 setup(
  63     name='google-cloud-core',
  64     version='0.26.0',
  65     description='API Client library for Google Cloud: Core Helpers',
  66     long_description=README,
  67     namespace_packages=[
  68         'google',
  69         'google.cloud',
  70         'google.api',
  71     ],
  72     packages=find_packages(exclude=('tests*',)),
  73     install_requires=REQUIREMENTS,
  74     **SETUP_BASE
  75 )
  76
  [end of core/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/core/setup.py b/core/setup.py
  --- a/core/setup.py
  +++ b/core/setup.py
  @@ -55,6 +55,7 @@
       'protobuf >= 3.0.0',
       'google-auth >= 0.4.0, < 2.0.0dev',
       'requests >= 2.4.0, < 3.0.0dev',
  +    'setuptools >= 34.0.0',
       'six',
       'tenacity >= 4.0.0, <5.0.0dev'
   ]
  
verification_info: {"golden_diff": "diff --git a/core/setup.py b/core/setup.py\n--- a/core/setup.py\n+++ b/core/setup.py\n@@ -55,6 +55,7 @@\n     'protobuf >= 3.0.0',\n     'google-auth >= 0.4.0, < 2.0.0dev',\n     'requests >= 2.4.0, < 3.0.0dev',\n+    'setuptools >= 34.0.0',\n     'six',\n     'tenacity >= 4.0.0, <5.0.0dev'\n ]\n", "issue": "Explicitly depend on setuptools\nContext: #3295\r\n\r\nWe should explicitly depend on a minimum version of setuptools to get around problems installing our packages if setuptools is too old.\n", "before_files": [{"content": "# Copyright 2016 Google Inc.\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 os\n\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n\nPACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))\n\nwith open(os.path.join(PACKAGE_ROOT, 'README.rst')) as file_obj:\n    README = file_obj.read()\n\n# NOTE: This is duplicated throughout and we should try to\n#       consolidate.\nSETUP_BASE = {\n    'author': 'Google Cloud Platform',\n    'author_email': 'googleapis-publisher@google.com',\n    'scripts': [],\n    'url': 'https://github.com/GoogleCloudPlatform/google-cloud-python',\n    'license': 'Apache 2.0',\n    'platforms': 'Posix; MacOS X; Windows',\n    'include_package_data': True,\n    'zip_safe': False,\n    'classifiers': [\n        'Development Status :: 4 - Beta',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: Apache Software License',\n        'Operating System :: OS Independent',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.4',\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n        'Topic :: Internet',\n    ],\n}\n\n\nREQUIREMENTS = [\n    'googleapis-common-protos >= 1.3.4',\n    'protobuf >= 3.0.0',\n    'google-auth >= 0.4.0, < 2.0.0dev',\n    'requests >= 2.4.0, < 3.0.0dev',\n    'six',\n    'tenacity >= 4.0.0, <5.0.0dev'\n]\n\nsetup(\n    name='google-cloud-core',\n    version='0.26.0',\n    description='API Client library for Google Cloud: Core Helpers',\n    long_description=README,\n    namespace_packages=[\n        'google',\n        'google.cloud',\n        'google.api',\n    ],\n    packages=find_packages(exclude=('tests*',)),\n    install_requires=REQUIREMENTS,\n    **SETUP_BASE\n)\n", "path": "core/setup.py"}]}