prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Set setup.py url = http://coala.io/
  difficulty/newcomer
  Opened by @jayvdb at [Gitter](https://gitter.im/coala/coala?at=5a1181aff257ad9109b396a0)
  
  </issue>
  <code>
  [start of setup.py]
  1 #!/usr/bin/env python3
  2 
  3 import locale
  4 import sys
  5 from subprocess import call
  6 
  7 import setuptools.command.build_py
  8 from bears import Constants
  9 from setuptools import find_packages, setup
  10 from setuptools.command.test import test as TestCommand
  11 
  12 try:
  13     locale.getlocale()
  14 except (ValueError, UnicodeError):
  15     locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
  16 
  17 
  18 class PyTestCommand(TestCommand):
  19 
  20     def run_tests(self):
  21         # import here, cause outside the eggs aren't loaded
  22         import pytest
  23         errno = pytest.main([])
  24         sys.exit(errno)
  25 
  26 
  27 class BuildDocsCommand(setuptools.command.build_py.build_py):
  28     apidoc_command = ('sphinx-apidoc', '-f', '-o', 'docs/API',
  29                       'bears')
  30     make_command = ('make', '-C', 'docs', 'html', 'SPHINXOPTS=-W')
  31 
  32     def run(self):
  33         err_no = call(self.apidoc_command)
  34         if not err_no:
  35             err_no = call(self.make_command)
  36         sys.exit(err_no)
  37 
  38 
  39 with open('requirements.txt') as requirements:
  40     required = requirements.read().splitlines()
  41     required.remove('-r bear-requirements.txt')
  42 
  43 with open('bear-requirements.txt') as requirements:
  44     bear_required = requirements.read().splitlines()
  45 
  46 with open('test-requirements.txt') as requirements:
  47     test_required = requirements.read().splitlines()
  48 
  49 with open('ignore.txt') as ignore:
  50     ignore_requirements = ignore.read().splitlines()
  51 
  52 with open('README.rst') as readme:
  53     long_description = readme.read()
  54 
  55 extras_require = {
  56     'alldeps': bear_required,
  57 }
  58 
  59 # For the average user we leave out some of the more complicated requirements,
  60 # e.g. language-check (needs java).
  61 required += [req for req in bear_required
  62              if not any(req.startswith(ignore)
  63                         for ignore in ignore_requirements)]
  64 
  65 
  66 if __name__ == '__main__':
  67     setup(name='coala-bears',
  68           version=Constants.VERSION,
  69           description='Bears for coala (Code Analysis Application)',
  70           author='The coala developers',
  71           maintainer='Lasse Schuirmann, Fabian Neuschmidt, Mischa Kr\xfcger',
  72           maintainer_email=('lasse.schuirmann@gmail.com, '
  73                             'fabian@neuschmidt.de, '
  74                             'makman@alice.de'),
  75           url='http://coala.rtfd.org/',
  76           platforms='any',
  77           packages=find_packages(exclude=('build.*', 'tests', 'tests.*')),
  78           install_requires=required,
  79           extras_require=extras_require,
  80           tests_require=test_required,
  81           package_data={'bears': ['VERSION'],
  82                         'bears.java': ['checkstyle.jar', 'google_checks.xml'],
  83                         'bears.scala': ['scalastyle.jar',
  84                                         'scalastyle_config.xml']},
  85           license='AGPL-3.0',
  86           long_description=long_description,
  87           entry_points={'coalabears': ['coala_official_bears = bears']},
  88           # from http://pypi.python.org/pypi?%3Aaction=list_classifiers
  89           classifiers=[
  90               'Development Status :: 4 - Beta',
  91 
  92               'Environment :: Plugins',
  93               'Environment :: MacOS X',
  94               'Environment :: Win32 (MS Windows)',
  95               'Environment :: X11 Applications :: Gnome',
  96 
  97               'Intended Audience :: Science/Research',
  98               'Intended Audience :: Developers',
  99 
  100               'License :: OSI Approved :: GNU Affero General Public License '
  101               'v3 or later (AGPLv3+)',
  102 
  103               'Operating System :: OS Independent',
  104 
  105               'Programming Language :: Python :: Implementation :: CPython',
  106               'Programming Language :: Python :: 3.4',
  107               'Programming Language :: Python :: 3.5',
  108               'Programming Language :: Python :: 3 :: Only',
  109 
  110               'Topic :: Scientific/Engineering :: Information Analysis',
  111               'Topic :: Software Development :: Quality Assurance',
  112               'Topic :: Text Processing :: Linguistic'],
  113           cmdclass={'docs': BuildDocsCommand,
  114                     'test': PyTestCommand})
  115
  [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
  @@ -72,7 +72,7 @@
             maintainer_email=('lasse.schuirmann@gmail.com, '
                               'fabian@neuschmidt.de, '
                               'makman@alice.de'),
  -          url='http://coala.rtfd.org/',
  +          url='http://coala.io/',
             platforms='any',
             packages=find_packages(exclude=('build.*', 'tests', 'tests.*')),
             install_requires=required,
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -72,7 +72,7 @@\n           maintainer_email=('lasse.schuirmann@gmail.com, '\n                             'fabian@neuschmidt.de, '\n                             'makman@alice.de'),\n-          url='http://coala.rtfd.org/',\n+          url='http://coala.io/',\n           platforms='any',\n           packages=find_packages(exclude=('build.*', 'tests', 'tests.*')),\n           install_requires=required,\n", "issue": "Set setup.py url = http://coala.io/\ndifficulty/newcomer\nOpened by @jayvdb at [Gitter](https://gitter.im/coala/coala?at=5a1181aff257ad9109b396a0)\n", "before_files": [{"content": "#!/usr/bin/env python3\n\nimport locale\nimport sys\nfrom subprocess import call\n\nimport setuptools.command.build_py\nfrom bears import Constants\nfrom setuptools import find_packages, setup\nfrom setuptools.command.test import test as TestCommand\n\ntry:\n    locale.getlocale()\nexcept (ValueError, UnicodeError):\n    locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')\n\n\nclass PyTestCommand(TestCommand):\n\n    def run_tests(self):\n        # import here, cause outside the eggs aren't loaded\n        import pytest\n        errno = pytest.main([])\n        sys.exit(errno)\n\n\nclass BuildDocsCommand(setuptools.command.build_py.build_py):\n    apidoc_command = ('sphinx-apidoc', '-f', '-o', 'docs/API',\n                      'bears')\n    make_command = ('make', '-C', 'docs', 'html', 'SPHINXOPTS=-W')\n\n    def run(self):\n        err_no = call(self.apidoc_command)\n        if not err_no:\n            err_no = call(self.make_command)\n        sys.exit(err_no)\n\n\nwith open('requirements.txt') as requirements:\n    required = requirements.read().splitlines()\n    required.remove('-r bear-requirements.txt')\n\nwith open('bear-requirements.txt') as requirements:\n    bear_required = requirements.read().splitlines()\n\nwith open('test-requirements.txt') as requirements:\n    test_required = requirements.read().splitlines()\n\nwith open('ignore.txt') as ignore:\n    ignore_requirements = ignore.read().splitlines()\n\nwith open('README.rst') as readme:\n    long_description = readme.read()\n\nextras_require = {\n    'alldeps': bear_required,\n}\n\n# For the average user we leave out some of the more complicated requirements,\n# e.g. language-check (needs java).\nrequired += [req for req in bear_required\n             if not any(req.startswith(ignore)\n                        for ignore in ignore_requirements)]\n\n\nif __name__ == '__main__':\n    setup(name='coala-bears',\n          version=Constants.VERSION,\n          description='Bears for coala (Code Analysis Application)',\n          author='The coala developers',\n          maintainer='Lasse Schuirmann, Fabian Neuschmidt, Mischa Kr\\xfcger',\n          maintainer_email=('lasse.schuirmann@gmail.com, '\n                            'fabian@neuschmidt.de, '\n                            'makman@alice.de'),\n          url='http://coala.rtfd.org/',\n          platforms='any',\n          packages=find_packages(exclude=('build.*', 'tests', 'tests.*')),\n          install_requires=required,\n          extras_require=extras_require,\n          tests_require=test_required,\n          package_data={'bears': ['VERSION'],\n                        'bears.java': ['checkstyle.jar', 'google_checks.xml'],\n                        'bears.scala': ['scalastyle.jar',\n                                        'scalastyle_config.xml']},\n          license='AGPL-3.0',\n          long_description=long_description,\n          entry_points={'coalabears': ['coala_official_bears = bears']},\n          # from http://pypi.python.org/pypi?%3Aaction=list_classifiers\n          classifiers=[\n              'Development Status :: 4 - Beta',\n\n              'Environment :: Plugins',\n              'Environment :: MacOS X',\n              'Environment :: Win32 (MS Windows)',\n              'Environment :: X11 Applications :: Gnome',\n\n              'Intended Audience :: Science/Research',\n              'Intended Audience :: Developers',\n\n              'License :: OSI Approved :: GNU Affero General Public License '\n              'v3 or later (AGPLv3+)',\n\n              'Operating System :: OS Independent',\n\n              'Programming Language :: Python :: Implementation :: CPython',\n              'Programming Language :: Python :: 3.4',\n              'Programming Language :: Python :: 3.5',\n              'Programming Language :: Python :: 3 :: Only',\n\n              'Topic :: Scientific/Engineering :: Information Analysis',\n              'Topic :: Software Development :: Quality Assurance',\n              'Topic :: Text Processing :: Linguistic'],\n          cmdclass={'docs': BuildDocsCommand,\n                    'test': PyTestCommand})\n", "path": "setup.py"}]}