prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  EPEL7
  Currently `setup.py` specifies that click must be at least version 4.0.  I'm currently working with the Fedora package maintainer to get this [added to EPEL for RHEL7](https://bugzilla.redhat.com/show_bug.cgi?id=1265828).  There are few dependency problems we are noticing.
  - `tornado>=4.1` and `livereload>=2.3.2`
  
  In RHEL7 tornado is stuck at `2.2.1`.  livereload isn't packaged for RHEL7 at all (yet).  As far as I can tell, these are only needed for the `serve` subcommand.  Would you consider changing these requirements to [extras](https://pythonhosted.org/setuptools/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies)?
  
  ``` python
  extras_require = {
      'serve subcommand':  [
          'livereload>=2.3.2',
          'tornado>=4.1'
      ]
  }
  ```
  - `click>=4.0`
  
  As a test, I manually edited the requires.txt in my egg-info directory after installing, and mkdocs appears to work just fine with click `3.3`.  Are there any known or planned features that actually require click `4.0`?
  
  
  </issue>
  <code>
  [start of setup.py]
  1 #!/usr/bin/env python
  2 # -*- coding: utf-8 -*-
  3 
  4 from __future__ import print_function
  5 from setuptools import setup
  6 import re
  7 import os
  8 import sys
  9 
  10 PY26 = sys.version_info[:2] == (2, 6)
  11 
  12 
  13 long_description = (
  14     "MkDocs is a fast, simple and downright gorgeous static site generator "
  15     "that's geared towards building project documentation. Documentation "
  16     "source files are written in Markdown, and configured with a single YAML "
  17     "configuration file."
  18 )
  19 
  20 
  21 def get_version(package):
  22     """Return package version as listed in `__version__` in `init.py`."""
  23     init_py = open(os.path.join(package, '__init__.py')).read()
  24     return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
  25 
  26 
  27 def get_packages(package):
  28     """Return root package and all sub-packages."""
  29     return [dirpath
  30             for dirpath, dirnames, filenames in os.walk(package)
  31             if os.path.exists(os.path.join(dirpath, '__init__.py'))]
  32 
  33 
  34 if sys.argv[-1] == 'publish':
  35     if os.system("pip freeze | grep wheel"):
  36         print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
  37         sys.exit()
  38     if os.system("pip freeze | grep twine"):
  39         print("twine not installed.\nUse `pip install twine`.\nExiting.")
  40         sys.exit()
  41     os.system("python setup.py sdist bdist_wheel")
  42     os.system("twine upload dist/*")
  43     print("You probably want to also tag the version now:")
  44     print("  git tag -a {0} -m 'version {0}'".format(get_version("mkdocs")))
  45     print("  git push --tags")
  46     sys.exit()
  47 
  48 
  49 setup(
  50     name="mkdocs",
  51     version=get_version("mkdocs"),
  52     url='http://www.mkdocs.org',
  53     license='BSD',
  54     description='Project documentation with Markdown.',
  55     long_description=long_description,
  56     author='Tom Christie',
  57     author_email='tom@tomchristie.com',  # SEE NOTE BELOW (*)
  58     packages=get_packages("mkdocs"),
  59     include_package_data=True,
  60     install_requires=[
  61         'click>=4.0',
  62         'Jinja2>=2.7.1',
  63         'livereload>=2.3.2',
  64         'Markdown>=2.3.1,<2.5' if PY26 else 'Markdown>=2.3.1',
  65         'mkdocs-bootstrap>=0.1.1',
  66         'mkdocs-bootswatch>=0.1.0',
  67         'PyYAML>=3.10',
  68         'tornado>=4.1',
  69     ],
  70     entry_points={
  71         'console_scripts': [
  72             'mkdocs = mkdocs.__main__:cli',
  73         ],
  74         'mkdocs.themes': [
  75             'mkdocs = mkdocs.themes.mkdocs',
  76             'readthedocs = mkdocs.themes.readthedocs',
  77         ]
  78     },
  79     classifiers=[
  80         'Development Status :: 5 - Production/Stable',
  81         'Environment :: Console',
  82         'Environment :: Web Environment',
  83         'Intended Audience :: Developers',
  84         'License :: OSI Approved :: BSD License',
  85         'Operating System :: OS Independent',
  86         'Programming Language :: Python',
  87         'Programming Language :: Python :: 2',
  88         'Programming Language :: Python :: 2.6',
  89         'Programming Language :: Python :: 2.7',
  90         'Programming Language :: Python :: 3',
  91         'Programming Language :: Python :: 3.3',
  92         'Programming Language :: Python :: 3.4',
  93         "Programming Language :: Python :: Implementation :: CPython",
  94         'Topic :: Documentation',
  95         'Topic :: Text Processing',
  96     ],
  97     zip_safe=False,
  98 )
  99 
  100 # (*) Please direct queries to the discussion group:
  101 #     https://groups.google.com/forum/#!forum/mkdocs
  102
  [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
  @@ -58,7 +58,7 @@
       packages=get_packages("mkdocs"),
       include_package_data=True,
       install_requires=[
  -        'click>=4.0',
  +        'click>=3.3',
           'Jinja2>=2.7.1',
           'livereload>=2.3.2',
           'Markdown>=2.3.1,<2.5' if PY26 else 'Markdown>=2.3.1',
  @@ -90,6 +90,7 @@
           'Programming Language :: Python :: 3',
           'Programming Language :: Python :: 3.3',
           'Programming Language :: Python :: 3.4',
  +        'Programming Language :: Python :: 3.5',
           "Programming Language :: Python :: Implementation :: CPython",
           'Topic :: Documentation',
           'Topic :: Text Processing',
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -58,7 +58,7 @@\n     packages=get_packages(\"mkdocs\"),\n     include_package_data=True,\n     install_requires=[\n-        'click>=4.0',\n+        'click>=3.3',\n         'Jinja2>=2.7.1',\n         'livereload>=2.3.2',\n         'Markdown>=2.3.1,<2.5' if PY26 else 'Markdown>=2.3.1',\n@@ -90,6 +90,7 @@\n         'Programming Language :: Python :: 3',\n         'Programming Language :: Python :: 3.3',\n         'Programming Language :: Python :: 3.4',\n+        'Programming Language :: Python :: 3.5',\n         \"Programming Language :: Python :: Implementation :: CPython\",\n         'Topic :: Documentation',\n         'Topic :: Text Processing',\n", "issue": "EPEL7\nCurrently `setup.py` specifies that click must be at least version 4.0.  I'm currently working with the Fedora package maintainer to get this [added to EPEL for RHEL7](https://bugzilla.redhat.com/show_bug.cgi?id=1265828).  There are few dependency problems we are noticing.\n- `tornado>=4.1` and `livereload>=2.3.2`\n\nIn RHEL7 tornado is stuck at `2.2.1`.  livereload isn't packaged for RHEL7 at all (yet).  As far as I can tell, these are only needed for the `serve` subcommand.  Would you consider changing these requirements to [extras](https://pythonhosted.org/setuptools/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies)?\n\n``` python\nextras_require = {\n    'serve subcommand':  [\n        'livereload>=2.3.2',\n        'tornado>=4.1'\n    ]\n}\n```\n- `click>=4.0`\n\nAs a test, I manually edited the requires.txt in my egg-info directory after installing, and mkdocs appears to work just fine with click `3.3`.  Are there any known or planned features that actually require click `4.0`?\n\n", "before_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import print_function\nfrom setuptools import setup\nimport re\nimport os\nimport sys\n\nPY26 = sys.version_info[:2] == (2, 6)\n\n\nlong_description = (\n    \"MkDocs is a fast, simple and downright gorgeous static site generator \"\n    \"that's geared towards building project documentation. Documentation \"\n    \"source files are written in Markdown, and configured with a single YAML \"\n    \"configuration file.\"\n)\n\n\ndef get_version(package):\n    \"\"\"Return package version as listed in `__version__` in `init.py`.\"\"\"\n    init_py = open(os.path.join(package, '__init__.py')).read()\n    return re.search(\"__version__ = ['\\\"]([^'\\\"]+)['\\\"]\", init_py).group(1)\n\n\ndef get_packages(package):\n    \"\"\"Return root package and all sub-packages.\"\"\"\n    return [dirpath\n            for dirpath, dirnames, filenames in os.walk(package)\n            if os.path.exists(os.path.join(dirpath, '__init__.py'))]\n\n\nif sys.argv[-1] == 'publish':\n    if os.system(\"pip freeze | grep wheel\"):\n        print(\"wheel not installed.\\nUse `pip install wheel`.\\nExiting.\")\n        sys.exit()\n    if os.system(\"pip freeze | grep twine\"):\n        print(\"twine not installed.\\nUse `pip install twine`.\\nExiting.\")\n        sys.exit()\n    os.system(\"python setup.py sdist bdist_wheel\")\n    os.system(\"twine upload dist/*\")\n    print(\"You probably want to also tag the version now:\")\n    print(\"  git tag -a {0} -m 'version {0}'\".format(get_version(\"mkdocs\")))\n    print(\"  git push --tags\")\n    sys.exit()\n\n\nsetup(\n    name=\"mkdocs\",\n    version=get_version(\"mkdocs\"),\n    url='http://www.mkdocs.org',\n    license='BSD',\n    description='Project documentation with Markdown.',\n    long_description=long_description,\n    author='Tom Christie',\n    author_email='tom@tomchristie.com',  # SEE NOTE BELOW (*)\n    packages=get_packages(\"mkdocs\"),\n    include_package_data=True,\n    install_requires=[\n        'click>=4.0',\n        'Jinja2>=2.7.1',\n        'livereload>=2.3.2',\n        'Markdown>=2.3.1,<2.5' if PY26 else 'Markdown>=2.3.1',\n        'mkdocs-bootstrap>=0.1.1',\n        'mkdocs-bootswatch>=0.1.0',\n        'PyYAML>=3.10',\n        'tornado>=4.1',\n    ],\n    entry_points={\n        'console_scripts': [\n            'mkdocs = mkdocs.__main__:cli',\n        ],\n        'mkdocs.themes': [\n            'mkdocs = mkdocs.themes.mkdocs',\n            'readthedocs = mkdocs.themes.readthedocs',\n        ]\n    },\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Environment :: Console',\n        'Environment :: Web Environment',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: BSD License',\n        'Operating System :: OS Independent',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.6',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.3',\n        'Programming Language :: Python :: 3.4',\n        \"Programming Language :: Python :: Implementation :: CPython\",\n        'Topic :: Documentation',\n        'Topic :: Text Processing',\n    ],\n    zip_safe=False,\n)\n\n# (*) Please direct queries to the discussion group:\n#     https://groups.google.com/forum/#!forum/mkdocs\n", "path": "setup.py"}]}