prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Please don't require exact versions in requirements
  It's a good idea to pin requirements in applications.
  
  It's a bad idea to pin requirements in libraries.  Doing so makes reusing libraries difficult.  If you have minimum requirements, that's fine.
  
  
  </issue>
  <code>
  [start of setup.py]
  1 #!/usr/bin/env python
  2 import os
  3 import sys
  4 from setuptools import setup
  5 
  6 ROOT_DIR = os.path.dirname(__file__)
  7 SOURCE_DIR = os.path.join(ROOT_DIR)
  8 
  9 if sys.version_info[0] == 3:
  10     requirements_file = './requirements3.txt'
  11 else:
  12     requirements_file = './requirements.txt'
  13 
  14 exec(open('docker/version.py').read())
  15 
  16 with open('./test-requirements.txt') as test_reqs_txt:
  17     test_requirements = [line for line in test_reqs_txt]
  18 with open(requirements_file) as requirements_txt:
  19     requirements = [line for line in requirements_txt]
  20 
  21 setup(
  22     name="docker-py",
  23     version=version,
  24     description="Python client for Docker.",
  25     packages=['docker', 'docker.auth', 'docker.unixconn', 'docker.utils',
  26               'docker.ssladapter'],
  27     install_requires=requirements + test_requirements,
  28     zip_safe=False,
  29     test_suite='tests',
  30     classifiers=[
  31         'Development Status :: 4 - Beta',
  32         'Environment :: Other Environment',
  33         'Intended Audience :: Developers',
  34         'Operating System :: OS Independent',
  35         'Programming Language :: Python',
  36         'Programming Language :: Python :: 2.6',
  37         'Programming Language :: Python :: 2.7',
  38         'Programming Language :: Python :: 3.2',
  39         'Programming Language :: Python :: 3.3',
  40         'Programming Language :: Python :: 3.4',
  41         'Topic :: Utilities',
  42         'License :: OSI Approved :: Apache Software License',
  43     ],
  44 )
  45
  [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
  @@ -6,17 +6,19 @@
   ROOT_DIR = os.path.dirname(__file__)
   SOURCE_DIR = os.path.join(ROOT_DIR)
   
  -if sys.version_info[0] == 3:
  -    requirements_file = './requirements3.txt'
  -else:
  -    requirements_file = './requirements.txt'
  +requirements = [
  +    'requests >= 2.2.1',
  +    'six >= 1.3.0',
  +]
  +
  +if sys.version_info[0] < 3:
  +    requirements.append('websocket-client >= 0.11.0')
   
   exec(open('docker/version.py').read())
   
   with open('./test-requirements.txt') as test_reqs_txt:
       test_requirements = [line for line in test_reqs_txt]
  -with open(requirements_file) as requirements_txt:
  -    requirements = [line for line in requirements_txt]
  +
   
   setup(
       name="docker-py",
  @@ -24,7 +26,8 @@
       description="Python client for Docker.",
       packages=['docker', 'docker.auth', 'docker.unixconn', 'docker.utils',
                 'docker.ssladapter'],
  -    install_requires=requirements + test_requirements,
  +    install_requires=requirements,
  +    tests_require=test_requirements,
       zip_safe=False,
       test_suite='tests',
       classifiers=[
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -6,17 +6,19 @@\n ROOT_DIR = os.path.dirname(__file__)\n SOURCE_DIR = os.path.join(ROOT_DIR)\n \n-if sys.version_info[0] == 3:\n-    requirements_file = './requirements3.txt'\n-else:\n-    requirements_file = './requirements.txt'\n+requirements = [\n+    'requests >= 2.2.1',\n+    'six >= 1.3.0',\n+]\n+\n+if sys.version_info[0] < 3:\n+    requirements.append('websocket-client >= 0.11.0')\n \n exec(open('docker/version.py').read())\n \n with open('./test-requirements.txt') as test_reqs_txt:\n     test_requirements = [line for line in test_reqs_txt]\n-with open(requirements_file) as requirements_txt:\n-    requirements = [line for line in requirements_txt]\n+\n \n setup(\n     name=\"docker-py\",\n@@ -24,7 +26,8 @@\n     description=\"Python client for Docker.\",\n     packages=['docker', 'docker.auth', 'docker.unixconn', 'docker.utils',\n               'docker.ssladapter'],\n-    install_requires=requirements + test_requirements,\n+    install_requires=requirements,\n+    tests_require=test_requirements,\n     zip_safe=False,\n     test_suite='tests',\n     classifiers=[\n", "issue": "Please don't require exact versions in requirements\nIt's a good idea to pin requirements in applications.\n\nIt's a bad idea to pin requirements in libraries.  Doing so makes reusing libraries difficult.  If you have minimum requirements, that's fine.\n\n", "before_files": [{"content": "#!/usr/bin/env python\nimport os\nimport sys\nfrom setuptools import setup\n\nROOT_DIR = os.path.dirname(__file__)\nSOURCE_DIR = os.path.join(ROOT_DIR)\n\nif sys.version_info[0] == 3:\n    requirements_file = './requirements3.txt'\nelse:\n    requirements_file = './requirements.txt'\n\nexec(open('docker/version.py').read())\n\nwith open('./test-requirements.txt') as test_reqs_txt:\n    test_requirements = [line for line in test_reqs_txt]\nwith open(requirements_file) as requirements_txt:\n    requirements = [line for line in requirements_txt]\n\nsetup(\n    name=\"docker-py\",\n    version=version,\n    description=\"Python client for Docker.\",\n    packages=['docker', 'docker.auth', 'docker.unixconn', 'docker.utils',\n              'docker.ssladapter'],\n    install_requires=requirements + test_requirements,\n    zip_safe=False,\n    test_suite='tests',\n    classifiers=[\n        'Development Status :: 4 - Beta',\n        'Environment :: Other Environment',\n        'Intended Audience :: Developers',\n        'Operating System :: OS Independent',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 2.6',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3.2',\n        'Programming Language :: Python :: 3.3',\n        'Programming Language :: Python :: 3.4',\n        'Topic :: Utilities',\n        'License :: OSI Approved :: Apache Software License',\n    ],\n)\n", "path": "setup.py"}]}