prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Missing requirements.txt in the Pypi source code
  **What steps did you take and what happened:**
  The requirements.txt file is missing in the source code on Pypi so setuptools will not work.
  
  ```
  Executing setuptoolsBuildPhase
  Traceback (most recent call last):
    File "nix_run_setup", line 8, in <module>
      exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
    File "setup.py", line 23, in <module>
      with open('requirements.txt') as f:
  FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
  builder for '/nix/store/z8sh0v4cji9aq9v02865273xvmhcwzgh-python3.8-kfserving-0.3.0.1.drv' failed with exit code 1
  cannot build derivation '/nix/store/75ihn4avq52qdpavs0s8c1y0nj0wjfdx-python3-3.8.2-env.drv': 1 dependencies couldn't be built
  ```
  
  **What did you expect to happen:**
  requirements.txt in the tar.gz archive
  
  **Environment:**
  
  - Istio Version:
  - Knative Version:
  - KFServing Version: 0.3.0.1
  - Kubeflow version:
  - Kfdef:[k8s_istio/istio_dex/gcp_basic_auth/gcp_iap/aws/aws_cognito/ibm]
  - Minikube version:
  - Kubernetes version: (use `kubectl version`):
  - OS (e.g. from `/etc/os-release`): NixOS 20.03 (Markhor) x86_64
  
  
  </issue>
  <code>
  [start of python/kfserving/setup.py]
  1 # Copyright 2020 kubeflow.org.
  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 setuptools
  16 
  17 TESTS_REQUIRES = [
  18     'pytest',
  19     'pytest-tornasync',
  20     'mypy'
  21 ]
  22 
  23 with open('requirements.txt') as f:
  24     REQUIRES = f.readlines()
  25 
  26 setuptools.setup(
  27     name='kfserving',
  28     version='0.3.0.1',
  29     author="Kubeflow Authors",
  30     author_email='ellisbigelow@google.com, hejinchi@cn.ibm.com',
  31     license="Apache License Version 2.0",
  32     url="https://github.com/kubeflow/kfserving/python/kfserving",
  33     description="KFServing Python SDK",
  34     long_description="Python SDK for KFServing Server and Client.",
  35     python_requires='>=3.6',
  36     packages=[
  37         'kfserving',
  38         'kfserving.api',
  39         'kfserving.constants',
  40         'kfserving.models',
  41         'kfserving.handlers',
  42         'kfserving.utils',
  43     ],
  44     package_data={},
  45     include_package_data=False,
  46     zip_safe=False,
  47     classifiers=[
  48         'Intended Audience :: Developers',
  49         'Intended Audience :: Education',
  50         'Intended Audience :: Science/Research',
  51         'Programming Language :: Python :: 3',
  52         'Programming Language :: Python :: 3.6',
  53         'Programming Language :: Python :: 3.7',
  54         "License :: OSI Approved :: Apache Software License",
  55         "Operating System :: OS Independent",
  56         'Topic :: Scientific/Engineering',
  57         'Topic :: Scientific/Engineering :: Artificial Intelligence',
  58         'Topic :: Software Development',
  59         'Topic :: Software Development :: Libraries',
  60         'Topic :: Software Development :: Libraries :: Python Modules',
  61     ],
  62     install_requires=REQUIRES,
  63     tests_require=TESTS_REQUIRES,
  64     extras_require={'test': TESTS_REQUIRES}
  65 )
  66
  [end of python/kfserving/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/python/kfserving/setup.py b/python/kfserving/setup.py
  --- a/python/kfserving/setup.py
  +++ b/python/kfserving/setup.py
  @@ -25,7 +25,7 @@
   
   setuptools.setup(
       name='kfserving',
  -    version='0.3.0.1',
  +    version='0.3.0.2',
       author="Kubeflow Authors",
       author_email='ellisbigelow@google.com, hejinchi@cn.ibm.com',
       license="Apache License Version 2.0",
  @@ -41,8 +41,8 @@
           'kfserving.handlers',
           'kfserving.utils',
       ],
  -    package_data={},
  -    include_package_data=False,
  +    package_data={'': ['requirements.txt']},
  +    include_package_data=True,
       zip_safe=False,
       classifiers=[
           'Intended Audience :: Developers',
  
verification_info: {"golden_diff": "diff --git a/python/kfserving/setup.py b/python/kfserving/setup.py\n--- a/python/kfserving/setup.py\n+++ b/python/kfserving/setup.py\n@@ -25,7 +25,7 @@\n \n setuptools.setup(\n     name='kfserving',\n-    version='0.3.0.1',\n+    version='0.3.0.2',\n     author=\"Kubeflow Authors\",\n     author_email='ellisbigelow@google.com, hejinchi@cn.ibm.com',\n     license=\"Apache License Version 2.0\",\n@@ -41,8 +41,8 @@\n         'kfserving.handlers',\n         'kfserving.utils',\n     ],\n-    package_data={},\n-    include_package_data=False,\n+    package_data={'': ['requirements.txt']},\n+    include_package_data=True,\n     zip_safe=False,\n     classifiers=[\n         'Intended Audience :: Developers',\n", "issue": "Missing requirements.txt in the Pypi source code\n**What steps did you take and what happened:**\r\nThe requirements.txt file is missing in the source code on Pypi so setuptools will not work.\r\n\r\n```\r\nExecuting setuptoolsBuildPhase\r\nTraceback (most recent call last):\r\n  File \"nix_run_setup\", line 8, in <module>\r\n    exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\\\r\\\\n', '\\\\n'), __file__, 'exec'))\r\n  File \"setup.py\", line 23, in <module>\r\n    with open('requirements.txt') as f:\r\nFileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'\r\nbuilder for '/nix/store/z8sh0v4cji9aq9v02865273xvmhcwzgh-python3.8-kfserving-0.3.0.1.drv' failed with exit code 1\r\ncannot build derivation '/nix/store/75ihn4avq52qdpavs0s8c1y0nj0wjfdx-python3-3.8.2-env.drv': 1 dependencies couldn't be built\r\n```\r\n\r\n**What did you expect to happen:**\r\nrequirements.txt in the tar.gz archive\r\n\r\n**Environment:**\r\n\r\n- Istio Version:\r\n- Knative Version:\r\n- KFServing Version: 0.3.0.1\r\n- Kubeflow version:\r\n- Kfdef:[k8s_istio/istio_dex/gcp_basic_auth/gcp_iap/aws/aws_cognito/ibm]\r\n- Minikube version:\r\n- Kubernetes version: (use `kubectl version`):\r\n- OS (e.g. from `/etc/os-release`): NixOS 20.03 (Markhor) x86_64\r\n\n", "before_files": [{"content": "# Copyright 2020 kubeflow.org.\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 setuptools\n\nTESTS_REQUIRES = [\n    'pytest',\n    'pytest-tornasync',\n    'mypy'\n]\n\nwith open('requirements.txt') as f:\n    REQUIRES = f.readlines()\n\nsetuptools.setup(\n    name='kfserving',\n    version='0.3.0.1',\n    author=\"Kubeflow Authors\",\n    author_email='ellisbigelow@google.com, hejinchi@cn.ibm.com',\n    license=\"Apache License Version 2.0\",\n    url=\"https://github.com/kubeflow/kfserving/python/kfserving\",\n    description=\"KFServing Python SDK\",\n    long_description=\"Python SDK for KFServing Server and Client.\",\n    python_requires='>=3.6',\n    packages=[\n        'kfserving',\n        'kfserving.api',\n        'kfserving.constants',\n        'kfserving.models',\n        'kfserving.handlers',\n        'kfserving.utils',\n    ],\n    package_data={},\n    include_package_data=False,\n    zip_safe=False,\n    classifiers=[\n        'Intended Audience :: Developers',\n        'Intended Audience :: Education',\n        'Intended Audience :: Science/Research',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Operating System :: OS Independent\",\n        'Topic :: Scientific/Engineering',\n        'Topic :: Scientific/Engineering :: Artificial Intelligence',\n        'Topic :: Software Development',\n        'Topic :: Software Development :: Libraries',\n        'Topic :: Software Development :: Libraries :: Python Modules',\n    ],\n    install_requires=REQUIRES,\n    tests_require=TESTS_REQUIRES,\n    extras_require={'test': TESTS_REQUIRES}\n)\n", "path": "python/kfserving/setup.py"}]}